guard-jasmine-node 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -59,6 +59,11 @@ Display growl/libnotify notifications.
59
59
 
60
60
  Load coffeescript and all execution of .coffee files.
61
61
 
62
+ * `:verbose # default => true`
63
+
64
+ Execute jasmine-node in verbose mode
65
+
66
+
62
67
  * `:jasmine_node_bin`
63
68
 
64
69
  Specify the path to the jasmine-node binary that will execute your specs.
@@ -9,7 +9,8 @@ module Guard
9
9
  :all_on_start => true,
10
10
  :keep_failed => true,
11
11
  :notify => true,
12
- :coffeescript => true
12
+ :coffeescript => true,
13
+ :verbose => true
13
14
  }
14
15
 
15
16
  PATHS_FOR_ALL_SPECS = %w(spec)
@@ -31,7 +31,10 @@ module Guard
31
31
  end
32
32
 
33
33
  def self.command_line_options
34
- "--coffee" if @options[:coffeescript]
34
+ options = []
35
+ options << "--coffee" if @options[:coffeescript]
36
+ options << "--verbose" if @options[:verbose]
37
+ options.join(" ")
35
38
  end
36
39
  end
37
40
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module JasmineNodeVersion
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -35,6 +35,10 @@ describe Guard::JasmineNode do
35
35
  it "sets :coffescript option to true" do
36
36
  guard.options[:coffeescript].should be_true
37
37
  end
38
+
39
+ it "sets :verbose option to true" do
40
+ guard.options[:verbose].should be_true
41
+ end
38
42
 
39
43
  it "is passing" do
40
44
  guard.should be_passing
@@ -53,7 +57,8 @@ describe Guard::JasmineNode do
53
57
  :all_after_pass => false,
54
58
  :keep_failed => false,
55
59
  :notify => false,
56
- :coffeescript => false
60
+ :coffeescript => false,
61
+ :verbose => false
57
62
  }) }
58
63
 
59
64
  it "sets the path to jasmine-node bin" do
@@ -79,6 +84,10 @@ describe Guard::JasmineNode do
79
84
  it "sets the :coffeescript option" do
80
85
  guard.options[:coffeescript].should be_false
81
86
  end
87
+
88
+ it "sets the :verbose option" do
89
+ guard.options[:verbose].should be_false
90
+ end
82
91
  end
83
92
  end
84
93
 
@@ -40,6 +40,20 @@ describe Guard::JasmineNode::Runner do
40
40
  runner.run(some_paths, :coffeescript => false)
41
41
  end
42
42
  end
43
+
44
+ context "and verbose option is true" do
45
+ it "passes the --verbose option to jasmine node" do
46
+ Open3.should_receive(:popen3).with(/--verbose/)
47
+ runner.run(some_paths, :verbose => true)
48
+ end
49
+ end
50
+
51
+ context "and verbose option is false" do
52
+ it "does not pass the --verbose option to jasmin node" do
53
+ Open3.should_not_receive(:popen3).with(/--verbose/)
54
+ runner.run(some_paths, :verbose => false)
55
+ end
56
+ end
43
57
 
44
58
  it "returns IO object" do
45
59
  io_obj = double("io obj")
metadata CHANGED
@@ -1,117 +1,90 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: guard-jasmine-node
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 3
10
- version: 0.0.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - dave@kapoq.com
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-09-23 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-09-24 00:00:00.000000000 +02:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: guard
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &13432740 !ruby/object:Gem::Requirement
24
18
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- - 4
32
- version: "0.4"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0.4'
33
23
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rspec
37
24
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *13432740
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &13432320 !ruby/object:Gem::Requirement
39
29
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
47
34
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: guard-rspec
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *13432320
37
+ - !ruby/object:Gem::Dependency
38
+ name: guard-rspec
39
+ requirement: &13482980 !ruby/object:Gem::Requirement
53
40
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
61
45
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: rake
65
46
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *13482980
48
+ - !ruby/object:Gem::Dependency
49
+ name: rake
50
+ requirement: &13482560 !ruby/object:Gem::Requirement
67
51
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
75
56
  type: :development
76
- version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: rb-inotify
79
57
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *13482560
59
+ - !ruby/object:Gem::Dependency
60
+ name: rb-inotify
61
+ requirement: &13482100 !ruby/object:Gem::Requirement
81
62
  none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
89
67
  type: :development
90
- version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
92
- name: libnotify
93
68
  prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
69
+ version_requirements: *13482100
70
+ - !ruby/object:Gem::Dependency
71
+ name: libnotify
72
+ requirement: &13481680 !ruby/object:Gem::Requirement
95
73
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
103
78
  type: :development
104
- version_requirements: *id006
105
- description: ""
106
- email:
79
+ prerelease: false
80
+ version_requirements: *13481680
81
+ description: ''
82
+ email:
107
83
  - dave@kapoq.com
108
84
  executables: []
109
-
110
85
  extensions: []
111
-
112
86
  extra_rdoc_files: []
113
-
114
- files:
87
+ files:
115
88
  - .gitignore
116
89
  - .travis.yml
117
90
  - CHANGELOG.md
@@ -130,38 +103,30 @@ files:
130
103
  - spec/lib/runner_spec.rb
131
104
  - spec/lib/spec_state_spec.rb
132
105
  - spec/spec_helper.rb
106
+ has_rdoc: true
133
107
  homepage: https://github.com/kapoq/guard-jasmine-node
134
108
  licenses: []
135
-
136
109
  post_install_message:
137
110
  rdoc_options: []
138
-
139
- require_paths:
111
+ require_paths:
140
112
  - lib
141
- required_ruby_version: !ruby/object:Gem::Requirement
113
+ required_ruby_version: !ruby/object:Gem::Requirement
142
114
  none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
148
- - 0
149
- version: "0"
150
- required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
120
  none: false
152
- requirements:
153
- - - ">="
154
- - !ruby/object:Gem::Version
155
- hash: 3
156
- segments:
157
- - 0
158
- version: "0"
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
159
125
  requirements: []
160
-
161
126
  rubyforge_project: guard-jasmine-node
162
- rubygems_version: 1.8.6
127
+ rubygems_version: 1.6.2
163
128
  signing_key:
164
129
  specification_version: 3
165
- summary: Guard::JasmineNode automatically runs your Jasmine Node specs when files are modified
130
+ summary: Guard::JasmineNode automatically runs your Jasmine Node specs when files
131
+ are modified
166
132
  test_files: []
167
-