guard-jasmine 1.13.0 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -507,9 +507,9 @@ You also need to explicit enable the coverage support in the options:
507
507
 
508
508
  Istanbul needs to instrument the implementation files so that the execution path can be detected. Guard::Jasmine comes
509
509
  with a tilt template that generates instrumented implementation files when using in the asset pipeline. If you do not
510
- use asset pipeline, than you need to instrument your files on your own, either manually or by using something like
510
+ use asset pipeline, than you need to instrument your files on your own, either manually (basic example: `istanbul instrument --output instrumented_scripts scripts`) or by using something like
511
511
  [Guard::Process](https://github.com/socialreferral/guard-process). You can get more information about the
512
- instrumentation with `instanbul help instrument`.
512
+ instrumentation with `istanbul help instrument`. You'll also need to update your `:spec_dir` or `jasmine.yml/src_dir` settings to point Guard::Jasmine to these instrumented source files.
513
513
 
514
514
  **Important**: You need to clear the asset cache when you change this setting, so that already compiled assets will be
515
515
  recompiled. Just use the Sprockets supplied Rake task:
@@ -24,20 +24,20 @@ module Guard
24
24
  begin
25
25
  ::Guard::Jasmine::Formatter.info "Waiting for Jasmine test runner at #{ url }"
26
26
 
27
- Timeout::timeout(options[:server_timeout]) do
28
- Net::HTTP.start(url.host, url.port) do |http|
29
- response = http.request(Net::HTTP::Get.new(url.path))
30
- available = response.code.to_i == 200
31
-
32
- unless available
33
- ::Guard::Jasmine::Formatter.error "Jasmine test runner failed with status #{ response.code }"
34
- if response.body
35
- ::Guard::Jasmine::Formatter.error 'Please open the Jasmine runner in your browser for more information.'
36
- end
27
+ http = Net::HTTP.new(url.host, url.port)
28
+ http.read_timeout = options[:server_timeout]
29
+ http.start do
30
+ response = http.request(Net::HTTP::Get.new(url.path))
31
+ available = response.code.to_i == 200
32
+
33
+ unless available
34
+ ::Guard::Jasmine::Formatter.error "Jasmine test runner failed with status #{ response.code }"
35
+ if response.body
36
+ ::Guard::Jasmine::Formatter.error 'Please open the Jasmine runner in your browser for more information.'
37
37
  end
38
-
39
- available
40
38
  end
39
+
40
+ available
41
41
  end
42
42
 
43
43
  rescue Timeout::Error => e
@@ -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.13.0'
4
+ VERSION = '1.13.1'
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.13.0
4
+ version: 1.13.1
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: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard