calabash-cucumber 0.10.0.pre2 → 0.10.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58c9160b3ab46994846c1a6ba017d7ad33a552d3
4
- data.tar.gz: bb4bf0b81e4d8b6723ba8827fad48384202b2394
3
+ metadata.gz: 8668f2cb079b99db29ee0c58364f91f735c9ebce
4
+ data.tar.gz: 2e32807ed3034989894bb5fa86a62285c1e74bd3
5
5
  SHA512:
6
- metadata.gz: b3d7061cf22b4bdef135a9abc4cf7f69a2356616893940e7d03e6064c7f1ea6f4e83ee2ff73d80a7fdf9103dc76780631069ae178ffad9676400dbe8e4647e22
7
- data.tar.gz: a0b47ef74ffed7850725ae2047c9e0f2189a75e538a1064759035b7e045401844141b7dd8994d1c4fce22df72e118ddb5fa3419f7f2b7aa2c19469357acacbff
6
+ metadata.gz: 2a28db26be2b561e6f6528c18d9176ba3c7994cff51fc8247bd31e179004481856948d9db14a441648c19e9240b8a0ffdb3dab2f6c7a4d24c79c9a19d27e6407
7
+ data.tar.gz: 4641006debfc1aa5fa75aa57102245386b5f9356a1f4e0b990444f9fb90ff7484d4969216e9774ef387453c5110a1a870fd31024e550fd277eed985cb66f29ff
@@ -0,0 +1,93 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'fileutils'
5
+
6
+ def print_usage
7
+ puts <<EOF
8
+ Usage: frank-calabash <command>
9
+ where <command> can be one of
10
+ install
11
+ installs Frank-Calabash by coping libFrankCalabash.a into
12
+ Frank/plugins/calabash
13
+ uninstall
14
+ uninstalls Frank.Calabash by removing Frank/plugins/calabash
15
+ EOF
16
+ end
17
+
18
+ FRANK_DIR = 'Frank'
19
+ PLUGIN_DIR = File.join(FRANK_DIR, 'plugins')
20
+ CAL_PLUGIN_DIR = File.join(PLUGIN_DIR, 'calabash')
21
+ XCCONFIG = File.join(File.dirname(__FILE__), '..', 'scripts', 'calabash.xcconfig.erb')
22
+ LIB_FRANK_CAL = File.join(File.dirname(__FILE__), '..', 'staticlib', 'libFrankCalabash.a')
23
+
24
+ def check_frank_exists
25
+ unless File.directory?(FRANK_DIR)
26
+ puts "Unable to find #{FRANK_DIR} directory (in #{Dir.pwd})"
27
+ puts "Please make sure you've run frank setup."
28
+ exit(false)
29
+ end
30
+ end
31
+
32
+ def install_frank_plugin
33
+ check_frank_exists
34
+ unless File.directory?(PLUGIN_DIR)
35
+ puts "Unable to find #{PLUGIN_DIR} directory (in #{Dir.pwd})"
36
+ puts "Please make sure you've running the latest version of Frank."
37
+ puts 'Try rerunning frank setup.'
38
+ exit(false)
39
+ end
40
+ if File.exist?(CAL_PLUGIN_DIR)
41
+ puts 'Clearing Calabash plugin...'
42
+ FileUtils.rm_f(CAL_PLUGIN_DIR)
43
+ end
44
+ puts "Creating directory #{CAL_PLUGIN_DIR}"
45
+ FileUtils.mkdir_p CAL_PLUGIN_DIR
46
+ FileUtils.cp([LIB_FRANK_CAL, XCCONFIG], CAL_PLUGIN_DIR)
47
+ puts "Copied files #{Dir[File.join(CAL_PLUGIN_DIR,'*')].join(', ')}"
48
+ puts "\nInstalled Frank-Calabash plugin."
49
+ puts 'Please rebuild using frank build.'
50
+
51
+ end
52
+
53
+ def uninstall_frank_plugin
54
+ check_frank_exists
55
+ if File.directory?(CAL_PLUGIN_DIR)
56
+ puts 'Found Calabash plugin...'
57
+ puts "Deleting #{CAL_PLUGIN_DIR}"
58
+ FileUtils.rm_f CAL_PLUGIN_DIR
59
+ puts 'Uninstalled Calabash plugin. Please rebuild.'
60
+ end
61
+ end
62
+
63
+ def console
64
+ require 'frank-cucumber/console'
65
+ require 'frank-calabash'
66
+ require 'calabash-cucumber/operations'
67
+ require 'pry'
68
+ ENV['CALABASH_VERSION_PATH']='calabash_version'
69
+ console = Frank::Console.new
70
+ console.extend ::Frank::Calabash
71
+
72
+ def console.embed(*args)
73
+ end
74
+ console.pry
75
+ end
76
+
77
+ unless ARGV.length == 1
78
+ print_usage
79
+ exit(false)
80
+ end
81
+
82
+ cmd = ARGV.shift
83
+ case cmd
84
+ when 'install'
85
+ install_frank_plugin
86
+ when 'uninstall'
87
+ uninstall_frank_plugin
88
+ when 'console'
89
+ console
90
+ else
91
+ puts "Unsupported command #{cmd}"
92
+ exit(false)
93
+ end
@@ -5,12 +5,12 @@ module Calabash
5
5
 
6
6
  # @!visibility public
7
7
  # The Calabash iOS gem version.
8
- VERSION = '0.10.0.pre2'
8
+ VERSION = '0.10.0.pre3'
9
9
 
10
10
  # @!visibility public
11
11
  # The minimum required version of the calabash.framework or, for Xamarin
12
12
  # users, the Calabash component.
13
- MIN_SERVER_VERSION = '0.10.0.pre1'
13
+ MIN_SERVER_VERSION = '0.10.0.pre3'
14
14
 
15
15
  # @!visibility private
16
16
  def self.const_missing(const_name)
@@ -0,0 +1,53 @@
1
+ # stubs for documentation
2
+ require 'calabash-cucumber/core'
3
+ require 'calabash-cucumber/operations'
4
+ require 'calabash-cucumber/launcher'
5
+
6
+ # base module for Frank-Calabash
7
+ module Calabash
8
+ module Cucumber
9
+ module Map
10
+ def raw_map(query, method_name, *method_args)
11
+ operation_map = {
12
+ :method_name => method_name,
13
+ :arguments => method_args
14
+ }
15
+ res = http({:method => :post, :path => 'cal_map'},
16
+ {:query => query, :operation => operation_map})
17
+ res = JSON.parse(res)
18
+ if res['outcome'] != 'SUCCESS'
19
+ screenshot_and_raise "map #{query}, #{method_name} failed because: #{res['reason']}\n#{res['details']}"
20
+ end
21
+
22
+ res
23
+ end
24
+
25
+ end
26
+ end
27
+ end
28
+
29
+ module Frank
30
+ module Calabash
31
+ def launch(options={})
32
+ launcher = ::Calabash::Cucumber::Launcher.launcher
33
+ #noinspection RubyResolve
34
+ options[:app] ||= File.expand_path('Frank/frankified_build/Frankified.app')
35
+ ::Frank::Cucumber::FrankHelper.selector_engine = 'calabash_uispec'
36
+
37
+ launcher.relaunch(options)
38
+ end
39
+
40
+ def calabash_client
41
+ Client.new
42
+ end
43
+
44
+ module Operations
45
+ include ::Calabash::Cucumber::Operations
46
+ end
47
+
48
+ class Client
49
+ include Operations
50
+ end
51
+
52
+ end
53
+ end
@@ -0,0 +1 @@
1
+ CALABASH_LDFLAGS=-lFrankCalabash
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0.pre2
4
+ version: 0.10.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2014-07-25 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.0
20
20
  type: :runtime
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.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: calabash-common
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.0.1
34
34
  type: :runtime
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: 0.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
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'
55
55
  - !ruby/object:Gem::Dependency
@@ -70,168 +70,168 @@ dependencies:
70
70
  name: CFPropertyList
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.2.8
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.2.8
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sim_launcher
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.4.11
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.4.11
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: slowhandcuke
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
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
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: geocoder
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.1.8
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: 1.1.8
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: httpclient
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
131
  version: 2.3.3
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.3.3
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: bundler
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ~>
144
144
  - !ruby/object:Gem::Version
145
145
  version: '1.1'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ~>
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1.1'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: run_loop
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ~>
158
158
  - !ruby/object:Gem::Version
159
159
  version: 0.2.1
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ~>
165
165
  - !ruby/object:Gem::Version
166
166
  version: 0.2.1
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: awesome_print
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">="
178
+ - - '>='
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rake
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ~>
186
186
  - !ruby/object:Gem::Version
187
187
  version: '10.3'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - ~>
193
193
  - !ruby/object:Gem::Version
194
194
  version: '10.3'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rspec
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - "~>"
199
+ - - ~>
200
200
  - !ruby/object:Gem::Version
201
201
  version: '3.0'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - "~>"
206
+ - - ~>
207
207
  - !ruby/object:Gem::Version
208
208
  version: '3.0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: yard
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - "~>"
213
+ - - ~>
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0.8'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - "~>"
220
+ - - ~>
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0.8'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: redcarpet
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - "~>"
227
+ - - ~>
228
228
  - !ruby/object:Gem::Version
229
229
  version: '3.1'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - "~>"
234
+ - - ~>
235
235
  - !ruby/object:Gem::Version
236
236
  version: '3.1'
237
237
  description: calabash-cucumber drives tests for native iOS apps. You must link your
@@ -240,26 +240,10 @@ email:
240
240
  - karl@lesspainful.com
241
241
  executables:
242
242
  - calabash-ios
243
+ - frank-calabash
243
244
  extensions: []
244
245
  extra_rdoc_files: []
245
246
  files:
246
- - LICENSE
247
- - bin/CalabashSetup
248
- - bin/cal.xcconfig
249
- - bin/calabash-ios
250
- - bin/calabash-ios-build.rb
251
- - bin/calabash-ios-generate.rb
252
- - bin/calabash-ios-helpers.rb
253
- - bin/calabash-ios-setup.rb
254
- - bin/calabash-ios-sim.rb
255
- - features-skeleton/my_first.feature
256
- - features-skeleton/step_definitions/calabash_steps.rb
257
- - features-skeleton/step_definitions/my_first_steps.rb
258
- - features-skeleton/support/01_launch.rb
259
- - features-skeleton/support/02_pre_stop_hooks.rb
260
- - features-skeleton/support/env.rb
261
- - features/step_definitions/calabash_steps.rb
262
- - lib/calabash-cucumber.rb
263
247
  - lib/calabash-cucumber/actions/instruments_actions.rb
264
248
  - lib/calabash-cucumber/actions/playback_actions.rb
265
249
  - lib/calabash-cucumber/calabash_steps.rb
@@ -294,12 +278,33 @@ files:
294
278
  - lib/calabash-cucumber/utils/xctools.rb
295
279
  - lib/calabash-cucumber/version.rb
296
280
  - lib/calabash-cucumber/wait_helpers.rb
281
+ - lib/calabash-cucumber.rb
282
+ - lib/frank-calabash.rb
283
+ - bin/calabash-ios-build.rb
284
+ - bin/calabash-ios-generate.rb
285
+ - bin/calabash-ios-helpers.rb
286
+ - bin/calabash-ios-setup.rb
287
+ - bin/calabash-ios-sim.rb
288
+ - bin/cal.xcconfig
289
+ - bin/CalabashSetup
290
+ - bin/calabash-ios
291
+ - staticlib/calabash.framework.zip
292
+ - staticlib/libFrankCalabash.a
297
293
  - scripts/.irbrc
294
+ - scripts/launch.rb
295
+ - scripts/calabash.xcconfig.erb
298
296
  - scripts/data/clients.plist
299
297
  - scripts/data/com.apple.Accessibility-5.1.plist
300
298
  - scripts/data/com.apple.Accessibility.plist
301
- - scripts/launch.rb
302
- - staticlib/calabash.framework.zip
299
+ - features/step_definitions/calabash_steps.rb
300
+ - features-skeleton/my_first.feature
301
+ - features-skeleton/step_definitions/calabash_steps.rb
302
+ - features-skeleton/step_definitions/my_first_steps.rb
303
+ - features-skeleton/support/01_launch.rb
304
+ - features-skeleton/support/02_pre_stop_hooks.rb
305
+ - features-skeleton/support/env.rb
306
+ - LICENSE
307
+ - bin/frank-calabash
303
308
  homepage: http://calaba.sh
304
309
  licenses:
305
310
  - EPL-1.0
@@ -310,17 +315,17 @@ require_paths:
310
315
  - lib
311
316
  required_ruby_version: !ruby/object:Gem::Requirement
312
317
  requirements:
313
- - - ">="
318
+ - - '>='
314
319
  - !ruby/object:Gem::Version
315
320
  version: '1.9'
316
321
  required_rubygems_version: !ruby/object:Gem::Requirement
317
322
  requirements:
318
- - - ">"
323
+ - - '>'
319
324
  - !ruby/object:Gem::Version
320
325
  version: 1.3.1
321
326
  requirements: []
322
327
  rubyforge_project:
323
- rubygems_version: 2.4.1
328
+ rubygems_version: 2.0.3
324
329
  signing_key:
325
330
  specification_version: 4
326
331
  summary: Client for calabash-ios-server for automated functional testing on iOS