Skip to content

Commit

Permalink
Version 0.2.9
Browse files Browse the repository at this point in the history
Moving to the new http screenshot method.
screenshottaker.jar and the use of ddmlib will be phased out.

Fixes #69
  • Loading branch information
jonasmaturana committed Aug 9, 2012
1 parent 0eac8a0 commit 1b4fcf3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ruby-gem/CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.2.9:
Moving to the new http screenshot method.
screenshottaker.jar and the use of ddmlib will be phased out.

0.2.8:
Added /screenshot to test server.
Calabash will now kill the test server at exit.
Expand Down
6 changes: 4 additions & 2 deletions ruby-gem/lib/calabash-android/operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ def take_screenshot
begin
Timeout.timeout(30) do
file_name = "#{path}/#{filename_prefix}_#{StepCounter.step_line}.png"
log "Taking screenshoot to #{file_name} from device: #{@serial}"
system("java -jar #{File.dirname(__FILE__)}/lib/screenShotTaker.jar #{file_name} #{device_args}")
image = http("/screenshot")
open(file_name ,"wb") { |file|
file.write(image)
}
log "Screenshot stored in: #{file_name}"
end
rescue Timeout::Error
Expand Down
4 changes: 2 additions & 2 deletions ruby-gem/lib/calabash-android/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Calabash
module Android
VERSION = "0.2.8"
FRAMEWORK_VERSION = "0.2.8"
VERSION = "0.2.9"
FRAMEWORK_VERSION = "0.2.9"
end
end

0 comments on commit 1b4fcf3

Please sign in to comment.