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 +2 -2
- data/lib/guard/jasmine/util.rb +12 -12
- data/lib/guard/jasmine/version.rb +1 -1
- metadata +2 -2
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 `
|
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:
|
data/lib/guard/jasmine/util.rb
CHANGED
@@ -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
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
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.
|
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-
|
12
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|