jasmine_selenium_runner 2.4.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b016f1e9bd01f01d14e6980aa2d6f986a09f567
4
- data.tar.gz: 3f0debf2199c0051f7fdaa1735f7956d7b5f649c
3
+ metadata.gz: 5a9e57632ffe1f9b506aca94d23030ceef681164
4
+ data.tar.gz: 8f549c39948a42533972ad16cd09922679678e99
5
5
  SHA512:
6
- metadata.gz: 0594693f2e44acc5f1b375a599d264fd014a34ad1311890856ffddfff123cadb4ec18d6387c4022ee5db5ede5fc5ad736a4976d4c368d8fb4728a613d5c46215
7
- data.tar.gz: 43f7235d4cbec6f8dfac4218e0811550eb0dcfd69ea186554ef08e8fb6173ef81c472f0afa70e90de952fc47b744e8516f9bfaeb2a64a560be35da0f53618de1
6
+ metadata.gz: fa3ac67221c46bb10b18d37e8f3526f418a20a019c83f1930350bbd6451d69c13b5e714c88f84a0d0a68ee95a4f308de00e060823e853c610a3a0518a15c4579
7
+ data.tar.gz: 7504e70f685c44dd647f52d45c80129c1d610af107d21d747f0cf11814a0c986fcfb9902c439ce649facb0928118e542f9a8c8cf5e140aa9387f01eba5b8f30b
@@ -1,10 +1,19 @@
1
+ language: ruby
2
+ cache: bundler
3
+ sudo: false
4
+ before_install:
5
+ - wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz
6
+ - mkdir geckodriver
7
+ - tar -xzf geckodriver-v0.19.1-linux64.tar.gz -C geckodriver
8
+ - export PATH=$PATH:$PWD/geckodriver
1
9
  before_script:
2
10
  - sh -e /etc/init.d/xvfb start
3
11
  script: DISPLAY=:99.0 bundle exec rake
4
12
  addons:
5
13
  sauce_connect: true
14
+ firefox: latest
6
15
  rvm:
7
- - 2.1.0
16
+ - 2.3.1
8
17
  env:
9
18
  global:
10
19
  - secure: i8arxYVwMt/vp8a5RugpE+edkCg1G+wQ1WdCbdiKPhDZEcMh6f9vETvcsY9W94xY7yTBNSrZ+jNkz5ZQrGfiq1HllKxSjZBXv0pJ+wyxuFHl7hSib1OCzEImk0lHVryX7A7iO4u1GzZ+jmiVyKL7uEjD6CokphOpwnYpBln8jlg=
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ gemspec
4
4
  gem 'jasmine', :git => 'https://github.com/jasmine/jasmine-gem.git'
5
5
  gem 'jasmine-core', :git => 'https://github.com/jasmine/jasmine.git'
6
6
 
7
+ gem 'rack', '< 2.0.0'
data/README.md CHANGED
@@ -48,7 +48,7 @@ Create a jasmine_selenium_runner.yml in spec/javascripts/support/ with the follo
48
48
  tags:
49
49
  - <%= ENV['TRAVIS_RUBY_VERSION'] || RUBY_VERSION %>
50
50
  - CI
51
- tunnel_identifier: <%= ENV['TRAVIS_JOB_NUMBER'] ? "#{ENV['TRAVIS_JOB_NUMBER']}" : nil %>
51
+ tunnel_identifier: <%= ENV['TRAVIS_JOB_NUMBER'] ? "'#{ENV['TRAVIS_JOB_NUMBER']}'" : nil %>
52
52
  os: <%= ENV['SAUCE_OS'] %>
53
53
  browser_version: <%= ENV['SAUCE_BROWSER_VERSION'] %>
54
54
 
@@ -6,8 +6,8 @@ require 'jasmine/runners/selenium/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "jasmine_selenium_runner"
8
8
  spec.version = Jasmine::Runners::Selenium::VERSION
9
- spec.authors = ["Rajan Agaskar", "Gregg Van Hove" ]
10
- spec.email = ["rajan@pivotallabs.com", 'gvanhove@pivotallabs.com']
9
+ spec.authors = ["Gregg Van Hove" ]
10
+ spec.email = ['gvanhove@pivotal.io']
11
11
  spec.description = %q{Run your jasmine tests in a real live browser!}
12
12
  spec.summary = %q{Run your jasmine tests in a real live browser!}
13
13
  spec.homepage = "http://pivotal.github.com/jasmine/"
@@ -22,7 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency 'rspec'
24
24
  spec.add_development_dependency 'rails', '> 3.0'
25
- spec.add_dependency 'jasmine', '~> 2.0'
26
- spec.add_dependency 'selenium-webdriver', '~> 2.35'
27
- spec.add_dependency 'sauce-connect'
25
+ spec.add_dependency 'jasmine', '~> 3.0'
26
+ spec.add_dependency 'selenium-webdriver', '~> 3.8'
28
27
  end
@@ -1,7 +1,7 @@
1
1
  module Jasmine
2
2
  module Runners
3
3
  class Selenium
4
- VERSION = "2.4.0"
4
+ VERSION = "3.0.0"
5
5
  end
6
6
  end
7
7
  end
@@ -57,12 +57,6 @@ module JasmineSeleniumRunner
57
57
  end
58
58
 
59
59
  def sauce_webdriver(sauce_config)
60
- unless sauce_config['tunnel_identifier']
61
- SauceConnectConfigurer.configure do |config|
62
- config[:sauce_connect_4_executable] = sauce_config.fetch('sauce_connect_path')
63
- end
64
- end
65
-
66
60
  username = sauce_config.fetch('username')
67
61
  key = sauce_config.fetch('access_key')
68
62
  driver_url = "http://#{username}:#{key}@localhost:4445/wd/hub"
@@ -0,0 +1,11 @@
1
+ # Jasmine Selenium Runner 2.5.0 Release Notes
2
+
3
+ ## Changes
4
+
5
+ * Fix string parsing issue on travis
6
+ - Merges [#4](https://github.com/jasmine/jasmine_selenium_runner/issues/4) from @benzimmer
7
+
8
+
9
+ ------
10
+
11
+ _Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
@@ -0,0 +1,13 @@
1
+ # Jasmine Selenium Runner 3.0 Release Notes
2
+
3
+ ## Summary
4
+
5
+ Update to support Jasmine-Core 3.0
6
+
7
+ ## Changes
8
+
9
+ * Bump selenium version and drop support for sauce connect
10
+
11
+ ------
12
+
13
+ _Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
@@ -136,41 +136,5 @@ describe "Configuring jasmine" do
136
136
  )
137
137
  end
138
138
  end
139
-
140
- context 'without an existing tunnel' do
141
- it 'uses sauce connect' do
142
- runner = JasmineSeleniumRunner::ConfigureJasmine.new(double(:formatter), 'jasmine_url', {
143
- 'use_sauce' => true,
144
- 'sauce' => {
145
- 'username' => 'sauce_user',
146
- 'access_key' => 'sauce_key',
147
- 'name' => 'sauce_name',
148
- 'os' => 'sauce_os',
149
- 'browser_version' => 'browser_version',
150
- 'build' => 'build',
151
- 'tags' => 'tags',
152
- 'sauce_connect_path' => '/path/to/sc'
153
- }
154
- })
155
-
156
-
157
- runner.make_runner
158
-
159
- expect(JasmineSeleniumRunner::SauceConnectConfigurer).to have_received(:configure)
160
- expect(sauce_config).to have_received(:[]=).with(:sauce_connect_4_executable, '/path/to/sc')
161
- expect(Selenium::WebDriver).to have_received(:for).with(:remote,
162
- :url => 'http://sauce_user:sauce_key@localhost:4445/wd/hub',
163
- :desired_capabilities => {
164
- :name => 'sauce_name',
165
- :platform => 'sauce_os',
166
- :version => 'browser_version',
167
- :build => 'build',
168
- :tags => 'tags',
169
- :browserName => 'firefox',
170
- 'tunnel-identifier' => nil
171
- }
172
- )
173
- end
174
- end
175
139
  end
176
140
  end
@@ -13,12 +13,12 @@ describe Jasmine::Runners::Selenium do
13
13
  file.write <<-GEMFILE
14
14
  source 'https://rubygems.org'
15
15
  gem 'jasmine_selenium_runner', :path => '#{project_root}'
16
- gem 'jasmine', :git => 'https://github.com/pivotal/jasmine-gem.git'
17
- gem 'jasmine-core', :git => 'https://github.com/pivotal/jasmine.git'
16
+ gem 'jasmine', :git => 'https://github.com/jasmine/jasmine-gem.git'
17
+ gem 'jasmine-core', :git => 'https://github.com/jasmine/jasmine.git'
18
18
  GEMFILE
19
19
  end
20
20
  Bundler.with_clean_env do
21
- `bundle`
21
+ bundle_install
22
22
  `bundle exec jasmine init`
23
23
  `bundle exec jasmine examples`
24
24
  FileUtils.cp(File.join(project_root, 'spec', 'fixtures', 'is_in_firefox_spec.js'), File.join(dir, 'spec', 'javascripts'))
@@ -34,12 +34,12 @@ GEMFILE
34
34
  file.write <<-GEMFILE
35
35
  source 'https://rubygems.org'
36
36
  gem 'jasmine_selenium_runner', :path => '#{project_root}'
37
- gem 'jasmine', :git => 'https://github.com/pivotal/jasmine-gem.git'
38
- gem 'jasmine-core', :git => 'https://github.com/pivotal/jasmine.git'
37
+ gem 'jasmine', :git => 'https://github.com/jasmine/jasmine-gem.git'
38
+ gem 'jasmine-core', :git => 'https://github.com/jasmine/jasmine.git'
39
39
  GEMFILE
40
40
  end
41
41
  Bundler.with_clean_env do
42
- `bundle`
42
+ bundle_install
43
43
  `bundle exec jasmine init`
44
44
  `bundle exec jasmine examples`
45
45
  FileUtils.cp(File.join(project_root, 'spec', 'fixtures', 'contains_circular_references_spec.js'), File.join(dir, 'spec', 'javascripts'))
@@ -55,12 +55,12 @@ GEMFILE
55
55
  file.write <<-GEMFILE
56
56
  source 'https://rubygems.org'
57
57
  gem 'jasmine_selenium_runner', :path => '#{project_root}'
58
- gem 'jasmine', :git => 'https://github.com/pivotal/jasmine-gem.git'
59
- gem 'jasmine-core', :git => 'https://github.com/pivotal/jasmine.git'
58
+ gem 'jasmine', :git => 'https://github.com/jasmine/jasmine-gem.git'
59
+ gem 'jasmine-core', :git => 'https://github.com/jasmine/jasmine.git'
60
60
  GEMFILE
61
61
  end
62
62
  Bundler.with_clean_env do
63
- `bundle`
63
+ bundle_install
64
64
  `bundle exec jasmine init`
65
65
  `bundle exec jasmine examples`
66
66
  FileUtils.cp(File.join(project_root, 'spec', 'fixtures', 'after_all_failure_spec.js'), File.join(dir, 'spec', 'javascripts'))
@@ -77,12 +77,12 @@ GEMFILE
77
77
  file.write <<-GEMFILE
78
78
  source 'https://rubygems.org'
79
79
  gem 'jasmine_selenium_runner', :path => '#{project_root}'
80
- gem 'jasmine', :git => 'https://github.com/pivotal/jasmine-gem.git'
81
- gem 'jasmine-core', :git => 'https://github.com/pivotal/jasmine.git'
80
+ gem 'jasmine', :git => 'https://github.com/jasmine/jasmine-gem.git'
81
+ gem 'jasmine-core', :git => 'https://github.com/jasmine/jasmine.git'
82
82
  GEMFILE
83
83
  end
84
84
  Bundler.with_clean_env do
85
- `bundle`
85
+ bundle_install
86
86
  `bundle exec jasmine init`
87
87
  `bundle exec jasmine examples`
88
88
  yaml_file = File.join(dir, 'spec', 'javascripts', 'support', 'jasmine.yml')
@@ -104,12 +104,12 @@ GEMFILE
104
104
  file.write <<-GEMFILE
105
105
  source 'https://rubygems.org'
106
106
  gem 'jasmine_selenium_runner', :path => '#{project_root}'
107
- gem 'jasmine', :git => 'https://github.com/pivotal/jasmine-gem.git'
108
- gem 'jasmine-core', :git => 'https://github.com/pivotal/jasmine.git'
107
+ gem 'jasmine', :git => 'https://github.com/jasmine/jasmine-gem.git'
108
+ gem 'jasmine-core', :git => 'https://github.com/jasmine/jasmine.git'
109
109
  GEMFILE
110
110
  end
111
111
  Bundler.with_clean_env do
112
- `bundle`
112
+ bundle_install
113
113
  `bundle exec jasmine init`
114
114
  `bundle exec jasmine examples`
115
115
  File.open(File.join(dir, 'spec', 'javascripts', 'support', 'jasmine_selenium_runner.yml'), 'w') do |file|
@@ -153,26 +153,13 @@ YAML
153
153
  end
154
154
  end
155
155
 
156
- def bundle_install
157
- tries_remaining = 3
158
- while tries_remaining > 0
159
- puts `NOKOGIRI_USE_SYSTEM_LIBRARIES=true bundle install --path vendor;`
160
- if $?.success?
161
- tries_remaining = 0
162
- else
163
- tries_remaining -= 1
164
- puts "\n\nBundle failed, trying #{tries_remaining} more times\n\n"
165
- end
166
- end
167
- end
168
-
169
156
  it "works with the rails asset pipeline" do
170
157
  in_temp_dir do |dir, project_root|
171
158
  `rails new rails-test`
172
159
  Dir.chdir File.join(dir, 'rails-test')
173
160
  File.open('Gemfile', 'a') { |f|
174
- f.puts "gem 'jasmine', :git => 'https://github.com/pivotal/jasmine-gem.git'"
175
- f.puts "gem 'jasmine-core', :git => 'https://github.com/pivotal/jasmine.git'"
161
+ f.puts "gem 'jasmine', :git => 'https://github.com/jasmine/jasmine-gem.git'"
162
+ f.puts "gem 'jasmine-core', :git => 'https://github.com/jasmine/jasmine.git'"
176
163
  f.puts "gem 'jasmine_selenium_runner', :path => '#{project_root}'"
177
164
  }
178
165
 
@@ -186,5 +173,9 @@ YAML
186
173
  end
187
174
  end
188
175
  end
176
+
177
+ def bundle_install
178
+ puts `NOKOGIRI_USE_SYSTEM_LIBRARIES=true bundle install --jobs=3 --retry=3 --path vendor;`
179
+ end
189
180
  end
190
181
 
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine_selenium_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Rajan Agaskar
8
7
  - Gregg Van Hove
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-12-03 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
@@ -73,46 +72,31 @@ dependencies:
73
72
  requirements:
74
73
  - - "~>"
75
74
  - !ruby/object:Gem::Version
76
- version: '2.0'
75
+ version: '3.0'
77
76
  type: :runtime
78
77
  prerelease: false
79
78
  version_requirements: !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - "~>"
82
81
  - !ruby/object:Gem::Version
83
- version: '2.0'
82
+ version: '3.0'
84
83
  - !ruby/object:Gem::Dependency
85
84
  name: selenium-webdriver
86
85
  requirement: !ruby/object:Gem::Requirement
87
86
  requirements:
88
87
  - - "~>"
89
88
  - !ruby/object:Gem::Version
90
- version: '2.35'
89
+ version: '3.8'
91
90
  type: :runtime
92
91
  prerelease: false
93
92
  version_requirements: !ruby/object:Gem::Requirement
94
93
  requirements:
95
94
  - - "~>"
96
95
  - !ruby/object:Gem::Version
97
- version: '2.35'
98
- - !ruby/object:Gem::Dependency
99
- name: sauce-connect
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :runtime
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: '0'
96
+ version: '3.8'
112
97
  description: Run your jasmine tests in a real live browser!
113
98
  email:
114
- - rajan@pivotallabs.com
115
- - gvanhove@pivotallabs.com
99
+ - gvanhove@pivotal.io
116
100
  executables: []
117
101
  extensions: []
118
102
  extra_rdoc_files: []
@@ -136,6 +120,8 @@ files:
136
120
  - lib/jasmine_selenium_runner/sauce_connect_configurer.rb
137
121
  - lib/jasmine_selenium_runner/tasks/jasmine_selenium_runner.rake
138
122
  - release_notes/2.4.0.md
123
+ - release_notes/2.5.0.md
124
+ - release_notes/3.0.md
139
125
  - spec/fixtures/after_all_failure_spec.js
140
126
  - spec/fixtures/contains_circular_references_spec.js
141
127
  - spec/fixtures/is_in_firefox_spec.js
@@ -163,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
149
  version: '0'
164
150
  requirements: []
165
151
  rubyforge_project:
166
- rubygems_version: 2.4.5.1
152
+ rubygems_version: 2.5.2
167
153
  signing_key:
168
154
  specification_version: 4
169
155
  summary: Run your jasmine tests in a real live browser!