calabash-cucumber 0.9.120 → 0.9.121

Sign up to get free protection for your applications and to get access to all the features.
@@ -301,7 +301,16 @@ EOF
301
301
  elsif (File.exists?("#{DATA_PATH}/resources/#{recording}"))
302
302
  data = File.read("#{DATA_PATH}/resources/#{recording}")
303
303
  else
304
- screenshot_and_raise "Playback not found: #{recording} (searched for #{recording} in #{Dir.pwd}, #{rec_dir}, #{DATA_PATH}/resources"
304
+ if os=="ios6"
305
+ recording = recording.gsub("ios6","ios5")
306
+ if (File.exists?("#{DATA_PATH}/resources/#{recording}"))
307
+ data = File.read("#{DATA_PATH}/resources/#{recording}")
308
+ else
309
+ screenshot_and_raise "Playback not found: #{recording} (searched for #{recording} in #{Dir.pwd}, #{rec_dir}, #{DATA_PATH}/resources"
310
+ end
311
+ else
312
+ screenshot_and_raise "Playback not found: #{recording} (searched for #{recording} in #{Dir.pwd}, #{rec_dir}, #{DATA_PATH}/resources"
313
+ end
305
314
  end
306
315
  data
307
316
  end
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.120"
3
+ VERSION = "0.9.121"
4
4
  FRAMEWORK_VERSION = "0.9.120"
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.120
4
+ version: 0.9.121
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: