guard-jasmine 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -120,12 +120,12 @@ module Guard
120
120
  # @raise [:task_has_failed] when run_on_change has failed
121
121
  #
122
122
  def run_on_change(paths)
123
- return false if Inspector.clean(paths).empty?
123
+ specs = Inspector.clean(paths)
124
+ return false if specs.empty?
124
125
 
125
- paths += self.last_failed_paths if options[:keep_failed]
126
+ specs += self.last_failed_paths if options[:keep_failed]
126
127
 
127
- passed, failed_specs = Runner.run(Inspector.clean(paths), options)
128
- Inspector.clear
128
+ passed, failed_specs = Runner.run(specs, options)
129
129
 
130
130
  if passed
131
131
  self.last_failed_paths = self.last_failed_paths - paths
@@ -162,7 +162,7 @@ module Guard
162
162
  response.code.to_i == 200
163
163
  end
164
164
 
165
- rescue Errno::ECONNREFUSED => e
165
+ rescue
166
166
  notify_failure("Jasmine test runner isn't available", "Jasmine test runner isn't available at #{ url }")
167
167
 
168
168
  false
@@ -24,7 +24,7 @@ module Guard
24
24
  :type => :string,
25
25
  :aliases => '-s',
26
26
  :default => 'auto',
27
- :desc => 'Server to start, either `auto`, `rack`, `jasmine_gem` or `none`'
27
+ :desc => 'Server to start, either `auto`, `webrick`, `mongrel`, `thin`, `jasmine_gem` or `none`'
28
28
 
29
29
  method_option :port,
30
30
  :type => :numeric,
@@ -28,12 +28,6 @@ module Guard
28
28
  paths
29
29
  end
30
30
 
31
- # Clears the list of Jasmine specs in this project.
32
- #
33
- def clear
34
- @jasmine_specs = nil
35
- end
36
-
37
31
  private
38
32
 
39
33
  # Tests if the file is valid.
@@ -42,18 +36,7 @@ module Guard
42
36
  # @return [Boolean] when the file valid
43
37
  #
44
38
  def jasmine_spec?(path)
45
- jasmine_specs.include?(path)
46
- end
47
-
48
- # Scans the project and keeps a list of all
49
- # JavaScript and CoffeeScript files in the `spec`
50
- # directory.
51
- #
52
- # @see .clear
53
- # @return [Array<String>] the valid files
54
- #
55
- def jasmine_specs
56
- @jasmine_specs ||= Dir.glob('spec/**/*_spec.{js,coffee,js.coffee}')
39
+ path =~ /_spec\.(js|coffee|js\.coffee)$/ && File.exists?(path)
57
40
  end
58
41
 
59
42
  end
@@ -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 = '0.9.5'
4
+ VERSION = '0.9.6'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,135 +1,175 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: guard-jasmine
3
- version: !ruby/object:Gem::Version
4
- version: 0.9.5
3
+ version: !ruby/object:Gem::Version
4
+ hash: 55
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 9
9
+ - 6
10
+ version: 0.9.6
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Michael Kessler
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-01-12 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-01-24 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: guard
16
- requirement: &70228313277820 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 57
29
+ segments:
30
+ - 0
31
+ - 8
32
+ - 3
21
33
  version: 0.8.3
22
34
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70228313277820
25
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
26
37
  name: multi_json
27
- requirement: &70228313277360 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
28
40
  none: false
29
- requirements:
30
- - - ~>
31
- - !ruby/object:Gem::Version
32
- version: 1.0.3
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
33
48
  type: :runtime
34
- prerelease: false
35
- version_requirements: *70228313277360
36
- - !ruby/object:Gem::Dependency
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
37
51
  name: childprocess
38
- requirement: &70228313276900 !ruby/object:Gem::Requirement
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
39
54
  none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- version: 0.2.8
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
44
62
  type: :runtime
45
- prerelease: false
46
- version_requirements: *70228313276900
47
- - !ruby/object:Gem::Dependency
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
48
65
  name: thor
49
- requirement: &70228313276500 !ruby/object:Gem::Requirement
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
50
68
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
55
76
  type: :runtime
56
- prerelease: false
57
- version_requirements: *70228313276500
58
- - !ruby/object:Gem::Dependency
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
59
79
  name: bundler
60
- requirement: &70228313275940 !ruby/object:Gem::Requirement
80
+ prerelease: false
81
+ requirement: &id005 !ruby/object:Gem::Requirement
61
82
  none: false
62
- requirements:
63
- - - ~>
64
- - !ruby/object:Gem::Version
65
- version: '1.0'
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
66
90
  type: :development
67
- prerelease: false
68
- version_requirements: *70228313275940
69
- - !ruby/object:Gem::Dependency
91
+ version_requirements: *id005
92
+ - !ruby/object:Gem::Dependency
70
93
  name: guard-rspec
71
- requirement: &70228313275440 !ruby/object:Gem::Requirement
94
+ prerelease: false
95
+ requirement: &id006 !ruby/object:Gem::Requirement
72
96
  none: false
73
- requirements:
74
- - - ~>
75
- - !ruby/object:Gem::Version
76
- version: '0.6'
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ hash: 3
101
+ segments:
102
+ - 0
103
+ version: "0"
77
104
  type: :development
78
- prerelease: false
79
- version_requirements: *70228313275440
80
- - !ruby/object:Gem::Dependency
105
+ version_requirements: *id006
106
+ - !ruby/object:Gem::Dependency
81
107
  name: rspec
82
- requirement: &70228313274920 !ruby/object:Gem::Requirement
108
+ prerelease: false
109
+ requirement: &id007 !ruby/object:Gem::Requirement
83
110
  none: false
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- version: '2.8'
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ hash: 3
115
+ segments:
116
+ - 0
117
+ version: "0"
88
118
  type: :development
89
- prerelease: false
90
- version_requirements: *70228313274920
91
- - !ruby/object:Gem::Dependency
119
+ version_requirements: *id007
120
+ - !ruby/object:Gem::Dependency
92
121
  name: yard
93
- requirement: &70228313274080 !ruby/object:Gem::Requirement
122
+ prerelease: false
123
+ requirement: &id008 !ruby/object:Gem::Requirement
94
124
  none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
130
+ - 0
131
+ version: "0"
99
132
  type: :development
100
- prerelease: false
101
- version_requirements: *70228313274080
102
- - !ruby/object:Gem::Dependency
133
+ version_requirements: *id008
134
+ - !ruby/object:Gem::Dependency
103
135
  name: redcarpet
104
- requirement: &70228313273200 !ruby/object:Gem::Requirement
136
+ prerelease: false
137
+ requirement: &id009 !ruby/object:Gem::Requirement
105
138
  none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ hash: 3
143
+ segments:
144
+ - 0
145
+ version: "0"
110
146
  type: :development
111
- prerelease: false
112
- version_requirements: *70228313273200
113
- - !ruby/object:Gem::Dependency
147
+ version_requirements: *id009
148
+ - !ruby/object:Gem::Dependency
114
149
  name: pry
115
- requirement: &70228313272520 !ruby/object:Gem::Requirement
150
+ prerelease: false
151
+ requirement: &id010 !ruby/object:Gem::Requirement
116
152
  none: false
117
- requirements:
118
- - - ! '>='
119
- - !ruby/object:Gem::Version
120
- version: '0'
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ hash: 3
157
+ segments:
158
+ - 0
159
+ version: "0"
121
160
  type: :development
122
- prerelease: false
123
- version_requirements: *70228313272520
161
+ version_requirements: *id010
124
162
  description: Guard::Jasmine automatically tests your Jasmine specs on PhantomJS
125
- email:
163
+ email:
126
164
  - michi@netzpiraten.ch
127
- executables:
165
+ executables:
128
166
  - guard-jasmine
129
167
  - guard-jasmine-debug
130
168
  extensions: []
169
+
131
170
  extra_rdoc_files: []
132
- files:
171
+
172
+ files:
133
173
  - bin/guard-jasmine
134
174
  - bin/guard-jasmine-debug
135
175
  - lib/guard/jasmine/cli.rb
@@ -152,27 +192,39 @@ files:
152
192
  - README.md
153
193
  homepage: https://github.com/netzpirat/guard-jasmine
154
194
  licenses: []
195
+
155
196
  post_install_message:
156
197
  rdoc_options: []
157
- require_paths:
198
+
199
+ require_paths:
158
200
  - lib
159
- required_ruby_version: !ruby/object:Gem::Requirement
201
+ required_ruby_version: !ruby/object:Gem::Requirement
160
202
  none: false
161
- requirements:
162
- - - ! '>='
163
- - !ruby/object:Gem::Version
164
- version: '0'
165
- required_rubygems_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ hash: 3
207
+ segments:
208
+ - 0
209
+ version: "0"
210
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
211
  none: false
167
- requirements:
168
- - - ! '>='
169
- - !ruby/object:Gem::Version
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ hash: 23
216
+ segments:
217
+ - 1
218
+ - 3
219
+ - 6
170
220
  version: 1.3.6
171
221
  requirements: []
222
+
172
223
  rubyforge_project: guard-jasmine
173
224
  rubygems_version: 1.8.10
174
225
  signing_key:
175
226
  specification_version: 3
176
227
  summary: Guard gem for headless testing with Jasmine
177
228
  test_files: []
229
+
178
230
  has_rdoc: