calabash-cucumber 0.9.32 → 0.9.33

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- calabash-cucumber (0.9.20)
4
+ calabash-cucumber (0.9.33)
5
5
  CFPropertyList
6
6
  cucumber
7
7
  json
@@ -64,6 +64,10 @@ module Operations
64
64
  simple_touch(label,*args)
65
65
  end
66
66
 
67
+ def html(q)
68
+ query(q).map {|e| e['html']}
69
+ end
70
+
67
71
  def ok
68
72
  touch("view marked:'ok'")
69
73
  end
@@ -233,6 +237,25 @@ module Operations
233
237
  res['results']
234
238
  end
235
239
 
240
+ def interpolate(recording, options={})
241
+ data = load_playback_data(recording)
242
+
243
+ post_data = %Q|{"events":"#{data}"|
244
+ post_data<< %Q|,"start":"#{options[:start]}"| if options[:start]
245
+ post_data<< %Q|,"end":"#{options[:end]}"| if options[:end]
246
+ post_data<< %Q|,"offset_start":#{options[:offset_start].to_json}| if options[:offset_start]
247
+ post_data<< %Q|,"offset_end":#{options[:offset_end].to_json}| if options[:offset_end]
248
+ post_data << "}"
249
+
250
+ res = http({:method=>:post, :raw=>true, :path=>'interpolate'}, post_data)
251
+
252
+ res = JSON.parse( res )
253
+ if res['outcome'] != 'SUCCESS'
254
+ screenshot_and_raise "interpolate failed because: #{res['reason']}\n#{res['details']}"
255
+ end
256
+ res['results']
257
+ end
258
+
236
259
  def record_begin
237
260
  http({:method=>:post, :path=>'record'}, {:action => :start})
238
261
  end
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.32"
4
- FRAMEWORK_VERSION = "0.9.32"
3
+ VERSION = "0.9.33"
4
+ FRAMEWORK_VERSION = "0.9.33"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.32
4
+ version: 0.9.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-11 00:00:00.000000000 Z
12
+ date: 2012-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
16
- requirement: &70290440946840 !ruby/object:Gem::Requirement
16
+ requirement: &70104146652560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70290440946840
24
+ version_requirements: *70104146652560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70290440945940 !ruby/object:Gem::Requirement
27
+ requirement: &70104146651260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70290440945940
35
+ version_requirements: *70104146651260
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: CFPropertyList
38
- requirement: &70290440945000 !ruby/object:Gem::Requirement
38
+ requirement: &70104146650040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70290440945000
46
+ version_requirements: *70104146650040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sim_launcher
49
- requirement: &70290440944040 !ruby/object:Gem::Requirement
49
+ requirement: &70104146648600 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70290440944040
57
+ version_requirements: *70104146648600
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: slowhandcuke
60
- requirement: &70290440942800 !ruby/object:Gem::Requirement
60
+ requirement: &70104146647640 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70290440942800
68
+ version_requirements: *70104146647640
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: net-http-persistent
71
- requirement: &70290440942120 !ruby/object:Gem::Requirement
71
+ requirement: &70104146646860 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70290440942120
79
+ version_requirements: *70104146646860
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: pbxproject
82
- requirement: &70290440957800 !ruby/object:Gem::Requirement
82
+ requirement: &70104146646160 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70290440957800
90
+ version_requirements: *70104146646160
91
91
  description: calabash-cucumber drives tests for native iOS apps. You must link your
92
92
  app with calabash-ios-server framework to execute tests.
93
93
  email: