jasmine-rails 0.10.8 → 0.11.0

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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b87dfaa1e59c670bfaf2e765c98c3d7edddf8db9
4
- data.tar.gz: 140628aed4a2ddece96ad48048c386b0b8887721
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ N2MzYzQ4N2MwOTU5Zjc1OTY4YTA2M2RkZDY3MDI2Yzk2YzkzOGZhYQ==
5
+ data.tar.gz: !binary |-
6
+ MjEwMTc1MzRhNDE0ZGE5NWY0MGU3MDYyMDlhZjZiMGJlMmEyNWIwYw==
5
7
  SHA512:
6
- metadata.gz: 2cd3f48bc75db3cc44553df51277fb7001ce00775f5aa76c295785336dd8505e1e3a4a941aabe38a865d9655d461ba4d2159040a75b072f3f68b58065fce169a
7
- data.tar.gz: afc758fb023bd1f52d90d44c519d4f6b2d736b43072db0af6228d9ff2ffb2e4afa72333e9a11ae06a2f98e7e62d9c30e7fd3ed3c9ea02e544e4b83a1f890c864
8
+ metadata.gz: !binary |-
9
+ OWEyOTU5OTdlODQxNjAxNTdjZThiNTYxMjUxMTZmZjI5MzA2NjA2ODAyODRh
10
+ ZDJkNWM0ZGE4NGEwYWY5NmE0ZTUzMzRmMzc2MjJlZTU3YThjYmMwODQzNTZm
11
+ MjRjZWZiM2I5MWI0YjQyYTBiNmQ4YzZiNjhlOWJmMDgzNDU5Mzg=
12
+ data.tar.gz: !binary |-
13
+ OGI0NTkyMWUxZGMwMWJhN2MyMDI0OWQyY2FkNDI2YTI5YzExZjllYjFjNjYy
14
+ MTc1ZjNmZTE2Y2RhMjVjN2FkN2ZkZmY3MmZmMGMxZDY1MDQ0ZGE0NmM1NWJk
15
+ NjQ0N2U3NThlZWQwM2VkZWRiOTEyMGYxYWUyMDFmNWJjNjk3MDk=
data/README.md CHANGED
@@ -249,3 +249,14 @@ use_phantom_gem: false
249
249
  ```
250
250
 
251
251
  This will then try and use the `phantom` executable on the current `PATH`.
252
+
253
+ ## PhantomJS command-line options
254
+
255
+ If you want to pass command-line options to phantomjs executable, you can set:
256
+
257
+ ```yml
258
+ phantom_options: --web-security=no
259
+ ```
260
+
261
+ This will pass everything defined on `phantom_options` as
262
+ [options](http://phantomjs.org/api/command-line.html).
@@ -17,7 +17,7 @@ css_dir: "app/assets/stylesheets"
17
17
  # list of file expressions to include as source files
18
18
  # relative path from src_dir
19
19
  src_files:
20
- - "application.{js.coffee,js,coffee}"
20
+ - "application.{js.coffee,js,coffee}"
21
21
 
22
22
  # list of file expressions to include as css files
23
23
  # relative path from css_dir
data/lib/jasmine-rails.rb CHANGED
@@ -96,6 +96,10 @@ module JasmineRails
96
96
  jasmine_config['use_phantom_gem'].nil? || jasmine_config['use_phantom_gem'] == true
97
97
  end
98
98
 
99
+ def phantom_options
100
+ jasmine_config['phantom_options'].to_s.strip
101
+ end
102
+
99
103
  private
100
104
 
101
105
  def css_dir
@@ -19,7 +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
- run_cmd %{"#{phantomjs_cmd}" "#{phantomjs_runner_path}" "file://#{runner_path.to_s}?spec=#{spec_filter}"}
22
+ phantomjs_opts = JasmineRails.phantom_options
23
+ run_cmd %{"#{phantomjs_cmd}" "#{phantomjs_opts}" "#{phantomjs_runner_path}" "file://#{runner_path.to_s}?spec=#{spec_filter}"}
23
24
  end
24
25
  end
25
26
 
@@ -1,3 +1,3 @@
1
1
  module JasmineRails
2
- VERSION = "0.10.8"
2
+ VERSION = "0.11.0"
3
3
  end
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.10.8
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
@@ -10,41 +10,41 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-11 00:00:00.000000000 Z
13
+ date: 2015-08-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>='
26
+ - - ! '>='
27
27
  - !ruby/object:Gem::Version
28
28
  version: 3.2.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sprockets-rails
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ! '>='
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ! '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: jasmine-core
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ! '>='
48
48
  - !ruby/object:Gem::Version
49
49
  version: '1.3'
50
50
  - - <
@@ -54,7 +54,7 @@ dependencies:
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - '>='
57
+ - - ! '>='
58
58
  - !ruby/object:Gem::Version
59
59
  version: '1.3'
60
60
  - - <
@@ -64,28 +64,28 @@ dependencies:
64
64
  name: phantomjs
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '1.9'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ! '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: '1.9'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: testbeds
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ! '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ! '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  description: Provides a Jasmine Spec Runner that plays nicely with Rails 3.2 assets
@@ -133,17 +133,17 @@ require_paths:
133
133
  - lib
134
134
  required_ruby_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - '>='
141
+ - - ! '>='
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.3.0
146
+ rubygems_version: 2.4.2
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Makes Jasmine easier on Rails 3.2 & up