guard-jasmine-node 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Guard::JasmineNode ![travis-ci](https://secure.travis-ci.org/textgoeshere/guard-jasmine-node.png)
1
+ Guard::JasmineNode [![travis-ci](https://secure.travis-ci.org/kapoq/guard-jasmine-node.png)](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
@@ -11,6 +11,7 @@ module Guard
11
11
  :notify => true,
12
12
  :coffeescript => true,
13
13
  :verbose => false,
14
+ :forceexit => false,
14
15
  :spec_paths => %w(spec)
15
16
  }
16
17
 
@@ -32,8 +32,9 @@ module Guard
32
32
 
33
33
  def self.command_line_options
34
34
  options = []
35
- options << "--coffee" if @options[:coffeescript]
36
- options << "--verbose" if @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
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module JasmineNodeVersion
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  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
 
@@ -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.6
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-09-29 00:00:00.000000000 Z
12
+ date: 2012-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard