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 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 'rails'
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
@@ -170,13 +170,12 @@ module Guard
170
170
 
171
171
  result
172
172
 
173
- rescue => e
174
- if json == ''
175
- Formatter.error("No response from the Jasmine runner!")
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('Please report an issue at: https://github.com/netzpirat/guard-jasmine/issues')
179
- Formatter.error("JSON response: #{ json }")
178
+ Formatter.error("JSON response: #{ e.data }")
180
179
  end
181
180
  ensure
182
181
  output.close
@@ -32,7 +32,7 @@ module Guard
32
32
  timeout = options[:server_timeout]
33
33
 
34
34
  case server
35
- when :webrick, :mongrel, :thin
35
+ when :webrick, :mongrel, :thin, :puma
36
36
  start_rack_server(server, port, options)
37
37
  when :unicorn
38
38
  start_unicorn_server(port, options)
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module JasmineVersion
3
3
  # Guard::Jasmine version that is used for the Gem specification
4
- VERSION = '1.10.1'
4
+ VERSION = '1.11.0'
5
5
  end
6
6
  end
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.10.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-11-22 00:00:00.000000000 Z
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.23
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