soda 0.0.13 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/Soda.rb +3 -1
- data/lib/SodaFireFox.rb +2 -0
- data/lib/SodaScreenShot.rb +3 -6
- data/lib/fields/SodaField.rb +1 -1
- metadata +9 -9
data/lib/Soda.rb
CHANGED
@@ -31,7 +31,7 @@ module Soda
|
|
31
31
|
# Module Global Info:
|
32
32
|
###############################################################################
|
33
33
|
SODA_VERSION = 1.1
|
34
|
-
SODA_WATIR_VERSION = "1.
|
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"
|
data/lib/SodaFireFox.rb
CHANGED
data/lib/SodaScreenShot.rb
CHANGED
@@ -90,13 +90,10 @@ class SodaScreenShot
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
when /windows/i
|
93
|
-
require '
|
93
|
+
require 'win32/screenshot'
|
94
94
|
@outputfile = "#{dir}/#{OUTPUT_FILE}#{time}-#{hostname}.bmp"
|
95
|
-
|
96
|
-
|
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
|
|
data/lib/fields/SodaField.rb
CHANGED
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
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
9
|
- 0
|
9
|
-
|
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-
|
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:
|
29
|
+
hash: 9
|
30
30
|
segments:
|
31
31
|
- 1
|
32
|
-
- 6
|
33
32
|
- 7
|
34
|
-
|
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.
|
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.
|