soda 0.0.13 → 1.0.0

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.
@@ -31,7 +31,7 @@ module Soda
31
31
  # Module Global Info:
32
32
  ###############################################################################
33
33
  SODA_VERSION = 1.1
34
- SODA_WATIR_VERSION = "1.6.7"
34
+ SODA_WATIR_VERSION = "1.7.1"
35
35
 
36
36
  ###############################################################################
37
37
  # Needed Ruby libs:
@@ -39,6 +39,8 @@ SODA_WATIR_VERSION = "1.6.7"
39
39
  require 'rubygems'
40
40
  require 'rbconfig'
41
41
  require 'pathname'
42
+ gem 'commonwatir', '= 1.7.1'
43
+ gem 'firewatir', '= 1.7.1'
42
44
  require "watir"
43
45
  require 'SodaUtils'
44
46
  require "SodaReporter"
@@ -29,6 +29,8 @@
29
29
  # Needed ruby libs:
30
30
  ###############################################################################
31
31
  require 'rubygems'
32
+ gem 'commonwatir', '= 1.7.1'
33
+ gem 'firewatir', '= 1.7.1'
32
34
  require 'watir'
33
35
  require 'SodaUtils'
34
36
 
@@ -90,13 +90,10 @@ class SodaScreenShot
90
90
  end
91
91
  end
92
92
  when /windows/i
93
- require 'Win32/screenshot'
93
+ require 'win32/screenshot'
94
94
  @outputfile = "#{dir}/#{OUTPUT_FILE}#{time}-#{hostname}.bmp"
95
- Win32::Screenshot.desktop do |width, height, bmp|
96
- fd = File.new(@outputfile, "w+")
97
- fd.write(bmp)
98
- fd.close()
99
- end
95
+ img = Win32::Screenshot::Take.of(:desktop)
96
+ img.write(@outputfile)
100
97
  end
101
98
  end
102
99
 
@@ -298,7 +298,7 @@ require 'FieldUtils'
298
298
  end
299
299
 
300
300
  break if (result == 0)
301
- $curSoda.rep.log("Retying: #{i}\n", SodaUtils::WARN)
301
+ $curSoda.rep.log("Retrying: #{i}\n", SodaUtils::WARN)
302
302
  end
303
303
 
304
304
  $curSoda.rep.log("Click finished.\n")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 13
10
- version: 0.0.13
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trampus Richmond
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-10 00:00:00 -08:00
18
+ date: 2011-01-13 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - "="
28
28
  - !ruby/object:Gem::Version
29
- hash: 1
29
+ hash: 9
30
30
  segments:
31
31
  - 1
32
- - 6
33
32
  - 7
34
- version: 1.6.7
33
+ - 1
34
+ version: 1.7.1
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements: []
113
113
 
114
114
  rubyforge_project: Soda
115
- rubygems_version: 1.3.7
115
+ rubygems_version: 1.4.2
116
116
  signing_key:
117
117
  specification_version: 3
118
118
  summary: SODA is an XML based testing framework leveraging Watir.