watirsplash 1.1.1 → 1.1.2
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.
- data/History.rdoc +6 -0
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/lib/watirsplash/frameworks/firewatir.rb +1 -7
- data/lib/watirsplash/frameworks/watir-webdriver.rb +1 -1
- data/lib/watirsplash/frameworks/watir-webdriver/ie.rb +0 -1
- data/lib/watirsplash/frameworks/watir.rb +2 -1
- data/lib/watirsplash/mini_magick_patch.rb +22 -0
- metadata +12 -25
data/History.rdoc
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
=== Version 1.1.2 / 2011-03-22
|
|
2
|
+
|
|
3
|
+
* bump watir/firewatir dependency to 1.8.0
|
|
4
|
+
* bump watir-webdriver dependency to 0.2.1
|
|
5
|
+
* patch temporarily MiniMagick to handle spaces in file paths when saving screenshots on Windows (https://github.com/probablycorey/mini_magick/pull/38)
|
|
6
|
+
|
|
1
7
|
=== Version 1.1.1 / 2011-02-17
|
|
2
8
|
|
|
3
9
|
* Minor fix for RSpec involving example groups without enough metadata
|
data/Rakefile
CHANGED
|
@@ -29,7 +29,6 @@ Execute `watirsplash new` under your project's directory to generate a default p
|
|
|
29
29
|
#{"*"*25}}
|
|
30
30
|
|
|
31
31
|
gem.add_dependency("rspec", "~>2.5")
|
|
32
|
-
gem.add_dependency("require_all")
|
|
33
32
|
gem.add_dependency("thor", "~>0")
|
|
34
33
|
gem.add_dependency("require_all")
|
|
35
34
|
gem.add_dependency("syntax")
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.2
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
WatirSplash::Frameworks::Helper.load_gem :gem => "firewatir", :version => "1.
|
|
1
|
+
WatirSplash::Frameworks::Helper.load_gem :gem => "firewatir", :version => "1.8.0"
|
|
2
2
|
|
|
3
3
|
module FireWatir #:nodoc:all
|
|
4
4
|
class Firefox
|
|
5
|
-
def exists?
|
|
6
|
-
js_eval("getWindows().length").to_i == 1 || find_window(:url, @window_url) > 0
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
alias_method :exist?, :exists?
|
|
10
|
-
|
|
11
5
|
def save_screenshot(params)
|
|
12
6
|
# currently not yet supported
|
|
13
7
|
end
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
WatirSplash::Frameworks::Helper.load_gems({:gem => "watir", :version => "1.
|
|
1
|
+
WatirSplash::Frameworks::Helper.load_gems({:gem => "watir", :version => "1.8.0"},
|
|
2
2
|
{:gem => "win32screenshot", :require => "win32/screenshot", :version => ">=1.0.2"})
|
|
3
|
+
require "watirsplash/mini_magick_patch"
|
|
3
4
|
require "watir/ie"
|
|
4
5
|
|
|
5
6
|
module Watir
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module MiniMagick
|
|
2
|
+
class Image
|
|
3
|
+
class << self
|
|
4
|
+
# patch to handle paths with spaces in it until new version of MiniMagick
|
|
5
|
+
# gets released.
|
|
6
|
+
def write(output_to)
|
|
7
|
+
if output_to.kind_of?(String) || !output_to.respond_to?(:write)
|
|
8
|
+
FileUtils.copy_file @path, output_to
|
|
9
|
+
run_command "identify", output_to.to_s.inspect # Verify that we have a good image
|
|
10
|
+
else # stream
|
|
11
|
+
File.open(@path, "rb") do |f|
|
|
12
|
+
f.binmode
|
|
13
|
+
while chunk = f.read(8192)
|
|
14
|
+
output_to.write(chunk)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
output_to
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: watirsplash
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 1.1.
|
|
9
|
+
- 2
|
|
10
|
+
version: 1.1.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jarmo Pertman
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-03-22 00:00:00 +02:00
|
|
19
19
|
default_executable: watirsplash
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -34,12 +34,12 @@ dependencies:
|
|
|
34
34
|
type: :runtime
|
|
35
35
|
version_requirements: *id001
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
|
-
name:
|
|
37
|
+
name: thor
|
|
38
38
|
prerelease: false
|
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
|
40
40
|
none: false
|
|
41
41
|
requirements:
|
|
42
|
-
- -
|
|
42
|
+
- - ~>
|
|
43
43
|
- !ruby/object:Gem::Version
|
|
44
44
|
hash: 3
|
|
45
45
|
segments:
|
|
@@ -48,12 +48,12 @@ dependencies:
|
|
|
48
48
|
type: :runtime
|
|
49
49
|
version_requirements: *id002
|
|
50
50
|
- !ruby/object:Gem::Dependency
|
|
51
|
-
name:
|
|
51
|
+
name: require_all
|
|
52
52
|
prerelease: false
|
|
53
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
|
54
54
|
none: false
|
|
55
55
|
requirements:
|
|
56
|
-
- -
|
|
56
|
+
- - ">="
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
58
|
hash: 3
|
|
59
59
|
segments:
|
|
@@ -62,7 +62,7 @@ dependencies:
|
|
|
62
62
|
type: :runtime
|
|
63
63
|
version_requirements: *id003
|
|
64
64
|
- !ruby/object:Gem::Dependency
|
|
65
|
-
name:
|
|
65
|
+
name: syntax
|
|
66
66
|
prerelease: false
|
|
67
67
|
requirement: &id004 !ruby/object:Gem::Requirement
|
|
68
68
|
none: false
|
|
@@ -75,20 +75,6 @@ dependencies:
|
|
|
75
75
|
version: "0"
|
|
76
76
|
type: :runtime
|
|
77
77
|
version_requirements: *id004
|
|
78
|
-
- !ruby/object:Gem::Dependency
|
|
79
|
-
name: syntax
|
|
80
|
-
prerelease: false
|
|
81
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
|
82
|
-
none: false
|
|
83
|
-
requirements:
|
|
84
|
-
- - ">="
|
|
85
|
-
- !ruby/object:Gem::Version
|
|
86
|
-
hash: 3
|
|
87
|
-
segments:
|
|
88
|
-
- 0
|
|
89
|
-
version: "0"
|
|
90
|
-
type: :runtime
|
|
91
|
-
version_requirements: *id005
|
|
92
78
|
description: WatirSplash makes testing of web applications splashin' easy by combining best features of Watir, RSpec and Ruby!
|
|
93
79
|
email: jarmo.p@gmail.com
|
|
94
80
|
executables:
|
|
@@ -130,6 +116,7 @@ files:
|
|
|
130
116
|
- lib/watirsplash/generators/templates/new_project/spec/%formatted_name%_helper.rb.tt
|
|
131
117
|
- lib/watirsplash/generators/templates/new_project/spec/dummy_spec.rb.tt
|
|
132
118
|
- lib/watirsplash/html_formatter.rb
|
|
119
|
+
- lib/watirsplash/mini_magick_patch.rb
|
|
133
120
|
- lib/watirsplash/rspec_patches.rb
|
|
134
121
|
- lib/watirsplash/spec_helper.rb
|
|
135
122
|
- lib/watirsplash/util.rb
|
|
@@ -145,7 +132,7 @@ licenses: []
|
|
|
145
132
|
post_install_message: |-
|
|
146
133
|
*************************
|
|
147
134
|
|
|
148
|
-
Thank you for installing WatirSplash 1.1.
|
|
135
|
+
Thank you for installing WatirSplash 1.1.2! Don't forget to take a look at the README and History files!
|
|
149
136
|
|
|
150
137
|
Execute `watirsplash new` under your project's directory to generate a default project structure.
|
|
151
138
|
|
|
@@ -184,7 +171,7 @@ rubyforge_project:
|
|
|
184
171
|
rubygems_version: 1.3.7
|
|
185
172
|
signing_key:
|
|
186
173
|
specification_version: 3
|
|
187
|
-
summary: watirsplash 1.1.
|
|
174
|
+
summary: watirsplash 1.1.2
|
|
188
175
|
test_files:
|
|
189
176
|
- spec/file_helper_spec.rb
|
|
190
177
|
- spec/spec_helper_spec.rb
|