jasmine 2.0.0.rc3 → 2.0.0.rc4
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/lib/jasmine/asset_pipeline_mapper.rb +2 -1
- data/lib/jasmine/formatters/exit_code.rb +4 -0
- data/lib/jasmine/tasks/jasmine.rake +1 -1
- data/lib/jasmine/version.rb +1 -1
- data/release_notes/v2.0.0.rc3.md +78 -0
- data/release_notes/v2.0.0.rc4.md +89 -0
- data/spec/fixture/non_asset_pipeline.js +1 -0
- data/spec/fixture/non_asset_pipeline_test.js +5 -0
- data/spec/jasmine_rails_spec.rb +15 -0
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25b9d87800d70c9fce241ec4e329cb4a3768b314
|
4
|
+
data.tar.gz: 57f4d922f245cfa8b84b9201f9ba245a728529f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 068395a81cacb184dc6b3f76b7dcae19892583604b78d66602d9018f5ce3196b4e217b7d6076c36f232890a555f5e2de2d7fb63dc98c9c57e97fb3e5ad2062cf
|
7
|
+
data.tar.gz: e6a447e4757b4cbc4e50cfeda058f305b97c839b5f763140d906184086b523d6bdcd23381c412b3fda280ab989ba529f5c0fb6ae82986fe86aedcf172aa8c4ac
|
@@ -8,7 +8,8 @@ module Jasmine
|
|
8
8
|
|
9
9
|
def map_src_paths(src_paths)
|
10
10
|
src_paths.map do |src_path|
|
11
|
-
@asset_expander.call(@config.src_dir, src_path)
|
11
|
+
expanded_assets = @asset_expander.call(@config.src_dir, src_path)
|
12
|
+
expanded_assets.empty? ? src_path : expanded_assets
|
12
13
|
end.flatten.uniq
|
13
14
|
end
|
14
15
|
|
@@ -48,7 +48,7 @@ namespace :jasmine do
|
|
48
48
|
runner = config.runner.call(Jasmine::Formatters::Multi.new(formatters), url)
|
49
49
|
runner.run
|
50
50
|
|
51
|
-
|
51
|
+
break unless exit_code_formatter.succeeded?
|
52
52
|
end
|
53
53
|
|
54
54
|
task :server => %w(jasmine:require jasmine:configure) do
|
data/lib/jasmine/version.rb
CHANGED
@@ -0,0 +1,78 @@
|
|
1
|
+
# Jasmine Gem 2.0 Release Notes
|
2
|
+
|
3
|
+
These notes cover version 2.0.0.rc3
|
4
|
+
|
5
|
+
## Summary
|
6
|
+
|
7
|
+
This release is focused on support for Jasmine 2.0, gem configuration simplification, and improvement of Rails support (including Rails 4).
|
8
|
+
|
9
|
+
The `Jasmine.configure` block now allows for fine-tuned configuration of how a project's suite is run. There are two new/refined concepts: Runners and Formatters.
|
10
|
+
|
11
|
+
Formatters are responsible for taking the results from the Jasmine suite and presenting the data in a specific format. Runners take a URL and a Formatter and are responsible for running the Jasmine suite and passing results to the given formatter.
|
12
|
+
|
13
|
+
The default Runner uses PhantomJS to run the suite. The default Formatter sends results to the console. There are Ruby gems for a [Selenium/Webdriver Runner][selenium] and a [JUnit XML Formatter][junit]. These projects are great examples for writing a Runner or Formatter for your environment.
|
14
|
+
|
15
|
+
## Dropped Support
|
16
|
+
|
17
|
+
* _Most_ ENV variables removed - use `Jasmine.configure` to set browser, ports, etc.
|
18
|
+
* Dropped support for 1.8.x Rubies, Rails 2, RSpec 1 - please continue to use Jasmine gem 1.3.2
|
19
|
+
* "self-test" is gone as [Jasmine core now tests itself](http://travis-ci.org/pivotal/jasmine)
|
20
|
+
|
21
|
+
## Changes
|
22
|
+
|
23
|
+
* Support for changes in Jasmine 2.0
|
24
|
+
* Hooks in `jasmine.yml` and configuration for `boot_dir` and `boot_files`
|
25
|
+
* Support for changes to results interface
|
26
|
+
* Results Formatters:
|
27
|
+
* New console results formatter for CI tasks - Jasmine Gem no longer depend on RSpec for console output
|
28
|
+
* Optional JUnit XML results formatter for CI tasks
|
29
|
+
* Projects can provide custom formatters
|
30
|
+
* Rails 4 support
|
31
|
+
* Better support for non-Rails Ruby projects
|
32
|
+
* Loosely pinning to the `jasmine-core` gem, allowing for Jasmine Core's build to work on release for Jasmine build to work.
|
33
|
+
* SHA: 42021e3a86e57f6b7b23dfbe921867d7560f4e4f
|
34
|
+
* Add warning to `jasmine init`
|
35
|
+
* SHA: e071474b014e7d6909d69f86988b84eacb801201
|
36
|
+
* Globbing should now return files in a consistent, predictable order across systems
|
37
|
+
* Improved integration tests with Rails
|
38
|
+
* Added the configuration option to specify your own Webdriver instance
|
39
|
+
* Brought back the Jasmine Favicon
|
40
|
+
|
41
|
+
### In RC3
|
42
|
+
|
43
|
+
* Better re-work of Runners and Formatters
|
44
|
+
* In Rails 4, turn off turbolink processing of jasmine runner spec links so spec links work
|
45
|
+
* User can copy `boot.js` into their project for customization - usage: `jasmine copy_boot_js`
|
46
|
+
* Allow user to configure path to `jasmine.yml` via an ENV variable.
|
47
|
+
* More data printed out to console when starting the Jasmine server
|
48
|
+
* Support for specs to be written in CoffeeScript when used with Rails
|
49
|
+
* Fix stylesheet asset expansion for Rails 4
|
50
|
+
* Remove RSpec dependency - Jasmine gem builds its own output
|
51
|
+
* Remove Selenium dependency - builds run against PhantomJS by default
|
52
|
+
* Remove accidental sqllite development dependency
|
53
|
+
* Jasmine example code no longer installed when `jasmine init` is run. Examples are now installed explicitly with `jasmine examples`
|
54
|
+
* Extraction to separate gems for:
|
55
|
+
* JUnit XML formatter
|
56
|
+
* Selenium/Webdriver integration
|
57
|
+
|
58
|
+
## Accepted Pull Requests
|
59
|
+
|
60
|
+
* Fix README.markdown and add config example #[144](http://github.com/pivotal/jasmine-gem/pull/144) from @enrapt-mochizuki
|
61
|
+
* Use a relative path to jasmine repo in Gemfile #[161](http://github.com/pivotal/jasmine-gem/pull/161) from @zephyr-dev
|
62
|
+
* Problem when using a asset prefix other than '/assets' #[155](http://github.com/pivotal/jasmine-gem/pull/155) from @janv
|
63
|
+
* Remove unused code - #[154](http://github.com/pivotal/jasmine-gem/pull/154) from @daytonn
|
64
|
+
* Fix default path for :spec_helper in template #[147](http://github.com/pivotal/jasmine-gem/pull/147) from @kmayer
|
65
|
+
* Improve Gemfile installation instructions #[141](http://github.com/pivotal/jasmine-gem/pull/141)
|
66
|
+
|
67
|
+
### In RC3
|
68
|
+
|
69
|
+
* Use IE=edge for IE compatibility because this will put IE into the highest available mode for each version of IE - see [Question on StackOverflow](http://stackoverflow.com/questions/3449286/force-ie-compatibility-mode-off-in-ie-using-tags
|
70
|
+
) - #[168](http://github.com/pivotal/jasmine-gem/pull/168) from @iwz
|
71
|
+
|
72
|
+
|
73
|
+
------
|
74
|
+
|
75
|
+
_Release Notes generated with [Anchorman](http://github.com/infews/anchorman)_
|
76
|
+
|
77
|
+
[selenium]: https://github.com/jasmine/jasmine_selenium_runner
|
78
|
+
[junit]: https://github.com/jasmine/jasmine_junitxml_formatter
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# Jasmine Gem 2.0 Release Notes
|
2
|
+
|
3
|
+
These notes cover version 2.0.0.rc3
|
4
|
+
|
5
|
+
## Summary
|
6
|
+
|
7
|
+
This release is focused on support for Jasmine 2.0, gem configuration simplification, and improvement of Rails support (including Rails 4).
|
8
|
+
|
9
|
+
The `Jasmine.configure` block now allows for fine-tuned configuration of how a project's suite is run. There are two new/refined concepts: Runners and Formatters.
|
10
|
+
|
11
|
+
Formatters are responsible for taking the results from the Jasmine suite and presenting the data in a specific format. Runners take a URL and a Formatter and are responsible for running the Jasmine suite and passing results to the given formatter.
|
12
|
+
|
13
|
+
The default Runner uses PhantomJS to run the suite. The default Formatter sends results to the console. There are Ruby gems for a [Selenium/Webdriver Runner][selenium] and a [JUnit XML Formatter][junit]. These projects are great examples for writing a Runner or Formatter for your environment.
|
14
|
+
|
15
|
+
## Dropped Support
|
16
|
+
|
17
|
+
* _Most_ ENV variables removed - use `Jasmine.configure` to set browser, ports, etc.
|
18
|
+
* Dropped support for 1.8.x Rubies, Rails 2, RSpec 1 - please continue to use Jasmine gem 1.3.2
|
19
|
+
* "self-test" is gone as [Jasmine core now tests itself](http://travis-ci.org/pivotal/jasmine)
|
20
|
+
|
21
|
+
## Changes
|
22
|
+
|
23
|
+
* Support for changes in Jasmine 2.0
|
24
|
+
* Hooks in `jasmine.yml` and configuration for `boot_dir` and `boot_files`
|
25
|
+
* Support for changes to results interface
|
26
|
+
* Results Formatters:
|
27
|
+
* New console results formatter for CI tasks - Jasmine Gem no longer depend on RSpec for console output
|
28
|
+
* Optional JUnit XML results formatter for CI tasks
|
29
|
+
* Projects can provide custom formatters
|
30
|
+
* Rails 4 support
|
31
|
+
* Better support for non-Rails Ruby projects
|
32
|
+
* Loosely pinning to the `jasmine-core` gem, allowing for Jasmine Core's build to work on release for Jasmine build to work.
|
33
|
+
* SHA: 42021e3a86e57f6b7b23dfbe921867d7560f4e4f
|
34
|
+
* Add warning to `jasmine init`
|
35
|
+
* SHA: e071474b014e7d6909d69f86988b84eacb801201
|
36
|
+
* Globbing should now return files in a consistent, predictable order across systems
|
37
|
+
* Improved integration tests with Rails
|
38
|
+
* Added the configuration option to specify your own Webdriver instance
|
39
|
+
* Brought back the Jasmine Favicon
|
40
|
+
|
41
|
+
### In RC4
|
42
|
+
|
43
|
+
* `jasmine:ci` rake task doesn't call exit and stop other rake tasks
|
44
|
+
|
45
|
+
* Respect source js files outside the asset pipeline
|
46
|
+
|
47
|
+
[Finish #37284657](http://www.pivotaltracker.com/story/37284657)
|
48
|
+
* SHA: ad8f6c839bce5d362409e59c46043b0ecc762faf
|
49
|
+
* Gregg Van Hove and Tim Jarratt, pair+gvanhove+tjarratt@pivotallabs.com
|
50
|
+
|
51
|
+
|
52
|
+
### In RC3
|
53
|
+
|
54
|
+
* Better re-work of Runners and Formatters
|
55
|
+
* In Rails 4, turn off turbolink processing of jasmine runner spec links so spec links work
|
56
|
+
* User can copy `boot.js` into their project for customization - usage: `jasmine copy_boot_js`
|
57
|
+
* Allow user to configure path to `jasmine.yml` via an ENV variable.
|
58
|
+
* More data printed out to console when starting the Jasmine server
|
59
|
+
* Support for specs to be written in CoffeeScript when used with Rails
|
60
|
+
* Fix stylesheet asset expansion for Rails 4
|
61
|
+
* Remove RSpec dependency - Jasmine gem builds its own output
|
62
|
+
* Remove Selenium dependency - builds run against PhantomJS by default
|
63
|
+
* Remove accidental sqllite development dependency
|
64
|
+
* Jasmine example code no longer installed when `jasmine init` is run. Examples are now installed explicitly with `jasmine examples`
|
65
|
+
* Extraction to separate gems for:
|
66
|
+
* JUnit XML formatter
|
67
|
+
* Selenium/Webdriver integration
|
68
|
+
|
69
|
+
## Accepted Pull Requests
|
70
|
+
|
71
|
+
* Fix README.markdown and add config example #[144](http://github.com/pivotal/jasmine-gem/pull/144) from @enrapt-mochizuki
|
72
|
+
* Use a relative path to jasmine repo in Gemfile #[161](http://github.com/pivotal/jasmine-gem/pull/161) from @zephyr-dev
|
73
|
+
* Problem when using a asset prefix other than '/assets' #[155](http://github.com/pivotal/jasmine-gem/pull/155) from @janv
|
74
|
+
* Remove unused code - #[154](http://github.com/pivotal/jasmine-gem/pull/154) from @daytonn
|
75
|
+
* Fix default path for :spec_helper in template #[147](http://github.com/pivotal/jasmine-gem/pull/147) from @kmayer
|
76
|
+
* Improve Gemfile installation instructions #[141](http://github.com/pivotal/jasmine-gem/pull/141)
|
77
|
+
|
78
|
+
### In RC3
|
79
|
+
|
80
|
+
* Use IE=edge for IE compatibility because this will put IE into the highest available mode for each version of IE - see [Question on StackOverflow](http://stackoverflow.com/questions/3449286/force-ie-compatibility-mode-off-in-ie-using-tags
|
81
|
+
) - #[168](http://github.com/pivotal/jasmine-gem/pull/168) from @iwz
|
82
|
+
|
83
|
+
|
84
|
+
------
|
85
|
+
|
86
|
+
_Release Notes generated with [Anchorman](http://github.com/infews/anchorman)_
|
87
|
+
|
88
|
+
[selenium]: https://github.com/jasmine/jasmine_selenium_runner
|
89
|
+
[junit]: https://github.com/jasmine/jasmine_junitxml_formatter
|
@@ -0,0 +1 @@
|
|
1
|
+
window.NonAssetPipeline = true;
|
data/spec/jasmine_rails_spec.rb
CHANGED
@@ -130,5 +130,20 @@ if Jasmine::Dependencies.rails_available?
|
|
130
130
|
end
|
131
131
|
end
|
132
132
|
end
|
133
|
+
|
134
|
+
it "should load js files outside of the assets path too" do
|
135
|
+
yaml = custom_jasmine_config('public-assets') do |jasmine_config|
|
136
|
+
jasmine_config['src_files'] << 'public/javascripts/**/*.js'
|
137
|
+
jasmine_config['spec_files'] = ['non_asset_pipeline_test.js']
|
138
|
+
end
|
139
|
+
FileUtils.mkdir_p(File.join('public', 'javascripts'))
|
140
|
+
FileUtils.cp(File.join(@root, 'spec', 'fixture', 'non_asset_pipeline.js'), File.join('public', 'javascripts'))
|
141
|
+
FileUtils.cp(File.join(@root, 'spec', 'fixture', 'non_asset_pipeline_test.js'), File.join('spec', 'javascripts'))
|
142
|
+
|
143
|
+
Bundler.with_clean_env do
|
144
|
+
output = `bundle exec rake jasmine:ci JASMINE_CONFIG_PATH=#{yaml}`
|
145
|
+
output.should include('1 spec, 0 failures')
|
146
|
+
end
|
147
|
+
end
|
133
148
|
end
|
134
149
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajan Agaskar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-10-
|
13
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -188,6 +188,8 @@ files:
|
|
188
188
|
- release_notes/v1.2.1.md
|
189
189
|
- release_notes/v1.3.2.md
|
190
190
|
- release_notes/v2.0.0.rc2.md
|
191
|
+
- release_notes/v2.0.0.rc3.md
|
192
|
+
- release_notes/v2.0.0.rc4.md
|
191
193
|
- spec/application_integration_spec.rb
|
192
194
|
- spec/application_spec.rb
|
193
195
|
- spec/base_spec.rb
|
@@ -197,6 +199,8 @@ files:
|
|
197
199
|
- spec/fixture/failing_runner.rb
|
198
200
|
- spec/fixture/failing_test.js
|
199
201
|
- spec/fixture/large_test_suite_spec.js
|
202
|
+
- spec/fixture/non_asset_pipeline.js
|
203
|
+
- spec/fixture/non_asset_pipeline_test.js
|
200
204
|
- spec/jasmine_command_line_tool_spec.rb
|
201
205
|
- spec/jasmine_pojs_spec.rb
|
202
206
|
- spec/jasmine_rails_spec.rb
|
@@ -232,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
236
|
version: 1.3.1
|
233
237
|
requirements: []
|
234
238
|
rubyforge_project:
|
235
|
-
rubygems_version: 2.0.
|
239
|
+
rubygems_version: 2.0.6
|
236
240
|
signing_key:
|
237
241
|
specification_version: 4
|
238
242
|
summary: JavaScript BDD framework
|
@@ -246,6 +250,8 @@ test_files:
|
|
246
250
|
- spec/fixture/failing_runner.rb
|
247
251
|
- spec/fixture/failing_test.js
|
248
252
|
- spec/fixture/large_test_suite_spec.js
|
253
|
+
- spec/fixture/non_asset_pipeline.js
|
254
|
+
- spec/fixture/non_asset_pipeline_test.js
|
249
255
|
- spec/jasmine_command_line_tool_spec.rb
|
250
256
|
- spec/jasmine_pojs_spec.rb
|
251
257
|
- spec/jasmine_rails_spec.rb
|