jasmine-rails 0.14.1 → 0.14.2
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/README.md +1 -1
- data/lib/jasmine-rails.rb +3 -2
- data/lib/jasmine_rails/runner.rb +2 -2
- data/lib/jasmine_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 731ec379ac0e63e5c24c66e5d2ab6b9624ad4cc4
|
4
|
+
data.tar.gz: be1f165218f60586525543da8b00d0770ae3cc98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 963a41298f5ab864447fa80fc402d3647a2c630c660094ccfea0edccc286048ac86a7b8885749501b9e99d03ec3f545b6605e0ed29dea2fee881d4386a42b70b
|
7
|
+
data.tar.gz: 12e24da18c80a7bde9e8036f09e91e217d28305b9f874f808c62a3603d56938f697ed1c1211fa066d219b97af72ed3489dca964f1ebda372e22dc33c7688c8de
|
data/README.md
CHANGED
@@ -255,7 +255,7 @@ This will then try and use the `phantom` executable on the current `PATH`.
|
|
255
255
|
If you want to pass command-line options to phantomjs executable, you can set:
|
256
256
|
|
257
257
|
```yml
|
258
|
-
phantom_options: --web-security=no
|
258
|
+
phantom_options: --web-security=no --debug=yes
|
259
259
|
```
|
260
260
|
|
261
261
|
This will pass everything defined on `phantom_options` as
|
data/lib/jasmine-rails.rb
CHANGED
@@ -102,8 +102,9 @@ module JasmineRails
|
|
102
102
|
jasmine_config['use_phantom_gem'].nil? || jasmine_config['use_phantom_gem'] == true
|
103
103
|
end
|
104
104
|
|
105
|
+
# @return [Array<String>]
|
105
106
|
def phantom_options
|
106
|
-
jasmine_config['phantom_options'].to_s.strip
|
107
|
+
jasmine_config['phantom_options'].to_s.split(/\s+/).map(&:strip)
|
107
108
|
end
|
108
109
|
|
109
110
|
private
|
@@ -122,7 +123,7 @@ module JasmineRails
|
|
122
123
|
@config ||= begin
|
123
124
|
config_file_name = ENV['JASMINE_CONFIG'] || 'jasmine.yml'
|
124
125
|
path = Rails.root.join('config', config_file_name)
|
125
|
-
path = Rails.root.join('spec', 'javascripts', 'support', config_file_name) unless File.
|
126
|
+
path = Rails.root.join('spec', 'javascripts', 'support', config_file_name) unless File.exist?(path)
|
126
127
|
initialize_jasmine_config_if_absent(path)
|
127
128
|
require 'yaml'
|
128
129
|
YAML.load_file(path)
|
data/lib/jasmine_rails/runner.rb
CHANGED
@@ -19,8 +19,8 @@ module JasmineRails
|
|
19
19
|
|
20
20
|
phantomjs_runner_path = File.join(File.dirname(__FILE__), '..', 'assets', 'javascripts', 'jasmine-runner.js')
|
21
21
|
phantomjs_cmd = JasmineRails.use_phantom_gem? ? Phantomjs.path : 'phantomjs'
|
22
|
-
phantomjs_opts = JasmineRails.phantom_options
|
23
|
-
run_cmd %{"#{phantomjs_cmd}"
|
22
|
+
phantomjs_opts = JasmineRails.phantom_options.map { |option| "#{option}" }.join(' ')
|
23
|
+
run_cmd %{"#{phantomjs_cmd}" #{phantomjs_opts} "#{phantomjs_runner_path}" "file://#{runner_path.to_s}?spec=#{spec_filter}"}
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jasmine-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.
|
146
|
+
rubygems_version: 2.6.11
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Makes Jasmine easier on Rails 3.2 & up
|