Skip to content

Commit c11a74a

Browse files
committed
Merge pull request #44 from vadymmarkov/1.2.0
1.2.0
2 parents 29afb87 + 581aa4f commit c11a74a

File tree

5 files changed

+43
-44
lines changed

5 files changed

+43
-44
lines changed

Fakery.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Fakery"
3-
s.version = "1.1.2"
3+
s.version = "1.2.0"
44
s.summary = "Swift fake data generator"
55
s.homepage = "https://github.com/vadymmarkov/Fakery"
66
s.license = {

Pod/Pod.xcodeproj/project.pbxproj

+31-35
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
09F65D721CA30560006C87C5 /* Number.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09F65D711CA30560006C87C5 /* Number.swift */; };
1111
09F65D741CA30B46006C87C5 /* NumberSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09F65D731CA30B46006C87C5 /* NumberSpec.swift */; };
12-
6BF43A0A261F2E4DFCDC3068 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 38B17328A25E1B0324F1A502 /* Pods.framework */; };
12+
2EE68F6C5D0DE32C042A221A /* Pods_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F7161EA35F6E9D537C752AF7 /* Pods_Tests.framework */; };
1313
D500F73F1AD3DC4700B32BEC /* PhoneNumber.swift in Sources */ = {isa = PBXBuildFile; fileRef = D500F73E1AD3DC4700B32BEC /* PhoneNumber.swift */; };
1414
D500F7411AD3EA4600B32BEC /* PhoneNumberSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = D500F7401AD3EA4600B32BEC /* PhoneNumberSpec.swift */; };
1515
D503530E1B037F7300CB8C4A /* Company.swift in Sources */ = {isa = PBXBuildFile; fileRef = D503530D1B037F7300CB8C4A /* Company.swift */; };
@@ -54,7 +54,8 @@
5454
14C136541AB784B200B7B07A /* LICENSE.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = LICENSE.md; path = ../LICENSE.md; sourceTree = "<group>"; };
5555
14C136551AB784B200B7B07A /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
5656
38B17328A25E1B0324F1A502 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
57-
CD9BA88A390D354C5A62FB27 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
57+
4EAD9A72884CE0FE325357BE /* Pods-Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig"; sourceTree = "<group>"; };
58+
69A220EE7580F74D65A7674C /* Pods-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig"; sourceTree = "<group>"; };
5859
D500F73E1AD3DC4700B32BEC /* PhoneNumber.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PhoneNumber.swift; sourceTree = "<group>"; };
5960
D500F7401AD3EA4600B32BEC /* PhoneNumberSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PhoneNumberSpec.swift; sourceTree = "<group>"; };
6061
D503530D1B037F7300CB8C4A /* Company.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Company.swift; sourceTree = "<group>"; };
@@ -87,15 +88,15 @@
8788
D5E19A091AD032A600BD1A40 /* NameSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NameSpec.swift; sourceTree = "<group>"; };
8889
D5E19A0B1AD0376500BD1A40 /* Team.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Team.swift; sourceTree = "<group>"; };
8990
D5E19A0D1AD037A400BD1A40 /* TeamSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TeamSpec.swift; sourceTree = "<group>"; };
90-
D89F5291001233A403C41710 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
91+
F7161EA35F6E9D537C752AF7 /* Pods_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9192
/* End PBXFileReference section */
9293

9394
/* Begin PBXFrameworksBuildPhase section */
9495
146D72A91AB782920058798C /* Frameworks */ = {
9596
isa = PBXFrameworksBuildPhase;
9697
buildActionMask = 2147483647;
9798
files = (
98-
6BF43A0A261F2E4DFCDC3068 /* Pods.framework in Frameworks */,
99+
2EE68F6C5D0DE32C042A221A /* Pods_Tests.framework in Frameworks */,
99100
);
100101
runOnlyForDeploymentPostprocessing = 0;
101102
};
@@ -110,8 +111,8 @@
110111
14C1365B1AB784BC00B7B07A /* Source */,
111112
146D72AF1AB782920058798C /* Tests */,
112113
146D72941AB782920058798C /* Products */,
113-
B3290C0630BD80DFF64DAB2E /* Pods */,
114114
6B9F644C3BBF5D02DCB76D82 /* Frameworks */,
115+
5FBE0430D5321AE83BA7B7A1 /* Pods */,
115116
);
116117
indentWidth = 2;
117118
sourceTree = "<group>";
@@ -166,21 +167,22 @@
166167
path = ../Source;
167168
sourceTree = "<group>";
168169
};
169-
6B9F644C3BBF5D02DCB76D82 /* Frameworks */ = {
170+
5FBE0430D5321AE83BA7B7A1 /* Pods */ = {
170171
isa = PBXGroup;
171172
children = (
172-
38B17328A25E1B0324F1A502 /* Pods.framework */,
173+
69A220EE7580F74D65A7674C /* Pods-Tests.debug.xcconfig */,
174+
4EAD9A72884CE0FE325357BE /* Pods-Tests.release.xcconfig */,
173175
);
174-
name = Frameworks;
176+
name = Pods;
175177
sourceTree = "<group>";
176178
};
177-
B3290C0630BD80DFF64DAB2E /* Pods */ = {
179+
6B9F644C3BBF5D02DCB76D82 /* Frameworks */ = {
178180
isa = PBXGroup;
179181
children = (
180-
CD9BA88A390D354C5A62FB27 /* Pods.debug.xcconfig */,
181-
D89F5291001233A403C41710 /* Pods.release.xcconfig */,
182+
38B17328A25E1B0324F1A502 /* Pods.framework */,
183+
F7161EA35F6E9D537C752AF7 /* Pods_Tests.framework */,
182184
);
183-
name = Pods;
185+
name = Frameworks;
184186
sourceTree = "<group>";
185187
};
186188
D54C05031ACF689D00B72977 /* Data */ = {
@@ -265,12 +267,12 @@
265267
isa = PBXNativeTarget;
266268
buildConfigurationList = 146D72B91AB782920058798C /* Build configuration list for PBXNativeTarget "Tests" */;
267269
buildPhases = (
268-
86B0AB9BF93741934BE5A22B /* Check Pods Manifest.lock */,
270+
86B0AB9BF93741934BE5A22B /* 📦 Check Pods Manifest.lock */,
269271
146D72A81AB782920058798C /* Sources */,
270272
146D72A91AB782920058798C /* Frameworks */,
271273
146D72AA1AB782920058798C /* Resources */,
272-
E6E566703A1EF0B51250273C /* Embed Pods Frameworks */,
273-
8F77C1E955DC64ED295408BE /* Copy Pods Resources */,
274+
E6E566703A1EF0B51250273C /* 📦 Embed Pods Frameworks */,
275+
8F77C1E955DC64ED295408BE /* 📦 Copy Pods Resources */,
274276
);
275277
buildRules = (
276278
);
@@ -326,49 +328,49 @@
326328
/* End PBXResourcesBuildPhase section */
327329

328330
/* Begin PBXShellScriptBuildPhase section */
329-
86B0AB9BF93741934BE5A22B /* Check Pods Manifest.lock */ = {
331+
86B0AB9BF93741934BE5A22B /* 📦 Check Pods Manifest.lock */ = {
330332
isa = PBXShellScriptBuildPhase;
331333
buildActionMask = 2147483647;
332334
files = (
333335
);
334336
inputPaths = (
335337
);
336-
name = "Check Pods Manifest.lock";
338+
name = "📦 Check Pods Manifest.lock";
337339
outputPaths = (
338340
);
339341
runOnlyForDeploymentPostprocessing = 0;
340342
shellPath = /bin/sh;
341343
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
342344
showEnvVarsInLog = 0;
343345
};
344-
8F77C1E955DC64ED295408BE /* Copy Pods Resources */ = {
346+
8F77C1E955DC64ED295408BE /* 📦 Copy Pods Resources */ = {
345347
isa = PBXShellScriptBuildPhase;
346348
buildActionMask = 2147483647;
347349
files = (
348350
);
349351
inputPaths = (
350352
);
351-
name = "Copy Pods Resources";
353+
name = "📦 Copy Pods Resources";
352354
outputPaths = (
353355
);
354356
runOnlyForDeploymentPostprocessing = 0;
355357
shellPath = /bin/sh;
356-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
358+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh\"\n";
357359
showEnvVarsInLog = 0;
358360
};
359-
E6E566703A1EF0B51250273C /* Embed Pods Frameworks */ = {
361+
E6E566703A1EF0B51250273C /* 📦 Embed Pods Frameworks */ = {
360362
isa = PBXShellScriptBuildPhase;
361363
buildActionMask = 2147483647;
362364
files = (
363365
);
364366
inputPaths = (
365367
);
366-
name = "Embed Pods Frameworks";
368+
name = "📦 Embed Pods Frameworks";
367369
outputPaths = (
368370
);
369371
runOnlyForDeploymentPostprocessing = 0;
370372
shellPath = /bin/sh;
371-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
373+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Tests/Pods-Tests-frameworks.sh\"\n";
372374
showEnvVarsInLog = 0;
373375
};
374376
/* End PBXShellScriptBuildPhase section */
@@ -496,19 +498,16 @@
496498
};
497499
146D72BA1AB782920058798C /* Debug */ = {
498500
isa = XCBuildConfiguration;
499-
baseConfigurationReference = CD9BA88A390D354C5A62FB27 /* Pods.debug.xcconfig */;
501+
baseConfigurationReference = 69A220EE7580F74D65A7674C /* Pods-Tests.debug.xcconfig */;
500502
buildSettings = {
501503
CLANG_ENABLE_MODULES = YES;
502-
FRAMEWORK_SEARCH_PATHS = (
503-
"$(SDKROOT)/Developer/Library/Frameworks",
504-
"$(inherited)",
505-
);
504+
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
506505
GCC_PREPROCESSOR_DEFINITIONS = (
507506
"DEBUG=1",
508507
"$(inherited)",
509508
);
510509
INFOPLIST_FILE = Tests/Info.plist;
511-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
510+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
512511
PRODUCT_BUNDLE_IDENTIFIER = "com.example.$(PRODUCT_NAME:rfc1034identifier)";
513512
PRODUCT_NAME = "$(TARGET_NAME)";
514513
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -517,15 +516,12 @@
517516
};
518517
146D72BB1AB782920058798C /* Release */ = {
519518
isa = XCBuildConfiguration;
520-
baseConfigurationReference = D89F5291001233A403C41710 /* Pods.release.xcconfig */;
519+
baseConfigurationReference = 4EAD9A72884CE0FE325357BE /* Pods-Tests.release.xcconfig */;
521520
buildSettings = {
522521
CLANG_ENABLE_MODULES = YES;
523-
FRAMEWORK_SEARCH_PATHS = (
524-
"$(SDKROOT)/Developer/Library/Frameworks",
525-
"$(inherited)",
526-
);
522+
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
527523
INFOPLIST_FILE = Tests/Info.plist;
528-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
524+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
529525
PRODUCT_BUNDLE_IDENTIFIER = "com.example.$(PRODUCT_NAME:rfc1034identifier)";
530526
PRODUCT_NAME = "$(TARGET_NAME)";
531527
};

Pod/Podfile

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ inhibit_all_warnings!
88
pod 'SwiftyJSON'
99
pod 'Nimble'
1010
pod 'Quick'
11+
12+
target 'Tests'

Pod/Podfile.lock

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
2-
- Nimble (3.2.0)
3-
- Quick (0.9.1)
2+
- Nimble (4.0.0)
3+
- Quick (0.9.2)
44
- SwiftyJSON (2.3.2)
55

66
DEPENDENCIES:
@@ -9,8 +9,10 @@ DEPENDENCIES:
99
- SwiftyJSON
1010

1111
SPEC CHECKSUMS:
12-
Nimble: 703854335d181df169bbca9c97117b5cf8c47c1d
13-
Quick: a5221fc21788b6aeda934805e68b061839bc3165
12+
Nimble: 72bcc3e2f02242e6bfaaf8d9412ca7bfe3d8b417
13+
Quick: 18d057bc66451eedd5d1c8dc99ba2a5db6e60226
1414
SwiftyJSON: 04ccea08915aa0109039157c7974cf0298da292a
1515

16-
COCOAPODS: 0.39.0
16+
PODFILE CHECKSUM: 4e912842840538c2dfb4b97bb0cd2b042d0bc81c
17+
18+
COCOAPODS: 1.0.0.beta.8

Source/Generators/Number.swift

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Foundation
22
import CoreGraphics
33

4-
private var lastUsedId: Int64 = 0
5-
64
public class Number {
75

6+
private var lastUsedId: Int64 = 0
7+
88
public func randomBool() -> Bool {
99
return randomInt() % 2 == 0
1010
}
@@ -29,5 +29,4 @@ public class Number {
2929
OSAtomicIncrement64(&lastUsedId)
3030
return Int(lastUsedId)
3131
}
32-
3332
}

0 commit comments

Comments
 (0)