calabash-android 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ 0.2.9:
2
+ Moving to the new http screenshot method.
3
+ screenshottaker.jar and the use of ddmlib will be phased out.
4
+
1
5
  0.2.8:
2
6
  Added /screenshot to test server.
3
7
  Calabash will now kill the test server at exit.
@@ -195,8 +195,10 @@ module Operations
195
195
  begin
196
196
  Timeout.timeout(30) do
197
197
  file_name = "#{path}/#{filename_prefix}_#{StepCounter.step_line}.png"
198
- log "Taking screenshoot to #{file_name} from device: #{@serial}"
199
- system("java -jar #{File.dirname(__FILE__)}/lib/screenShotTaker.jar #{file_name} #{device_args}")
198
+ image = http("/screenshot")
199
+ open(file_name ,"wb") { |file|
200
+ file.write(image)
201
+ }
200
202
  log "Screenshot stored in: #{file_name}"
201
203
  end
202
204
  rescue Timeout::Error
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.2.8"
4
- FRAMEWORK_VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
+ FRAMEWORK_VERSION = "0.2.9"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 8
10
- version: 0.2.8
9
+ - 9
10
+ version: 0.2.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonas Maturana Larsen