selenium-connect 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/Rakefile +3 -1
- data/lib/selenium-connect.rb +1 -1
- data/lib/selenium-connect/configuration.rb +5 -1
- data/selenium-connect.gemspec +2 -2
- data/spec/configuration_spec.rb +2 -2
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
+
#2.1.1 (2013-07-04)
|
2
|
+
- Updated rakefile to propperly fetch the previous version for changelog purposes
|
3
|
+
- Bumped version to 2.1.1 to prepare for release.
|
4
|
+
- fixed bug with the server shutdown process and improved the exception handling for invalid configuration parameters
|
5
|
+
- updated changelog
|
6
|
+
|
1
7
|
#2.1.0 (2013-07-02)
|
8
|
+
- Updated configuration method
|
9
|
+
- Code quality fixes
|
2
10
|
|
3
11
|
#2.0.0 (2013-06-27)
|
4
12
|
- Added selenium server jar as explicit dependency
|
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ end
|
|
21
21
|
RSpec::Core::RakeTask.new(:spec_full)
|
22
22
|
|
23
23
|
RSpec::Core::RakeTask.new(:spec_unit) do |t|
|
24
|
-
t.rspec_opts =
|
24
|
+
t.rspec_opts = '--tag ~selenium'
|
25
25
|
end
|
26
26
|
|
27
27
|
desc 'Runs code quality check'
|
@@ -76,7 +76,9 @@ task :release_finish, :update_message do |t, args|
|
|
76
76
|
|
77
77
|
### Changelog
|
78
78
|
# get the latest tag
|
79
|
+
system 'git checkout master'
|
79
80
|
last_tag = `git describe --abbrev=0`
|
81
|
+
system "git checkout release/#{version}"
|
80
82
|
# get the commit hash since the last that version was merged to develop
|
81
83
|
hash = `git log --grep="Merge branch 'release/#{last_tag.chomp}' into develop" --format="%H"`
|
82
84
|
# get all the commits since them less merges
|
data/lib/selenium-connect.rb
CHANGED
@@ -26,7 +26,11 @@ module SeleniumConnect
|
|
26
26
|
|
27
27
|
def populate_with_hash(hash)
|
28
28
|
hash.each do |key, value|
|
29
|
-
|
29
|
+
begin
|
30
|
+
self.send "#{key}=", value unless value.nil?
|
31
|
+
rescue NoMethodError
|
32
|
+
raise ArgumentError.new "The config key: \"#{key}\" is unknown!"
|
33
|
+
end
|
30
34
|
end
|
31
35
|
end
|
32
36
|
|
data/selenium-connect.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'selenium-connect'
|
3
|
-
s.version = '2.1.
|
3
|
+
s.version = '2.1.1'
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.authors = ['Dave Haeffner', 'Jason Fox']
|
6
6
|
s.email = ['dave@arrgyle.com', 'jason@arrgyle.com']
|
7
7
|
s.homepage = 'https://github.com/arrgyle/selenium-connect'
|
8
8
|
s.summary = 'A stupid simple way to run your Selenium tests on localhost, against a Selenium Grid, or in the cloud (e.g. SauceLabs).'
|
9
|
-
s.description = '
|
9
|
+
s.description = 'Fixed bug with localhost server quitting'
|
10
10
|
s.license = 'MIT'
|
11
11
|
|
12
12
|
s.files = `git ls-files`.split($/)
|
data/spec/configuration_spec.rb
CHANGED
@@ -30,8 +30,8 @@ describe SeleniumConnect::Configuration do
|
|
30
30
|
|
31
31
|
it 'should throw an exception for unsupported config variable' do
|
32
32
|
expect do
|
33
|
-
@configuration.
|
34
|
-
end.to raise_error
|
33
|
+
@configuration.populate_with_hash bad: 'config-value'
|
34
|
+
end.to raise_error ArgumentError, 'The config key: "bad" is unknown!'
|
35
35
|
end
|
36
36
|
|
37
37
|
it 'sensible defaults persist when nothing is set' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: selenium-webdriver
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
- - ~>
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: 0.9.0
|
95
|
-
description:
|
95
|
+
description: Fixed bug with localhost server quitting
|
96
96
|
email:
|
97
97
|
- dave@arrgyle.com
|
98
98
|
- jason@arrgyle.com
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
segments:
|
158
158
|
- 0
|
159
|
-
hash:
|
159
|
+
hash: 2657149500405024858
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
162
|
rubygems_version: 1.8.25
|