steam 0.0.7 → 0.0.8
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/Gemfile +11 -2
- data/Gemfile.lock +39 -0
- data/README.textile +4 -2
- data/lib/steam/browser/html_unit/client.rb +1 -1
- data/lib/steam/java.rb +1 -1
- data/lib/steam/session.rb +4 -2
- data/lib/steam/version.rb +2 -2
- metadata +14 -4
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ~/Development/projects/locator
|
3
|
+
specs:
|
4
|
+
locator (0.0.8)
|
5
|
+
htmlentities (>= 4.2.0)
|
6
|
+
nokogiri (>= 1.4.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
columnize (0.3.2)
|
12
|
+
htmlentities (4.2.2)
|
13
|
+
linecache (0.43)
|
14
|
+
mocha (0.9.10)
|
15
|
+
rake
|
16
|
+
nokogiri (1.4.4)
|
17
|
+
rack (1.2.1)
|
18
|
+
rake (0.8.7)
|
19
|
+
rjb (1.3.4)
|
20
|
+
ruby-debug (0.10.4)
|
21
|
+
columnize (>= 0.1)
|
22
|
+
ruby-debug-base (~> 0.10.4.0)
|
23
|
+
ruby-debug-base (0.10.4)
|
24
|
+
linecache (>= 0.3)
|
25
|
+
test_declarative (0.0.4)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
locator!
|
32
|
+
mocha
|
33
|
+
rack
|
34
|
+
rjb
|
35
|
+
ruby-debug
|
36
|
+
test_declarative
|
37
|
+
|
38
|
+
METADATA
|
39
|
+
version: 1.0.6
|
data/README.textile
CHANGED
@@ -18,7 +18,7 @@ Installing Steam as as a gem will automatically install the required RJB and Loc
|
|
18
18
|
|
19
19
|
pre. $ gem install steam
|
20
20
|
|
21
|
-
To install HtmlUnit you can download it from "Sourceforge":http://sourceforge.net/projects/htmlunit/files.
|
21
|
+
To install HtmlUnit you can download it from "Sourceforge":http://sourceforge.net/projects/htmlunit/files.
|
22
22
|
|
23
23
|
You then need to add HtmlUnit to your Java classpath. The following ways should both work:
|
24
24
|
|
@@ -28,7 +28,9 @@ ENV['CLASSPATH'] = Dir["path/to/your/htmlunit/*.jar"].join(':')
|
|
28
28
|
# after steam has been added to the load path, e.g. in features/support/env.rb
|
29
29
|
Steam.config[:html_unit][:java_path] = 'path/to/your/htmlunit'</pre>
|
30
30
|
|
31
|
-
|
31
|
+
Since some Mac OS X 10.6 update removed the Java header files that are necessary to compile RJB one also needs to install "Java for Mac OS X 10.6 Update 3 Developer Package":http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/downloads
|
32
|
+
|
33
|
+
Also, if you are on Mac OS X, use `sudo` and get an error saying that "JAVA_HOME is not set" then you need to export the JAVA_HOME variable for RJB. See here for two solutions: "Installing RJB on Mac OS X":http://www.elctech.com/articles/sudo-java_home-and-mac-os-x. The visudo way worked for us. Don't forget to add yourself to the sudoers file, though.
|
32
34
|
|
33
35
|
|
34
36
|
<a name="configuration"></a>
|
data/lib/steam/java.rb
CHANGED
data/lib/steam/session.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'locator'
|
2
|
+
|
1
3
|
# Conceptually a session is something different than a browser. E.g. a (test-)
|
2
4
|
# session can be started (setting up test data etc.) and stopped (cleaning
|
3
5
|
# stuff up etc.). Webrat and Capybara don't separate these concepts. So let's
|
@@ -9,8 +11,8 @@ module Steam
|
|
9
11
|
autoload :Rails, 'steam/session/rails'
|
10
12
|
|
11
13
|
include Locator::Matcher
|
14
|
+
include Locator::Assertions
|
12
15
|
include Test::Unit::Assertions if defined?(Test::Unit)
|
13
|
-
# TODO include Rspec::Something if defined?(Rspec)
|
14
16
|
|
15
17
|
attr_accessor :browser
|
16
18
|
|
@@ -31,4 +33,4 @@ module Steam
|
|
31
33
|
browser.select(*args, &block)
|
32
34
|
end
|
33
35
|
end
|
34
|
-
end
|
36
|
+
end
|
data/lib/steam/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Steam
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
2
|
+
VERSION = "0.0.8"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Sven Fuchs
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-12-17 00:00:00 +01:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rjb
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 31
|
27
30
|
segments:
|
28
31
|
- 1
|
29
32
|
- 2
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: locator
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 19
|
41
46
|
segments:
|
42
47
|
- 0
|
43
48
|
- 0
|
@@ -85,6 +90,7 @@ files:
|
|
85
90
|
- lib/steam/version.rb
|
86
91
|
- lib/steam.rb
|
87
92
|
- Gemfile
|
93
|
+
- Gemfile.lock
|
88
94
|
- MIT-LICENSE
|
89
95
|
- README.textile
|
90
96
|
- TODO
|
@@ -98,16 +104,20 @@ rdoc_options: []
|
|
98
104
|
require_paths:
|
99
105
|
- lib
|
100
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
101
108
|
requirements:
|
102
109
|
- - ">="
|
103
110
|
- !ruby/object:Gem::Version
|
111
|
+
hash: 3
|
104
112
|
segments:
|
105
113
|
- 0
|
106
114
|
version: "0"
|
107
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
108
117
|
requirements:
|
109
118
|
- - ">="
|
110
119
|
- !ruby/object:Gem::Version
|
120
|
+
hash: 23
|
111
121
|
segments:
|
112
122
|
- 1
|
113
123
|
- 3
|
@@ -116,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
126
|
requirements: []
|
117
127
|
|
118
128
|
rubyforge_project: "[none]"
|
119
|
-
rubygems_version: 1.3.
|
129
|
+
rubygems_version: 1.3.7
|
120
130
|
signing_key:
|
121
131
|
specification_version: 3
|
122
132
|
summary: "Headless integration testing w/ HtmlUnit: enables testing JavaScript-driven web sites"
|