fixed untracked files

This commit is contained in:
Jeff Potter 2015-03-30 15:46:41 -06:00
parent 5c227400f0
commit aad6604eac
11 changed files with 44 additions and 196 deletions

33
.gitignore vendored Normal file
View File

@ -0,0 +1,33 @@
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/
# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Build

View File

@ -8,6 +8,7 @@ Pod::Spec.new do |s|
s.author = { "Jeff" => "jeff.potter6@gmail.com" }
s.social_media_url = "http://twitter.com/jpotts18"
s.platform = :ios
s.ios.deployment_target = '8.0'
s.source = { :git => "https://github.com/jpotts18/swift-validator.git", :tag => "2.0.1" }
s.source_files = "Validator/*.swift"
end

View File

@ -1,41 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>41CB4003-1551-4C4C-B53F-78A56D1DFBE5</string>
<key>IDESourceControlProjectName</key>
<string>Validator</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>42B8B6166721AE55A9AFCAC5F4DF5276CF0E0973</key>
<string>github.com:jpotts18/swift-validator.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>Validator.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>42B8B6166721AE55A9AFCAC5F4DF5276CF0E0973</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>github.com:jpotts18/swift-validator.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>42B8B6166721AE55A9AFCAC5F4DF5276CF0E0973</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>42B8B6166721AE55A9AFCAC5F4DF5276CF0E0973</string>
<key>IDESourceControlWCCName</key>
<string>Validator</string>
</dict>
</array>
</dict>
</plist>

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>

View File

@ -1,110 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0610"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "62D1AE161A1E6D4400E4DFF8"
BuildableName = "Validator.app"
BlueprintName = "Validator"
ReferencedContainer = "container:Validator.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "62D1AE2B1A1E6D4500E4DFF8"
BuildableName = "ValidatorTests.xctest"
BlueprintName = "ValidatorTests"
ReferencedContainer = "container:Validator.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "62D1AE2B1A1E6D4500E4DFF8"
BuildableName = "ValidatorTests.xctest"
BlueprintName = "ValidatorTests"
ReferencedContainer = "container:Validator.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "62D1AE161A1E6D4400E4DFF8"
BuildableName = "Validator.app"
BlueprintName = "Validator"
ReferencedContainer = "container:Validator.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "62D1AE161A1E6D4400E4DFF8"
BuildableName = "Validator.app"
BlueprintName = "Validator"
ReferencedContainer = "container:Validator.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "62D1AE161A1E6D4400E4DFF8"
BuildableName = "Validator.app"
BlueprintName = "Validator"
ReferencedContainer = "container:Validator.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -1,27 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>Validator.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>62D1AE161A1E6D4400E4DFF8</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>62D1AE2B1A1E6D4500E4DFF8</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>

View File

@ -21,10 +21,9 @@ class EmailRule: Rule {
}
func validate(value: String) -> Bool {
if let test = NSPredicate(format: "SELF MATCHES %@", self.REGEX) {
if test.evaluateWithObject(value) {
return true
}
let test = NSPredicate(format: "SELF MATCHES \(self.REGEX)")
if test.evaluateWithObject(value) {
return true
}
return false
}

View File

@ -22,7 +22,7 @@ class MinLengthRule : Rule {
}
func validate(value: String) -> Bool {
if countElements(value) < DEFAULT_MIN_LENGTH {
if count(value) < DEFAULT_MIN_LENGTH {
return false
}
return true

View File

@ -31,10 +31,9 @@ class PasswordRule : Rule {
}
func validate(value: String) -> Bool {
if let test = NSPredicate(format: "SELF MATCHES %@", self.REGEX) {
if test.evaluateWithObject(value) {
return true
}
let test = NSPredicate(format: "SELF MATCHES \(self.REGEX)")
if test.evaluateWithObject(value) {
return true
}
return false
}

View File

@ -19,10 +19,9 @@ class ZipCodeRule: Rule {
}
func validate(value: String) -> Bool {
if let test = NSPredicate(format: "SELF MATCHES %@", self.REGEX) {
if test.evaluateWithObject(value) {
return true
}
let test = NSPredicate(format: "SELF MATCHES \(self.REGEX)")
if test.evaluateWithObject(value) {
return true
}
return false
}