guard-jasmine-node 0.0.6 → 0.0.7
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
@@ -1,4 +1,4 @@
|
|
1
|
-
Guard::JasmineNode ](https://secure.travis-ci.org/kapoq/guard-jasmine-node)
|
2
2
|
==================
|
3
3
|
|
4
4
|
JasmineNode guard automatically & intelligently executes jasmine node specs when files are modified.
|
@@ -59,6 +59,10 @@ Display growl/libnotify notifications.
|
|
59
59
|
|
60
60
|
Load coffeescript and all execution of .coffee files.
|
61
61
|
|
62
|
+
* `:forceexit # default => false`
|
63
|
+
|
64
|
+
Force jasmine-node process to quit after test (can help fix hanging specs)
|
65
|
+
|
62
66
|
* `:verbose # default => false`
|
63
67
|
|
64
68
|
Execute jasmine-node in verbose mode
|
data/lib/guard/jasmine_node.rb
CHANGED
@@ -32,8 +32,9 @@ module Guard
|
|
32
32
|
|
33
33
|
def self.command_line_options
|
34
34
|
options = []
|
35
|
-
options << "--coffee"
|
36
|
-
options << "--verbose"
|
35
|
+
options << "--coffee" if @options[:coffeescript]
|
36
|
+
options << "--verbose" if @options[:verbose]
|
37
|
+
options << "--forceexit" if @options[:forceexit]
|
37
38
|
options.join(" ")
|
38
39
|
end
|
39
40
|
end
|
@@ -66,6 +66,7 @@ describe Guard::JasmineNode do
|
|
66
66
|
:notify => false,
|
67
67
|
:coffeescript => false,
|
68
68
|
:verbose => true,
|
69
|
+
:forceexit => true,
|
69
70
|
:spec_paths => some_comma_separated_paths
|
70
71
|
}) }
|
71
72
|
|
@@ -100,6 +101,10 @@ describe Guard::JasmineNode do
|
|
100
101
|
it "sets the :spec_paths options to an array of paths given by a comma-separated string" do
|
101
102
|
guard.options[:spec_paths].should =~ some_paths
|
102
103
|
end
|
104
|
+
|
105
|
+
it "sets the :forceexit option" do
|
106
|
+
guard.options[:forceexit].should be_true
|
107
|
+
end
|
103
108
|
end
|
104
109
|
end
|
105
110
|
|
data/spec/lib/spec_state_spec.rb
CHANGED
@@ -22,7 +22,7 @@ describe Guard::JasmineNode::SpecState do
|
|
22
22
|
let(:io) { [
|
23
23
|
double("stdin", :close => true),
|
24
24
|
double("stdout", :close => true, :lines => []),
|
25
|
-
double("stderr", :close => true),
|
25
|
+
double("stderr", :close => true, :lines => []),
|
26
26
|
double("thread", :value => 0)
|
27
27
|
] }
|
28
28
|
let(:some_paths) { %w(some paths) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jasmine-node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
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-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|