calabash-cucumber 0.9.72 → 0.9.74

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- calabash-cucumber (0.9.70)
4
+ calabash-cucumber (0.9.74)
5
5
  CFPropertyList
6
6
  cucumber
7
7
  json
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency( "cucumber" )
20
20
  s.add_dependency( "json" )
21
21
  s.add_dependency( "CFPropertyList" )
22
- s.add_dependency( "sim_launcher", "0.3.8")
22
+ s.add_dependency( "sim_launcher", "0.3.8") #Recommended by Pete for now
23
23
  s.add_dependency( "slowhandcuke" )
24
24
  s.add_dependency( "net-http-persistent" )
25
25
 
@@ -404,6 +404,50 @@ module Calabash
404
404
  res['result']
405
405
  end
406
406
 
407
+ #not officially supported yet
408
+ #def change_slider_value_to(q, value)
409
+ # target = value.to_f
410
+ # if target < 0
411
+ # pending "value '#{value}' must be >= 0"
412
+ # end
413
+ # min_val = query(q, :minimumValue).first
414
+ # # will not work for min_val != 0
415
+ # if min_val != 0
416
+ # screenshot_and_raise "sliders with non-zero minimum values are not supported - slider '#{q}' has minimum value of '#{min_val}'"
417
+ # end
418
+ # max_val = query(q, :maximumValue).first
419
+ # if target > max_val
420
+ # screenshot_and_raise "cannot change slider '#{q}' to '#{value}' because the maximum allowed value is '#{max_val}'"
421
+ # end
422
+ #
423
+ # val = query(q, :value).first
424
+ # # the x offset is from the middle of the slider.
425
+ # # ex. slider from 0 to 5
426
+ # # to touch 3, x must be 0
427
+ # # to touch 0, x must be -2.5
428
+ # # to touch 5, x must be 2.5
429
+ # width = query(q, :frame).first["width"] - 10
430
+ #
431
+ # cur_x = -width/2.0 + val*width
432
+ # tgt_x = -width/2.0 + target*width
433
+ #
434
+ # interpolate("slide", :start =>q, :end => q,
435
+ # :offset_end => {:x => tgt_x, :y => 1},
436
+ # :offset_start => {:x => cur_x, :y => -1})
437
+ # sleep(0.1)
438
+ #
439
+ # val = query(q, :value).first
440
+ # cur_x = -width/2.0 + val*width
441
+ # tgt_x = -width/2.0 + target*width
442
+ #
443
+ # interpolate("slide", :start =>q, :end => q,
444
+ # :offset_end => {:x => tgt_x, :y => 1},
445
+ # :offset_start => {:x => cur_x, :y => -1})
446
+ #
447
+ #
448
+ #end
449
+
450
+
407
451
  #def screencast_begin
408
452
  # http({:method=>:post, :path=>'screencast'}, {:action => :start})
409
453
  #end
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.72"
4
- FRAMEWORK_VERSION = "0.9.72"
3
+ VERSION = "0.9.74"
4
+ FRAMEWORK_VERSION = "0.9.74"
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.72
4
+ version: 0.9.74
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-27 00:00:00.000000000 Z
12
+ date: 2012-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber