guard-jasmine 1.10.1 → 1.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.
- data/README.md +4 -5
- data/lib/guard/jasmine/runner.rb +4 -5
- data/lib/guard/jasmine/server.rb +1 -1
- data/lib/guard/jasmine/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -274,8 +274,7 @@ We add support for CoffeeScript specs, using Thin as spec server and adding Jasm
|
|
274
274
|
create a Rack configuration to spin up a mini-Rails app for testing:
|
275
275
|
|
276
276
|
```Ruby
|
277
|
-
require '
|
278
|
-
require 'rails/all'
|
277
|
+
require 'action_controller/railtie'
|
279
278
|
require 'jasminerice'
|
280
279
|
require 'sprockets/railtie'
|
281
280
|
require 'jquery-rails'
|
@@ -343,7 +342,7 @@ The server options configures the server environment that is needed to run Guard
|
|
343
342
|
|
344
343
|
```ruby
|
345
344
|
:server => :jasmine_gem # Jasmine server to use, either :auto, :none,
|
346
|
-
# :webrick, :mongrel, :thin, :unicorn, :jasmine_gem
|
345
|
+
# :webrick, :mongrel, :thin, :unicorn, :jasmine_gem, :puma
|
347
346
|
# default: :auto
|
348
347
|
|
349
348
|
:server_env => :test # Jasmine server Rails environment to set,
|
@@ -362,7 +361,7 @@ The server options configures the server environment that is needed to run Guard
|
|
362
361
|
:timeout => 20 # The time in seconds to wait for the spec runner to finish.
|
363
362
|
# default: 10
|
364
363
|
|
365
|
-
:rackup_config => 'spec/dummy/config.ru' # Path to rackup config file (i.e. for webrick, mongrel, thin, unicorn).
|
364
|
+
:rackup_config => 'spec/dummy/config.ru' # Path to rackup config file (i.e. for webrick, mongrel, thin, unicorn, puma).
|
366
365
|
# default: ./config.ru
|
367
366
|
# This option is useful when using guard-jasmine in a mountable engine
|
368
367
|
# and the config.ru is within the dummy app
|
@@ -538,7 +537,7 @@ Usage:
|
|
538
537
|
guard-jasmine spec
|
539
538
|
|
540
539
|
Options:
|
541
|
-
-s, [--server=SERVER] # Server to start, either `auto`, `webrick`, `mongrel`, `thin`,
|
540
|
+
-s, [--server=SERVER] # Server to start, either `auto`, `webrick`, `mongrel`, `thin`, `puma`
|
542
541
|
# `unicorn`, `jasmine_gem` or `none`
|
543
542
|
# Default: auto
|
544
543
|
-p, [--port=N] # Server port to use
|
data/lib/guard/jasmine/runner.rb
CHANGED
@@ -170,13 +170,12 @@ module Guard
|
|
170
170
|
|
171
171
|
result
|
172
172
|
|
173
|
-
rescue => e
|
174
|
-
if
|
175
|
-
Formatter.error(
|
173
|
+
rescue MultiJson::DecodeError => e
|
174
|
+
if e.data == ''
|
175
|
+
Formatter.error('No response from the Jasmine runner!')
|
176
176
|
else
|
177
177
|
Formatter.error("Cannot decode JSON from PhantomJS runner: #{ e.message }")
|
178
|
-
Formatter.error(
|
179
|
-
Formatter.error("JSON response: #{ json }")
|
178
|
+
Formatter.error("JSON response: #{ e.data }")
|
180
179
|
end
|
181
180
|
ensure
|
182
181
|
output.close
|
data/lib/guard/jasmine/server.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: 1.3.6
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project: guard-jasmine
|
148
|
-
rubygems_version: 1.8.
|
148
|
+
rubygems_version: 1.8.24
|
149
149
|
signing_key:
|
150
150
|
specification_version: 3
|
151
151
|
summary: Guard gem for headless testing with Jasmine
|