selenium-connect 2.1.0 → 2.1.1

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/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 = "--tag ~selenium"
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
@@ -43,7 +43,7 @@ module SeleniumConnect
43
43
  # rubocop:enable HandleExceptions
44
44
  # no-op
45
45
  end
46
- server.stop unless localhost?
46
+ server.stop if localhost?
47
47
  end
48
48
 
49
49
  alias_method :start, :run
@@ -26,7 +26,11 @@ module SeleniumConnect
26
26
 
27
27
  def populate_with_hash(hash)
28
28
  hash.each do |key, value|
29
- self.send "#{key}=", value unless value.nil?
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
 
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'selenium-connect'
3
- s.version = '2.1.0'
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 = 'Updated configuration methods and improved code quality.'
9
+ s.description = 'Fixed bug with localhost server quitting'
10
10
  s.license = 'MIT'
11
11
 
12
12
  s.files = `git ls-files`.split($/)
@@ -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.hash = { bad: 'config-value' }
34
- end.to raise_error NoMethodError
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.0
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-02 00:00:00.000000000 Z
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: Updated configuration methods and improved code quality.
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: 2242765007989864300
159
+ hash: 2657149500405024858
160
160
  requirements: []
161
161
  rubyforge_project:
162
162
  rubygems_version: 1.8.25