jasmine 3.7.0 → 3.9.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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +84 -0
- data/Gemfile +3 -10
- data/README.markdown +24 -1
- data/jasmine.gemspec +14 -3
- data/lib/jasmine/runners/phantom_js.rb +1 -0
- data/lib/jasmine/version.rb +1 -1
- data/release_notes/3.8.0.md +38 -0
- data/release_notes/3.8.1.md +19 -0
- data/release_notes/3.9.0.md +28 -0
- data/release_notes/3.9.1.md +10 -0
- metadata +35 -10
- data/.travis.yml +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84e48a43ef05d8dda57c57526d63096f8c512c5ae949454414af4f349639f9f1
|
4
|
+
data.tar.gz: fe3baee3cdaef4f4cd263183100ec56e9e8e4fa12f32a598481e3fe8be4dc756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a78e94899786224c5e2a5da65ac09a3cda061fa4b8b52b8db4eb01dfd57825176c15e5edf345369a52c1b65c66a82c755eb0ec4746a683b8ee3161e343ca6b8d
|
7
|
+
data.tar.gz: 14b8315742da13159e81e4acdcc35c5c8a1e4a89d2d7073891ed61e74f2db1c7c533fbbba9615c6bd56d4e69904d84c032f0079970b41479a7063f0295bef7c8
|
@@ -0,0 +1,84 @@
|
|
1
|
+
version: 2.1
|
2
|
+
orbs:
|
3
|
+
ruby: circleci/ruby@1.1.2
|
4
|
+
|
5
|
+
executors:
|
6
|
+
ruby_3_0:
|
7
|
+
docker:
|
8
|
+
- image: circleci/ruby:3.0-browsers-legacy
|
9
|
+
ruby_2_7:
|
10
|
+
docker:
|
11
|
+
- image: circleci/ruby:2.7-browsers-legacy
|
12
|
+
ruby_2_6:
|
13
|
+
docker:
|
14
|
+
- image: circleci/ruby:2.6-browsers-legacy
|
15
|
+
ruby_2_5:
|
16
|
+
docker:
|
17
|
+
- image: circleci/ruby:2.5-browsers-legacy
|
18
|
+
ruby_2_3:
|
19
|
+
docker:
|
20
|
+
- image: circleci/ruby:2.3-browsers-legacy
|
21
|
+
|
22
|
+
jobs:
|
23
|
+
test:
|
24
|
+
parameters:
|
25
|
+
rails_version:
|
26
|
+
type: string
|
27
|
+
executor:
|
28
|
+
type: executor
|
29
|
+
executor: << parameters.executor >>
|
30
|
+
environment:
|
31
|
+
RAILS_VERSION=<< parameters.rails_version >>
|
32
|
+
steps:
|
33
|
+
- checkout:
|
34
|
+
path: jasmine-gem
|
35
|
+
- run:
|
36
|
+
name: Install Node
|
37
|
+
command: sudo apt-get install nodejs
|
38
|
+
- run:
|
39
|
+
name: Install bundler
|
40
|
+
command: "if [ $RAILS_VERSION = rails4 ];then gem install bundler -v '< 2.0' ; else gem install bundler; fi"
|
41
|
+
- run:
|
42
|
+
name: Report versions
|
43
|
+
command: "echo 'Ruby version:' && ruby -v && echo 'Bundler version:' && bundle -v && echo 'RAILS_VERSION:' $RAILS_VERSION"
|
44
|
+
- run:
|
45
|
+
name: Install gems
|
46
|
+
command: "cd jasmine-gem && bundle install"
|
47
|
+
- run:
|
48
|
+
name: Run tests
|
49
|
+
command: "cd jasmine-gem && bundle exec rake --trace"
|
50
|
+
|
51
|
+
workflows:
|
52
|
+
version: 2
|
53
|
+
push: &push_workflow
|
54
|
+
jobs:
|
55
|
+
- test:
|
56
|
+
matrix:
|
57
|
+
parameters:
|
58
|
+
rails_version: ["pojs", "rails6", "rails5", "rails4"]
|
59
|
+
executor: ["ruby_3_0", "ruby_2_7", "ruby_2_6", "ruby_2_5", "ruby_2_3"]
|
60
|
+
exclude:
|
61
|
+
# Don't run Rails 4 on newer Rubies that lack an old enough
|
62
|
+
# bundler.
|
63
|
+
- rails_version: "rails4"
|
64
|
+
executor: "ruby_3_0"
|
65
|
+
- rails_version: "rails4"
|
66
|
+
executor: "ruby_2_7"
|
67
|
+
# Rails 6 requires at least Ruby 2.5.
|
68
|
+
- rails_version: "rails6"
|
69
|
+
executor: "ruby_2_3"
|
70
|
+
# Rails 5 requires Ruby < 2.7
|
71
|
+
- rails_version: "rails5"
|
72
|
+
executor: "ruby_3_0"
|
73
|
+
- rails_version: "rails5"
|
74
|
+
executor: "ruby_2_7"
|
75
|
+
cron:
|
76
|
+
<<: *push_workflow
|
77
|
+
triggers:
|
78
|
+
- schedule:
|
79
|
+
# Times are UTC.
|
80
|
+
cron: "0 10 * * *"
|
81
|
+
filters:
|
82
|
+
branches:
|
83
|
+
only:
|
84
|
+
- main
|
data/Gemfile
CHANGED
@@ -2,25 +2,18 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
gem 'anchorman', :platform => :mri
|
6
5
|
|
7
6
|
# during development, do not release
|
8
|
-
if ENV['
|
7
|
+
if ENV['CIRCLECI']
|
9
8
|
gem 'jasmine-core', :git => 'http://github.com/jasmine/jasmine.git', ref: 'main'
|
10
9
|
else
|
11
10
|
gem 'jasmine-core', :path => '../jasmine'
|
12
11
|
end
|
13
12
|
|
14
|
-
|
15
|
-
gem 'rack', '~> 1.6.0'
|
16
|
-
elsif ENV['RAILS_VERSION'] == "pojs"
|
17
|
-
gem 'rack', '< 2.0'
|
18
|
-
else
|
19
|
-
gem 'rack', '>= 2.0'
|
20
|
-
end
|
13
|
+
gem 'rack', '>= 2.0'
|
21
14
|
|
22
15
|
gem 'mime-types', '< 3.0', platform: [:jruby]
|
23
16
|
|
24
17
|
if ENV['RAILS_VERSION'] != 'rails4'
|
25
|
-
gem "bundler", "
|
18
|
+
gem "bundler", ">= 2.1.4"
|
26
19
|
end
|
data/README.markdown
CHANGED
@@ -1,9 +1,32 @@
|
|
1
|
-
# The Jasmine Gem
|
1
|
+
# The Jasmine Gem
|
2
|
+
[](https://circleci.com/gh/jasmine/jasmine-gem)
|
2
3
|
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjasmine%2Fjasmine-gem?ref=badge_shield)
|
3
4
|
[](https://badge.fury.io/rb/jasmine)
|
4
5
|
|
5
6
|
The [Jasmine](http://github.com/jasmine/jasmine) Ruby Gem is a package of helper code for developing Jasmine projects for Ruby-based web projects (Rails, Sinatra, etc.) or for JavaScript projects where Ruby is a welcome partner. It serves up a project's Jasmine suite in a browser so you can focus on your code instead of manually editing script tags in the Jasmine runner HTML file.
|
6
7
|
|
8
|
+
Webpacker support is provided via the
|
9
|
+
[jasmine-browser-runner](https://jasmine.github.io/setup/browser.html#use-with-rails)
|
10
|
+
NPM package, not this gem. `jasmine-browser-runner` can also be used to test
|
11
|
+
JavaScript in Rails applications that use the Asset Pipeline.
|
12
|
+
|
13
|
+
## Deprecated
|
14
|
+
|
15
|
+
The `jasmine` and `jasmine-core` Ruby gems are deprecated. There will be no
|
16
|
+
further releases after the end of the Jasmine 3.x series. We recommend that most
|
17
|
+
users migrate to the [jasmine-browser-runner](https://github.com/jasmine/jasmine-browser)
|
18
|
+
npm package, which is the direct replacement for the `jasmine` gem.
|
19
|
+
|
20
|
+
If `jasmine-browser-runner` doesn't meet your needs, one of these might:
|
21
|
+
|
22
|
+
* The [jasmine](https://github.com/jasmine/jasmine-npm) npm package to run
|
23
|
+
specs in Node.js.
|
24
|
+
* The [standalone distribution](https://github.com/jasmine/jasmine#installation)
|
25
|
+
to run specs in browsers with no additional tools.
|
26
|
+
* The [jasmine-core](https://github.com/jasmine/jasmine) npm package if all
|
27
|
+
you need is the Jasmine assets. This is the direct equivalent of the
|
28
|
+
`jasmine-core` Ruby gem.
|
29
|
+
|
7
30
|
## Contents
|
8
31
|
This gem contains:
|
9
32
|
|
data/jasmine.gemspec
CHANGED
@@ -11,7 +11,17 @@ Gem::Specification.new do |s|
|
|
11
11
|
|
12
12
|
s.authors = ["Gregg Van Hove"]
|
13
13
|
s.summary = %q{JavaScript BDD framework}
|
14
|
-
s.description =
|
14
|
+
s.description = <<~DESC
|
15
|
+
Test your JavaScript without any framework dependencies, in any environment,
|
16
|
+
and with a nice descriptive syntax.
|
17
|
+
|
18
|
+
Jasmine for Ruby is deprecated. We recommend using the
|
19
|
+
jasmine-browser-runner NPM package instead. It supports all the same
|
20
|
+
scenarios as this gem plus Webpacker. See
|
21
|
+
<https://jasmine.github.io/setup/browser.html> for setup instructions, and
|
22
|
+
<https://github.com/jasmine/jasmine-gem/blob/main/release_notes/3.9.0.md>
|
23
|
+
for other options.
|
24
|
+
DESC
|
15
25
|
s.email = %q{jasmine-js@googlegroups.com}
|
16
26
|
s.homepage = "http://jasmine.github.io/"
|
17
27
|
s.license = "MIT"
|
@@ -37,8 +47,9 @@ Gem::Specification.new do |s|
|
|
37
47
|
s.add_development_dependency 'rspec', '>= 2.5.0'
|
38
48
|
s.add_development_dependency 'nokogiri'
|
39
49
|
|
40
|
-
s.add_dependency 'jasmine-core', '~> 3.
|
41
|
-
s.add_dependency 'rack', '>=
|
50
|
+
s.add_dependency 'jasmine-core', '~> 3.9.0'
|
51
|
+
s.add_dependency 'rack', '>= 2.1.4'
|
52
|
+
s.add_dependency 'webrick'
|
42
53
|
s.add_dependency 'rake'
|
43
54
|
s.add_dependency 'phantomjs'
|
44
55
|
end
|
data/lib/jasmine/version.rb
CHANGED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Jasmine Gem 3.8 Release Notes
|
2
|
+
|
3
|
+
## Summary
|
4
|
+
|
5
|
+
This release updates the jasmine-core dependency to 3.8.0. See the
|
6
|
+
[jasmine-core release notes](https://github.com/pivotal/jasmine/blob/main/release_notes/3.8.0.md)
|
7
|
+
for more information.
|
8
|
+
|
9
|
+
## Changes
|
10
|
+
|
11
|
+
* Ruby 3.0 compatibility
|
12
|
+
|
13
|
+
# Internal notes
|
14
|
+
|
15
|
+
* Added Ruby 2.7 and Ruby 3.0 to CI matrix
|
16
|
+
|
17
|
+
* Migrated from Travis to Circle CI
|
18
|
+
|
19
|
+
## Supported Environments
|
20
|
+
|
21
|
+
The Jasmine gem has been tested in the following environments:
|
22
|
+
|
23
|
+
| Rails version | Ruby versions |
|
24
|
+
|-----------------|---------------|
|
25
|
+
| 6 | 2.5-3.0 |
|
26
|
+
| 5 | 2.3-2.7 |
|
27
|
+
| 4 | 2.3-2.6 |
|
28
|
+
| Non-Rails usage | 2.3-3.0 |
|
29
|
+
|
30
|
+
See the
|
31
|
+
[jasmine-core release notes](https://github.com/jasmine/jasmine/blob/main/release_notes/3.8.0.md)
|
32
|
+
for supported browsers.
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
------
|
37
|
+
|
38
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Jasmine Gem 3.8.1 Release Notes
|
2
|
+
|
3
|
+
This release updates the Rack dependency to >= 2.1.4 due to security
|
4
|
+
vulnerabilities in earlier versions of Rack. There are no other changes.
|
5
|
+
|
6
|
+
## Supported Environments
|
7
|
+
|
8
|
+
The Jasmine gem has been tested in the following environments:
|
9
|
+
|
10
|
+
| Rails version | Ruby versions |
|
11
|
+
|-----------------|---------------|
|
12
|
+
| 6 | 2.5-3.0 |
|
13
|
+
| 5 | 2.3-2.7 |
|
14
|
+
| 4 | 2.3-2.6 |
|
15
|
+
| Non-Rails usage | 2.3-3.0 |
|
16
|
+
|
17
|
+
See the
|
18
|
+
[jasmine-core release notes](https://github.com/jasmine/jasmine/blob/main/release_notes/3.8.0.md)
|
19
|
+
for supported browsers.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Jasmine Gem 3.9 Release Notes
|
2
|
+
|
3
|
+
This release updates the jasmine-core dependency to 3.9.0. See the
|
4
|
+
[jasmine-core release notes](https://github.com/jasmine/jasmine/blob/main/release_notes/3.9.0.md)
|
5
|
+
for more information.
|
6
|
+
|
7
|
+
## Deprecation, Webpacker support, and a path forward for Rails users
|
8
|
+
|
9
|
+
The [jasmine-browser-runner](https://github.com/jasmine/jasmine-browser-runner)
|
10
|
+
NPM package supports all of same use cases as the `jasmine` Ruby gem. It can
|
11
|
+
also handle Webpacker, which isn't supported by the gem. See the [setup instructions, including Rails-specific steps](https://jasmine.github.io/setup/browser.html).
|
12
|
+
|
13
|
+
The Jasmine Ruby gems are deprecated. There will be no further releases after
|
14
|
+
the end of the Jasmine 3.x series. We recommend that most users migrate to
|
15
|
+
`jasmine-browser-runner`. If `jasmine-browser-runner` doesn't meet your needs,
|
16
|
+
one of these might:
|
17
|
+
|
18
|
+
* The [jasmine](https://github.com/jasmine/jasmine-npm) npm package to run
|
19
|
+
specs in Node.js.
|
20
|
+
* The [standalone distribution](https://github.com/jasmine/jasmine#installation)
|
21
|
+
to run specs in browsers with no additional tools.
|
22
|
+
* The [jasmine-core](https://github.com/jasmine/jasmine) npm package if all
|
23
|
+
you need is the Jasmine assets. This is the direct equivalent of the
|
24
|
+
`jasmine-core` Ruby gem.
|
25
|
+
|
26
|
+
------
|
27
|
+
|
28
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Jasmine Gem 3.9.1 Release Notes
|
2
|
+
|
3
|
+
3.9.1 is identical to 3.9.0 except that the gem description mentions that it is
|
4
|
+
deprecated in favor of the `jasmine-browser-runner` NPM package. See the
|
5
|
+
[3.9.0 release notes](https://github.com/jasmine/jasmine-gem/blob/main/release_notes/3.9.0.md)
|
6
|
+
for more information.
|
7
|
+
|
8
|
+
------
|
9
|
+
|
10
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Van Hove
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -92,28 +92,42 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 3.
|
95
|
+
version: 3.9.0
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 3.
|
102
|
+
version: 3.9.0
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: rack
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: 2.1.4
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
116
|
+
version: 2.1.4
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: webrick
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
name: rake
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,18 +156,26 @@ dependencies:
|
|
142
156
|
- - ">="
|
143
157
|
- !ruby/object:Gem::Version
|
144
158
|
version: '0'
|
145
|
-
description:
|
159
|
+
description: |
|
160
|
+
Test your JavaScript without any framework dependencies, in any environment,
|
146
161
|
and with a nice descriptive syntax.
|
162
|
+
|
163
|
+
Jasmine for Ruby is deprecated. We recommend using the
|
164
|
+
jasmine-browser-runner NPM package instead. It supports all the same
|
165
|
+
scenarios as this gem plus Webpacker. See
|
166
|
+
<https://jasmine.github.io/setup/browser.html> for setup instructions, and
|
167
|
+
<https://github.com/jasmine/jasmine-gem/blob/main/release_notes/3.9.0.md>
|
168
|
+
for other options.
|
147
169
|
email: jasmine-js@googlegroups.com
|
148
170
|
executables:
|
149
171
|
- jasmine
|
150
172
|
extensions: []
|
151
173
|
extra_rdoc_files: []
|
152
174
|
files:
|
175
|
+
- ".circleci/config.yml"
|
153
176
|
- ".editorconfig"
|
154
177
|
- ".gitignore"
|
155
178
|
- ".rspec"
|
156
|
-
- ".travis.yml"
|
157
179
|
- Gemfile
|
158
180
|
- HOW_TO_TEST.markdown
|
159
181
|
- MIT.LICENSE
|
@@ -217,6 +239,10 @@ files:
|
|
217
239
|
- release_notes/3.5.1.md
|
218
240
|
- release_notes/3.6.0.md
|
219
241
|
- release_notes/3.7.0.md
|
242
|
+
- release_notes/3.8.0.md
|
243
|
+
- release_notes/3.8.1.md
|
244
|
+
- release_notes/3.9.0.md
|
245
|
+
- release_notes/3.9.1.md
|
220
246
|
- release_notes/v1.2.1.md
|
221
247
|
- release_notes/v1.3.2.md
|
222
248
|
- release_notes/v2.0.0.md
|
@@ -291,8 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
291
317
|
- !ruby/object:Gem::Version
|
292
318
|
version: '0'
|
293
319
|
requirements: []
|
294
|
-
|
295
|
-
rubygems_version: 2.7.6.2
|
320
|
+
rubygems_version: 3.1.2
|
296
321
|
signing_key:
|
297
322
|
specification_version: 4
|
298
323
|
summary: JavaScript BDD framework
|
data/.travis.yml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
sudo: false
|
3
|
-
cache: bundler
|
4
|
-
|
5
|
-
addons:
|
6
|
-
chrome: stable
|
7
|
-
|
8
|
-
rvm:
|
9
|
-
- "2.3"
|
10
|
-
- "2.5"
|
11
|
-
- "2.6"
|
12
|
-
|
13
|
-
env:
|
14
|
-
- "RAILS_VERSION=rails6"
|
15
|
-
- "RAILS_VERSION=rails5"
|
16
|
-
- "RAILS_VERSION=rails4"
|
17
|
-
- "RAILS_VERSION=pojs"
|
18
|
-
|
19
|
-
script: "if [ $PERFORMANCE_SPECS ];then bundle exec rake performance_specs --trace; else bundle exec rake --trace; fi"
|
20
|
-
|
21
|
-
jobs:
|
22
|
-
fast_finish: true
|
23
|
-
include:
|
24
|
-
- env:
|
25
|
-
- "PERFORMANCE_SPECS=true"
|
26
|
-
- "RAILS_VERSION=rails5"
|
27
|
-
exclude:
|
28
|
-
- rvm: "2.3"
|
29
|
-
env: "RAILS_VERSION=rails6"
|
30
|
-
|
31
|
-
before_install:
|
32
|
-
- "if [$RAILS_VERSION != rails4 ];then gem update --system; fi"
|
33
|
-
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
34
|
-
- "if [ $RAILS_VERSION = rails4 ];then gem install bundler -v '< 2.0' ; else gem install bundler; fi"
|
35
|
-
- bundle --version
|