jasmine 2.3.0 → 2.3.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/HOW_TO_TEST.markdown +1 -0
- data/lib/jasmine/path_mapper.rb +1 -1
- data/lib/jasmine/runners/phantom_jasmine_run.js +13 -3
- data/lib/jasmine/version.rb +1 -1
- data/release_notes/v2.3.1.md +14 -0
- data/spec/path_mapper_spec.rb +5 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 582853be5a7ca06d0508e60bd4e17acb140cd098
|
4
|
+
data.tar.gz: b8511099ea1f154e67eb5eb25a20fb13195956c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc03b09353e298d991c049bfe95ccaa0223aa6b03daa281fbc756b50817a785c46e0fef5e9d8bb8969273942569034e0d911ded0da8fb861b5f83ce9b93ad237
|
7
|
+
data.tar.gz: 32b6f43cb65ec2bb1298ddc00e1d869772298d446c2487aa4765b2bd1379274cfacc2d8bd84f51223967d6696e9ce875652a398ba267239d9fe7eaaad48d1213
|
data/HOW_TO_TEST.markdown
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
To test changes to the jasmine-gem:
|
2
2
|
|
3
|
+
* You need to have the [jasmine project](https://github.com/jasmine/jasmine) checked out in `../jasmine`
|
3
4
|
* Export RAILS_VERSION as either "pojs" (Plain Old JavaScript -- IE, no rails bindings), or "rails3" to test environments other than Rails 4.
|
4
5
|
* Delete `Gemfile.lock`
|
5
6
|
* Clear out your current gemset
|
data/lib/jasmine/path_mapper.rb
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
(function() {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
|
3
|
+
if (phantom.version.major >= 2) {
|
4
|
+
var system = require('system');
|
5
|
+
var url = system.args[1];
|
6
|
+
var showConsoleLog = system.args[2] === 'true';
|
7
|
+
var configScript = system.args[3];
|
8
|
+
}
|
9
|
+
else {
|
10
|
+
var url = phantom.args[0];
|
11
|
+
var showConsoleLog = phantom.args[1] === 'true';
|
12
|
+
var configScript = phantom.args[2];
|
13
|
+
}
|
14
|
+
|
5
15
|
var page = require('webpage').create();
|
6
16
|
|
7
17
|
if (configScript !== '') {
|
data/lib/jasmine/version.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Jasmine Gem 2.3.1 Release Notes
|
2
|
+
|
3
|
+
## Pull Requests & Issues
|
4
|
+
|
5
|
+
* Fix PathMapper overzealously replacing working directory
|
6
|
+
- Merges [#248](https://github.com/jasmine/jasmine-gem/issues/248) from @tdooner
|
7
|
+
|
8
|
+
* Resolve problem with Phantom 2.0.0
|
9
|
+
- Merges [#245](https://github.com/jasmine/jasmine-gem/issues/245) from @PatrickKing
|
10
|
+
- Fixes [#244](https://github.com/jasmine/jasmine-gem/issues/244)
|
11
|
+
|
12
|
+
------
|
13
|
+
|
14
|
+
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
data/spec/path_mapper_spec.rb
CHANGED
@@ -30,4 +30,9 @@ describe Jasmine::PathMapper do
|
|
30
30
|
mapper = Jasmine::PathMapper.new(config)
|
31
31
|
mapper.map_src_paths(['/src_dir/foo']).should == ['/src_dir/foo']
|
32
32
|
end
|
33
|
+
it 'handles edge case with multiple instances of src dir' do
|
34
|
+
config = double(:config, :src_dir => '/app', :src_path => '/')
|
35
|
+
mapper = Jasmine::PathMapper.new(config)
|
36
|
+
mapper.map_src_paths(['/app/assets/application.js']).should == ['/assets/application.js']
|
37
|
+
end
|
33
38
|
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.3.
|
4
|
+
version: 2.3.1
|
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: 2015-
|
13
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -209,6 +209,7 @@ files:
|
|
209
209
|
- release_notes/v2.1.0.md
|
210
210
|
- release_notes/v2.2.0.md
|
211
211
|
- release_notes/v2.3.0.md
|
212
|
+
- release_notes/v2.3.1.md
|
212
213
|
- spec/application_integration_spec.rb
|
213
214
|
- spec/application_spec.rb
|
214
215
|
- spec/base_spec.rb
|
@@ -261,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
262
|
version: '0'
|
262
263
|
requirements: []
|
263
264
|
rubyforge_project:
|
264
|
-
rubygems_version: 2.0.
|
265
|
+
rubygems_version: 2.0.14
|
265
266
|
signing_key:
|
266
267
|
specification_version: 4
|
267
268
|
summary: JavaScript BDD framework
|