fwtoolkit 1.0.6 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +6 -14
- data/lib/fwtoolkit/cli/project.rb +7 -11
- data/lib/fwtoolkit/cli/xcode.rb +3 -3
- data/lib/fwtoolkit/cli.rb +5 -8
- data/lib/fwtoolkit/config/config.sample +2 -3
- data/lib/fwtoolkit/configfile.rb +0 -1
- data/lib/fwtoolkit/version.rb +1 -1
- data/templates/objc_project/git/.gitignore +31 -0
- data/templates/objc_project/rvm/Gemfile +3 -0
- data/templates/objc_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt +441 -0
- data/templates/{default_project → objc_project}/xcode/%project_name%/%project_name%.xcodeproj/project.xcworkspace/contents.xcworkspacedata.tt +0 -0
- data/templates/{default_project → objc_project}/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt +7 -4
- data/templates/{default_project → objc_project}/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt +14 -18
- data/templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.h.tt +15 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.m.tt +27 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/AppDelegate.swift.tt +46 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +68 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/LaunchScreen.storyboard +27 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/Main.storyboard +26 -0
- data/templates/{default_project/xcode/%project_name%/%target_name%/Supporting Files/%project_name%-Info.plist → objc_project/xcode/%project_name%/%target_name%/Supporting Files/Info.plist } +8 -6
- data/templates/{default_project → objc_project}/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig +1 -5
- data/templates/{default_project → objc_project}/xcode/%project_name%/%target_name%/Supporting Files/main.m.tt +3 -5
- data/templates/objc_project/xcode/%project_name%/%target_name%/ViewController.swift.tt +25 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%Tests/%project_name%Tests.m.tt +39 -0
- data/templates/{default_project/xcode/%project_name%/%tests_target_name%/Supporting Files/%tests_target_name%-Info.plist → objc_project/xcode/%project_name%/%target_name%Tests/Resources/Info.plist} +4 -2
- data/templates/objc_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.swift.tt +36 -0
- data/templates/objc_project/xcode/%project_name%/%tests_target_name%/Supporting Files/Info.plist +24 -0
- data/templates/{default_project → objc_project}/xcode/%project_name%.xcworkspace/contents.xcworkspacedata.tt +1 -1
- data/templates/{default_project → objc_project}/xcode/Podfile.tt +2 -0
- data/templates/{default_project → objc_project}/xcode/Rakefile.tt +0 -5
- data/templates/swift_project/git/.gitignore +31 -0
- data/templates/swift_project/rvm/Gemfile +3 -0
- data/templates/swift_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt +435 -0
- data/templates/swift_project/xcode/%project_name%/%project_name%.xcodeproj/project.xcworkspace/contents.xcworkspacedata.tt +7 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt +18 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt +45 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.h.tt +15 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.m.tt +27 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/AppDelegate.swift.tt +46 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +73 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/LaunchScreen.storyboard +27 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/Main.storyboard +25 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/Info.plist +47 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig +37 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/main.m.tt +16 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/ViewController.swift.tt +25 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%Tests/%project_name%Tests.m.tt +39 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%Tests/Resources/Info.plist +24 -0
- data/templates/swift_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.swift.tt +36 -0
- data/templates/swift_project/xcode/%project_name%/%tests_target_name%/Supporting Files/Info.plist +24 -0
- data/templates/swift_project/xcode/%project_name%/.DS_Store +0 -0
- data/templates/swift_project/xcode/%project_name%.xcworkspace/contents.xcworkspacedata.tt +7 -0
- data/templates/swift_project/xcode/.DS_Store +0 -0
- data/templates/swift_project/xcode/Podfile.tt +5 -0
- data/templates/swift_project/xcode/Rakefile.tt +9 -0
- metadata +103 -123
- data/templates/default_project/frank/%project_name%/%target_name%/%class_prefix%AppDelegate+Frank.h.tt +0 -15
- data/templates/default_project/frank/%project_name%/%target_name%/%class_prefix%AppDelegate+Frank.m.tt +0 -86
- data/templates/default_project/frank/%project_name%/Frank/features/example.feature +0 -8
- data/templates/default_project/frank/%project_name%/Frank/features/step_definitions/launch_steps.rb +0 -15
- data/templates/default_project/frank/%project_name%/Frank/features/support/env.rb +0 -21
- data/templates/default_project/frank/%project_name%/Frank/features/support/mimic.rb +0 -94
- data/templates/default_project/frank/~template_config.rb +0 -11
- data/templates/default_project/frank_seed_core_data/%project_name%/Frank/features/support/models/%class_name%.rb.tt +0 -30
- data/templates/default_project/frank_seed_support/%project_name%/Frank/features/support/models/factories.rb.tt +0 -10
- data/templates/default_project/frank_seed_support/%project_name%/Frank/features/support/views/my_objects_json.erb +0 -7
- data/templates/default_project/frank_seed_support/%project_name%/Frank/features/support/views/my_objects_xml.erb +0 -7
- data/templates/default_project/rvm/.rvmrc.tt +0 -41
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt +0 -547
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%-Release.xcscheme.tt +0 -105
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%-Testing.xcscheme.tt +0 -105
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%.xcscheme.tt +0 -105
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/%project_name%-Prefix.pch.tt +0 -14
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/en.lproj/InfoPlist.strings +0 -2
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/info.plist.h.tt +0 -8
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/version.sh +0 -159
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.h.tt +0 -13
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.m.tt +0 -32
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/Supporting Files/en.lproj/InfoPlist.strings +0 -2
- data/templates/default_project/xcode/%project_name%/Default.png +0 -0
- data/templates/default_project/xcode/%project_name%/Resources/Default-568h@2x.png +0 -0
- data/templates/default_project/xcode/%project_name%/Resources/Default.png +0 -0
- data/templates/default_project/xcode/%project_name%/Resources/Default@2x.png +0 -0
- data/templates/default_project/xcode/%project_name%.xcworkspace/xcshareddata/%project_name%.xccheckout.tt +0 -41
- data/templates/default_project/xcode/FWProjectfile.tt +0 -14
- data/templates/default_project/xcode/~template_config.rb +0 -5
metadata
CHANGED
@@ -1,206 +1,193 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fwtoolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Fabio Gallonetto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.3.1
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.3.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.13.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: aruba
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.5.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.5.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: aruba-doubles
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.2.1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.2.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: frank-cucumber
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.1.9.pre1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.1.9.pre1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: thor
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.17.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.17.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 10.
|
103
|
+
version: 10.4.2
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 10.
|
110
|
+
version: 10.4.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: bundler
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: core_data
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ~>
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 0.0.4
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ~>
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 0.0.4
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: xcodeproj
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
|
-
- - ~>
|
129
|
+
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
131
|
+
version: 0.21.0
|
146
132
|
type: :runtime
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
|
-
- - ~>
|
136
|
+
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
138
|
+
version: 0.21.0
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: xcodebuild-rb
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
|
-
- -
|
143
|
+
- - ">="
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0
|
145
|
+
version: '0'
|
160
146
|
type: :runtime
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
|
-
- -
|
150
|
+
- - ">="
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: frank-cucumber
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ~>
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 1.1.9.pre1
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ~>
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 1.1.9.pre1
|
152
|
+
version: '0'
|
181
153
|
- !ruby/object:Gem::Dependency
|
182
154
|
name: rubyzip
|
183
155
|
requirement: !ruby/object:Gem::Requirement
|
184
156
|
requirements:
|
185
|
-
- - ~>
|
157
|
+
- - "~>"
|
186
158
|
- !ruby/object:Gem::Version
|
187
159
|
version: 0.9.9
|
188
160
|
type: :runtime
|
189
161
|
prerelease: false
|
190
162
|
version_requirements: !ruby/object:Gem::Requirement
|
191
163
|
requirements:
|
192
|
-
- - ~>
|
164
|
+
- - "~>"
|
193
165
|
- !ruby/object:Gem::Version
|
194
166
|
version: 0.9.9
|
195
167
|
description: A collection of iOS development tools used by Future Workshops
|
196
168
|
email:
|
197
|
-
-
|
169
|
+
- fabio@futureworkshops.com
|
198
170
|
executables:
|
199
171
|
- fwt
|
200
172
|
extensions: []
|
201
173
|
extra_rdoc_files: []
|
202
174
|
files:
|
203
175
|
- bin/fwt
|
176
|
+
- features/cocoapods/setup.feature
|
177
|
+
- features/frank/model.feature
|
178
|
+
- features/frank/setup.feature
|
179
|
+
- features/git/create.feature
|
180
|
+
- features/project/create.feature
|
181
|
+
- features/step_definitions/aruba_steps.rb
|
182
|
+
- features/step_definitions/git_steps.rb
|
183
|
+
- features/step_definitions/project_steps.rb
|
184
|
+
- features/step_definitions/rvm_steps.rb
|
185
|
+
- features/step_definitions/system_steps.rb
|
186
|
+
- features/support/env.rb
|
187
|
+
- features/support/lib_test/aruba_fwt.rb
|
188
|
+
- features/support/lib_test/aruba_mod.rb
|
189
|
+
- features/support/lib_test/fake_gem.rb
|
190
|
+
- features/xcode/create.feature
|
204
191
|
- lib/fwtoolkit.rb
|
205
192
|
- lib/fwtoolkit/cli.rb
|
206
193
|
- lib/fwtoolkit/cli/bootstrap.rb
|
@@ -235,63 +222,6 @@ files:
|
|
235
222
|
- lib/fwtoolkit/rake/tasks/test.rb
|
236
223
|
- lib/fwtoolkit/rake/tasks/xcode.rb
|
237
224
|
- lib/fwtoolkit/version.rb
|
238
|
-
- templates/default_project/frank/%project_name%/%target_name%/%class_prefix%AppDelegate+Frank.h.tt
|
239
|
-
- templates/default_project/frank/%project_name%/%target_name%/%class_prefix%AppDelegate+Frank.m.tt
|
240
|
-
- templates/default_project/frank/%project_name%/Frank/features/example.feature
|
241
|
-
- templates/default_project/frank/%project_name%/Frank/features/step_definitions/launch_steps.rb
|
242
|
-
- templates/default_project/frank/%project_name%/Frank/features/support/env.rb
|
243
|
-
- templates/default_project/frank/%project_name%/Frank/features/support/mimic.rb
|
244
|
-
- templates/default_project/frank/~template_config.rb
|
245
|
-
- templates/default_project/frank_seed_core_data/%project_name%/Frank/features/support/models/%class_name%.rb.tt
|
246
|
-
- templates/default_project/frank_seed_support/%project_name%/Frank/features/support/models/factories.rb.tt
|
247
|
-
- templates/default_project/frank_seed_support/%project_name%/Frank/features/support/views/my_objects_json.erb
|
248
|
-
- templates/default_project/frank_seed_support/%project_name%/Frank/features/support/views/my_objects_xml.erb
|
249
|
-
- templates/default_project/git/.gitignore
|
250
|
-
- templates/default_project/rvm/.rvmrc.tt
|
251
|
-
- templates/default_project/rvm/Gemfile
|
252
|
-
- templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt
|
253
|
-
- templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/project.xcworkspace/contents.xcworkspacedata.tt
|
254
|
-
- templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%-Release.xcscheme.tt
|
255
|
-
- templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%-Testing.xcscheme.tt
|
256
|
-
- templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%.xcscheme.tt
|
257
|
-
- templates/default_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt
|
258
|
-
- templates/default_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt
|
259
|
-
- templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/%project_name%-Info.plist
|
260
|
-
- templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/%project_name%-Prefix.pch.tt
|
261
|
-
- templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/en.lproj/InfoPlist.strings
|
262
|
-
- templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig
|
263
|
-
- templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/info.plist.h.tt
|
264
|
-
- templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/main.m.tt
|
265
|
-
- templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/version.sh
|
266
|
-
- templates/default_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.h.tt
|
267
|
-
- templates/default_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.m.tt
|
268
|
-
- templates/default_project/xcode/%project_name%/%tests_target_name%/Supporting Files/%tests_target_name%-Info.plist
|
269
|
-
- templates/default_project/xcode/%project_name%/%tests_target_name%/Supporting Files/en.lproj/InfoPlist.strings
|
270
|
-
- templates/default_project/xcode/%project_name%/Default.png
|
271
|
-
- templates/default_project/xcode/%project_name%/Resources/Default-568h@2x.png
|
272
|
-
- templates/default_project/xcode/%project_name%/Resources/Default.png
|
273
|
-
- templates/default_project/xcode/%project_name%/Resources/Default@2x.png
|
274
|
-
- templates/default_project/xcode/%project_name%.xcworkspace/contents.xcworkspacedata.tt
|
275
|
-
- templates/default_project/xcode/%project_name%.xcworkspace/xcshareddata/%project_name%.xccheckout.tt
|
276
|
-
- templates/default_project/xcode/FWProjectfile.tt
|
277
|
-
- templates/default_project/xcode/Podfile.tt
|
278
|
-
- templates/default_project/xcode/Rakefile.tt
|
279
|
-
- templates/default_project/xcode/~template_config.rb
|
280
|
-
- features/cocoapods/setup.feature
|
281
|
-
- features/frank/model.feature
|
282
|
-
- features/frank/setup.feature
|
283
|
-
- features/git/create.feature
|
284
|
-
- features/project/create.feature
|
285
|
-
- features/step_definitions/aruba_steps.rb
|
286
|
-
- features/step_definitions/git_steps.rb
|
287
|
-
- features/step_definitions/project_steps.rb
|
288
|
-
- features/step_definitions/rvm_steps.rb
|
289
|
-
- features/step_definitions/system_steps.rb
|
290
|
-
- features/support/env.rb
|
291
|
-
- features/support/lib_test/aruba_fwt.rb
|
292
|
-
- features/support/lib_test/aruba_mod.rb
|
293
|
-
- features/support/lib_test/fake_gem.rb
|
294
|
-
- features/xcode/create.feature
|
295
225
|
- spec/git_client_spec.rb
|
296
226
|
- spec/project_config_spec.rb
|
297
227
|
- spec/rake/project.rb
|
@@ -301,6 +231,56 @@ files:
|
|
301
231
|
- spec/support/ctx_rake.rb
|
302
232
|
- spec/support/double_helper.rb
|
303
233
|
- spec/support/project_generator.rb
|
234
|
+
- templates/default_project/git/.gitignore
|
235
|
+
- templates/default_project/rvm/Gemfile
|
236
|
+
- templates/objc_project/git/.gitignore
|
237
|
+
- templates/objc_project/rvm/Gemfile
|
238
|
+
- templates/objc_project/xcode/%project_name%.xcworkspace/contents.xcworkspacedata.tt
|
239
|
+
- templates/objc_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt
|
240
|
+
- templates/objc_project/xcode/%project_name%/%project_name%.xcodeproj/project.xcworkspace/contents.xcworkspacedata.tt
|
241
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt
|
242
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt
|
243
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.h.tt
|
244
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.m.tt
|
245
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/AppDelegate.swift.tt
|
246
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json
|
247
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/LaunchScreen.storyboard
|
248
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/Main.storyboard
|
249
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/Supporting Files/Info.plist
|
250
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig
|
251
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/Supporting Files/main.m.tt
|
252
|
+
- templates/objc_project/xcode/%project_name%/%target_name%/ViewController.swift.tt
|
253
|
+
- templates/objc_project/xcode/%project_name%/%target_name%Tests/%project_name%Tests.m.tt
|
254
|
+
- templates/objc_project/xcode/%project_name%/%target_name%Tests/Resources/Info.plist
|
255
|
+
- templates/objc_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.swift.tt
|
256
|
+
- templates/objc_project/xcode/%project_name%/%tests_target_name%/Supporting Files/Info.plist
|
257
|
+
- templates/objc_project/xcode/Podfile.tt
|
258
|
+
- templates/objc_project/xcode/Rakefile.tt
|
259
|
+
- templates/swift_project/git/.gitignore
|
260
|
+
- templates/swift_project/rvm/Gemfile
|
261
|
+
- templates/swift_project/xcode/%project_name%.xcworkspace/contents.xcworkspacedata.tt
|
262
|
+
- templates/swift_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt
|
263
|
+
- templates/swift_project/xcode/%project_name%/%project_name%.xcodeproj/project.xcworkspace/contents.xcworkspacedata.tt
|
264
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt
|
265
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt
|
266
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.h.tt
|
267
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.m.tt
|
268
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/AppDelegate.swift.tt
|
269
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json
|
270
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/LaunchScreen.storyboard
|
271
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/Main.storyboard
|
272
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/Info.plist
|
273
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig
|
274
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/main.m.tt
|
275
|
+
- templates/swift_project/xcode/%project_name%/%target_name%/ViewController.swift.tt
|
276
|
+
- templates/swift_project/xcode/%project_name%/%target_name%Tests/%project_name%Tests.m.tt
|
277
|
+
- templates/swift_project/xcode/%project_name%/%target_name%Tests/Resources/Info.plist
|
278
|
+
- templates/swift_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.swift.tt
|
279
|
+
- templates/swift_project/xcode/%project_name%/%tests_target_name%/Supporting Files/Info.plist
|
280
|
+
- templates/swift_project/xcode/%project_name%/.DS_Store
|
281
|
+
- templates/swift_project/xcode/.DS_Store
|
282
|
+
- templates/swift_project/xcode/Podfile.tt
|
283
|
+
- templates/swift_project/xcode/Rakefile.tt
|
304
284
|
homepage: https://github.com/FutureWorkshops/FWToolkit
|
305
285
|
licenses: []
|
306
286
|
metadata: {}
|
@@ -310,17 +290,17 @@ require_paths:
|
|
310
290
|
- lib
|
311
291
|
required_ruby_version: !ruby/object:Gem::Requirement
|
312
292
|
requirements:
|
313
|
-
- -
|
293
|
+
- - ">="
|
314
294
|
- !ruby/object:Gem::Version
|
315
295
|
version: '0'
|
316
296
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
317
297
|
requirements:
|
318
|
-
- -
|
298
|
+
- - ">="
|
319
299
|
- !ruby/object:Gem::Version
|
320
300
|
version: '0'
|
321
301
|
requirements: []
|
322
302
|
rubyforge_project:
|
323
|
-
rubygems_version: 2.
|
303
|
+
rubygems_version: 2.4.3
|
324
304
|
signing_key:
|
325
305
|
specification_version: 4
|
326
306
|
summary: ''
|
@@ -1,15 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// <%= config[:class_prefix] %>AppDelegate+Frank.h
|
3
|
-
// <%= config[:project_name] %>
|
4
|
-
//
|
5
|
-
// Created by <%= config[:project_creator] %> on 06/02/2013.
|
6
|
-
// Copyright (c) 2013 <%= config[:organization_name] %>. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
#import "<%= config[:class_prefix] %>AppDelegate.h"
|
10
|
-
|
11
|
-
@interface <%= config[:class_prefix] %>AppDelegate (Frank)
|
12
|
-
|
13
|
-
- (void) seedCoreData:(NSString *)json;
|
14
|
-
|
15
|
-
@end
|
@@ -1,86 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// <%= config[:class_prefix] %>AppDelegate+Frank.h
|
3
|
-
// <%= config[:project_name] %>
|
4
|
-
//
|
5
|
-
// Created by <%= config[:project_creator] %> on 06/02/2013.
|
6
|
-
// Copyright (c) 2013 <%= config[:organization_name] %>. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
#import "<%= config[:class_prefix] %>AppDelegate+Frank.h"
|
10
|
-
#import <CoreData/CoreData.h>
|
11
|
-
#import <JSONKit/JSONKit.h>
|
12
|
-
#import <RestKit/RestKit.h>
|
13
|
-
|
14
|
-
@implementation <%= config[:class_prefix] %>AppDelegate (Frank)
|
15
|
-
|
16
|
-
- (void) seedCoreData:(NSString *)json
|
17
|
-
{
|
18
|
-
NSDictionary *objectsDictionary = [json objectFromJSONString];
|
19
|
-
|
20
|
-
NSManagedObjectContext *managedObjectContext = [RKObjectManager sharedManager].objectStore.managedObjectContextForCurrentThread;
|
21
|
-
|
22
|
-
for (NSString *objectKey in objectsDictionary)
|
23
|
-
{
|
24
|
-
[self createObjectWithEntityName:objectKey configuredWithDictionary:[objectsDictionary objectForKey:objectKey] inManagedObjectContext:managedObjectContext];
|
25
|
-
}
|
26
|
-
|
27
|
-
NSError *error = nil;
|
28
|
-
if (![managedObjectContext save:&error]) {
|
29
|
-
NSLog(@"Error saving: %@", [error localizedDescription]);
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
- (NSManagedObject *)createObjectWithEntityName:(NSString *)entityName configuredWithDictionary:(NSDictionary *)dictionary inManagedObjectContext:(NSManagedObjectContext *)context
|
34
|
-
{
|
35
|
-
NSManagedObject *object = [NSEntityDescription insertNewObjectForEntityForName:entityName inManagedObjectContext:context];
|
36
|
-
|
37
|
-
NSEntityDescription *objectEntityDescription = [object entity];
|
38
|
-
|
39
|
-
NSDictionary *attributes = [objectEntityDescription attributesByName];
|
40
|
-
NSDictionary *relationships = [objectEntityDescription relationshipsByName];
|
41
|
-
|
42
|
-
for (NSString *key in [dictionary allKeys])
|
43
|
-
{
|
44
|
-
if ([[attributes allKeys] containsObject:key])
|
45
|
-
{
|
46
|
-
id value = [dictionary objectForKey:key];
|
47
|
-
if (value != [NSNull null])
|
48
|
-
{
|
49
|
-
[object setValue:value forKey:key];
|
50
|
-
}
|
51
|
-
}
|
52
|
-
else if ([[relationships allKeys] containsObject:key])
|
53
|
-
{
|
54
|
-
NSRelationshipDescription *relationshipDescription = [relationships objectForKey:key];
|
55
|
-
|
56
|
-
NSString *destinationEntityName = [[relationshipDescription destinationEntity] name];
|
57
|
-
|
58
|
-
if ([relationshipDescription isToMany])
|
59
|
-
{
|
60
|
-
NSMutableSet *relationshipSet = [NSMutableSet set];
|
61
|
-
for (NSDictionary *toManyRelationshipObject in [dictionary objectForKey:key])
|
62
|
-
{
|
63
|
-
NSManagedObject *destinationObject = [self createObjectWithEntityName:destinationEntityName
|
64
|
-
configuredWithDictionary:toManyRelationshipObject
|
65
|
-
inManagedObjectContext:context];
|
66
|
-
|
67
|
-
[relationshipSet addObject:destinationObject];
|
68
|
-
}
|
69
|
-
|
70
|
-
[object setValue:relationshipSet forKey:key];
|
71
|
-
}
|
72
|
-
else
|
73
|
-
{
|
74
|
-
NSManagedObject *destinationObject = [self createObjectWithEntityName:destinationEntityName
|
75
|
-
configuredWithDictionary:[dictionary objectForKey:key]
|
76
|
-
inManagedObjectContext:context];
|
77
|
-
|
78
|
-
[object setValue:destinationObject forKey:key];
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
return object;
|
84
|
-
}
|
85
|
-
|
86
|
-
@end
|
data/templates/default_project/frank/%project_name%/Frank/features/step_definitions/launch_steps.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'pickle/world'
|
2
|
-
require 'fwtoolkit/test/model_helper'
|
3
|
-
|
4
|
-
Given /^I reset the iOS simulator$/ do
|
5
|
-
fwt_simulator_reset_data fwt_ios_sdk
|
6
|
-
end
|
7
|
-
|
8
|
-
Given /^I seed the (iPhone|iPad) simulator with #{capture_model}$/ do |device, capture_model|
|
9
|
-
launch_app fwt_app_path, fwt_ios_sdk, device.downcase
|
10
|
-
fwt_seed_app_with_pickle_models [capture_model]
|
11
|
-
end
|
12
|
-
|
13
|
-
Given /^I launch the app in the (iPhone|iPad) simulator$/ do |device|
|
14
|
-
launch_app fwt_app_path, fwt_ios_sdk, device.downcase
|
15
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'fwtoolkit'
|
2
|
-
require 'frank-cucumber'
|
3
|
-
|
4
|
-
Frank::Cucumber::FrankHelper.use_shelley_from_now_on
|
5
|
-
|
6
|
-
APP_BUNDLE_PATH = File.expand_path( '../../../frankified_build/Frankified.app', __FILE__ )
|
7
|
-
|
8
|
-
IOS_SDK = '6.0'
|
9
|
-
#XCODE_VERSION = '4.5.1' # not currently used - look out for this in FWToolkit 0.5
|
10
|
-
|
11
|
-
AfterConfiguration do
|
12
|
-
require 'pickle/world'
|
13
|
-
require 'fwtoolkit/test/pickle_steps'
|
14
|
-
require 'fwtoolkit/test/ui_steps'
|
15
|
-
require 'fwtoolkit/test/model_helper'
|
16
|
-
require 'fwtoolkit/test/timeout_helper'
|
17
|
-
end
|
18
|
-
|
19
|
-
After do |scenario|
|
20
|
-
FWToolkit::Test::FrankCache.clean_up
|
21
|
-
end
|
@@ -1,94 +0,0 @@
|
|
1
|
-
require 'mimic'
|
2
|
-
require 'socket'
|
3
|
-
|
4
|
-
# Listen on the following :port
|
5
|
-
# Add the following to your objective-c code, in the place where your
|
6
|
-
# server root is configured
|
7
|
-
# #ifdef FRANKIFIED
|
8
|
-
# server = "http://localhost:11988"
|
9
|
-
# #else
|
10
|
-
# server = <your production server>
|
11
|
-
# #endif
|
12
|
-
Mimic.mimic(:port => 11988) do |m|
|
13
|
-
|
14
|
-
# use the 'views' directory adjacent to this file for API templates
|
15
|
-
set :views, File.expand_path('views', File.dirname(__FILE__))
|
16
|
-
|
17
|
-
# EXAMPLE ROUTE 1 - XML summary using erb template
|
18
|
-
# Uncomment to get xml defined by 'views/my_objects_xml.erb' containing all MyObject instances
|
19
|
-
# @see views/my_objects_xml.erb
|
20
|
-
#
|
21
|
-
# get '/my_objects.xml' do
|
22
|
-
# @my_objects = MyObject.find_all
|
23
|
-
# erb :my_objects_xml, :content_type => 'application/xml'
|
24
|
-
# end
|
25
|
-
|
26
|
-
# EXAMPLE ROUTE 2 - JSON summary using erb template
|
27
|
-
# Uncomment to get json defined by 'views/my_objects_json.erb' containing all MyObject instances
|
28
|
-
# @see views/my_objects_json.erb
|
29
|
-
#
|
30
|
-
# get '/my_objects.json' do
|
31
|
-
# @my_objects = MyObject.find_all
|
32
|
-
# erb :my_objects_json, :content_type => 'application/json'
|
33
|
-
# end
|
34
|
-
|
35
|
-
# EXAMPLE ROUTE 3 - JSON detail using erb template
|
36
|
-
# Uncomment to get json defined by 'views/my_object_json.erb' containing detail about a single MyObject instance
|
37
|
-
# found using the URL parameter "name", i.e. /myobject.json?name=Fred
|
38
|
-
#
|
39
|
-
# get '/my_object.json' do
|
40
|
-
# @my_objects = MyObject.find_first({:name => params[:name]})
|
41
|
-
# erb :my_object_json, :content_type => 'application/json'
|
42
|
-
# end
|
43
|
-
|
44
|
-
# EXAMPLE ROUTE 4 - JSON summary using JBuilder
|
45
|
-
# Uncomment to get json defined programatically.
|
46
|
-
# This is recommended if you are building from scratch or testing a system which has concise, well defined JSON,
|
47
|
-
# as this will be more maintainable than erb templates
|
48
|
-
# You will also need to add
|
49
|
-
# gem 'jbuilder'
|
50
|
-
# to your Gemfile
|
51
|
-
# See more on JBuilder here https://github.com/rails/jbuilder
|
52
|
-
#
|
53
|
-
# get '/my_objects.json' do
|
54
|
-
# my_objects = MyObject.find_all
|
55
|
-
# json = Jbuilder.encode do |json|
|
56
|
-
# json.array!(my_objects) do |o|
|
57
|
-
# json.name o.name
|
58
|
-
# end
|
59
|
-
# end
|
60
|
-
# [200, {'Content-Type' => 'application/json'}, json]
|
61
|
-
# end
|
62
|
-
|
63
|
-
# EXAMPLE ROUTE 5 - Authentication
|
64
|
-
# An example route requiring authentication, and setting a cookie once the user 'admin', 'password' authorized
|
65
|
-
# def protected!
|
66
|
-
# unless authorized?
|
67
|
-
# response['WWW-Authenticate'] = %(Basic realm="Restricted Area")
|
68
|
-
# throw(:halt, [401, "Not authorized\n"])
|
69
|
-
# end
|
70
|
-
# end
|
71
|
-
#
|
72
|
-
# def authorized?
|
73
|
-
# if request.cookies.key?('my cookie')
|
74
|
-
# true
|
75
|
-
# else
|
76
|
-
# @auth ||= Rack::Auth::Basic::Request.new(request.env)
|
77
|
-
# if(@auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == ['admin', 'password'])
|
78
|
-
# response.set_cookie('my cookie', :value => {:user => 'admin@admin.com'}, :expires => Time.now + 10.minutes, :path => "/")
|
79
|
-
# true
|
80
|
-
# else
|
81
|
-
# false
|
82
|
-
# end
|
83
|
-
# end
|
84
|
-
# end
|
85
|
-
#
|
86
|
-
# get '/my_secret_objects.xml' do
|
87
|
-
# protected!
|
88
|
-
# @my_objects = MyObject.find_all({:name => 'secret'})
|
89
|
-
# erb :my_objects_json, :content_type => 'application/json'
|
90
|
-
# end
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'xcodeproj'
|
2
|
-
|
3
|
-
project_config do |destination_root, config|
|
4
|
-
source_files_folder = File.join destination_root, config[:project_name], config[:target_name]
|
5
|
-
project_file = File.join destination_root, config[:project_name], "#{config[:project_name]}.xcodeproj"
|
6
|
-
project = Xcodeproj::Project.new(project_file)
|
7
|
-
project.new_file File.join(source_files_folder, "#{config[:class_prefix]}AppDelegate+Frank.h"), config[:project_name]
|
8
|
-
m = project.new_file File.join(source_files_folder, "#{config[:class_prefix]}AppDelegate+Frank.m"), config[:project_name]
|
9
|
-
project.targets.select{|t| t.name.eql? config[:target_name]}[0].add_file_references [m]
|
10
|
-
project.save_as project_file
|
11
|
-
end
|