guard-jasmine 0.9.12 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -212,10 +212,12 @@ end
212
212
  The general options configures the environment that is needed to run Guard::Jasmine:
213
213
 
214
214
  ```ruby
215
- :server => :jasmine_gem # Jasmine server to use, either :auto, :none, :webrick, :mongrel, :thin, :jasmine_gem
215
+ :server => :jasmine_gem # Jasmine server to use, either :auto, :none,
216
+ # :webrick, :mongrel, :thin, :jasmine_gem
216
217
  # default: :auto
217
218
 
218
- :server_env => :test # Jasmine server Rails environment to set, e.g. :development or :test
219
+ :server_env => :test # Jasmine server Rails environment to set,
220
+ # e.g. :development or :test
219
221
  # default: :development
220
222
 
221
223
  :port => 9292 # Jasmine server port to use.
@@ -233,6 +235,9 @@ If you're setting the `:server` option to `:none`, you can supply the Jasmine ru
233
235
  ```ruby
234
236
  :jasmine_url => 'http://192.168.1.5/jasmine' # URL where Jasmine is served.
235
237
  # default: http://127.0.0.1:8888/jasmine
238
+
239
+ :clean => false # Clean the spec list by only keep Jasmine specs within the project.
240
+ # default: true
236
241
  ```
237
242
 
238
243
  Detecting the server with the `auto` option does only detect the jasmine gem or webrick. If you want to use mongrel or
@@ -242,6 +247,10 @@ The reason why the Server environment is set to `development` by default is that
242
247
  the asset pipeline doesn't concatenate the JavaScripts and you'll see the line number in the real file,
243
248
  instead of a ridiculous high line number in a single, very large JavaScript.
244
249
 
250
+ In general you want to leave the `:clean` flag on, which ensures that only Jasmine specs (files ending with `_spec.js`,
251
+ `_spec.coffee` and `_spec.js.coffee` inside your project are passed to the runner. If you have a custom project
252
+ structure or spec naming convention, you can set `:clean` to false to skip that file filter.
253
+
245
254
  ### Spec runner options
246
255
 
247
256
  The spec runner options configures the behavior driven development (or BDD) cycle:
@@ -253,7 +262,8 @@ The spec runner options configures the behavior driven development (or BDD) cycl
253
262
  :keep_failed => false # Keep failed suites and add them to the next run again.
254
263
  # default: true
255
264
 
256
- :all_after_pass => false # Run all suites after a suite has passed again after failing.
265
+ :all_after_pass => false # Run all suites after a suite has passed again
266
+ # after failing.
257
267
  # default: true
258
268
  ```
259
269
 
@@ -267,13 +277,16 @@ Guard::Jasmine can generate an RSpec like specdoc in the console after running t
267
277
  be shown in the console:
268
278
 
269
279
  ```ruby
270
- :specdoc => :always # Specdoc output options, either :always, :never or :failure
280
+ :specdoc => :always # Specdoc output options,
281
+ # either :always, :never or :failure
271
282
  # default: :failure
272
283
 
273
- :focus => false # Specdoc focus to hide successful specs when at least one spec fails.
284
+ :focus => false # Specdoc focus to hide successful specs when
285
+ # at least one spec fails.
274
286
  # default: true
275
287
 
276
- :console => :always # Console.log output options, either :always, :never or :failure
288
+ :console => :always # Console.log output options,
289
+ # either :always, :never or :failure
277
290
  # default: :failure
278
291
  ```
279
292
 
@@ -351,7 +364,8 @@ Usage:
351
364
  guard-jasmine spec
352
365
 
353
366
  Options:
354
- -s, [--server=SERVER] # Server to start, either `auto`, `none`, `webrick`, `mongrel`, `thin`, `jasmine_gem`
367
+ -s, [--server=SERVER] # Server to start, either `auto`, `none`, `webrick`, `mongrel`,
368
+ # `thin`, `jasmine_gem`
355
369
  # Default: auto
356
370
  -p, [--port=N] # Server port to use
357
371
  # Default: 8888
@@ -359,11 +373,13 @@ Options:
359
373
  # Default: http://localhost:8888/jasmine
360
374
  -b, [--bin=BIN] # The location of the PhantomJS binary
361
375
  # Default: /usr/local/bin/phantomjs
362
- -t, [--timeout=N] # The maximum time in milliseconds to wait for the spec runner to finish
376
+ -t, [--timeout=N] # The maximum time in milliseconds to wait
377
+ # for the spec runner to finish
363
378
  # Default: 10000
364
- -c, [--console=CONSOLE] # Whether to show console.log statements in the spec runner, either `always`, `never` or `failure`
379
+ -c, [--console=CONSOLE] # Whether to show console.log statements in the spec runner,
380
+ # either `always`, `never` or `failure`
365
381
  # Default: failure
366
- -e, [--server-env=SERVER_ENV] # The server environment to use, for example `development`, `test` etc.
382
+ -e, [--server-env=SERVER_ENV] # The server environment to use, for example `development`, `test`
367
383
  # Default: test
368
384
 
369
385
  Run the Jasmine spec runner
@@ -485,12 +501,7 @@ $ guard-jasmine-debug http://127.0.0.1:3000/Jasmine?spec=YourSpec
485
501
  ```
486
502
  ## Contributors
487
503
 
488
- * [Aaron Pfeifer](https://github.com/obrie)
489
- * [Damien Mathieu](https://github.com/dmathieu)
490
- * [David Cuddeback](https://github.com/dcuddeback)
491
- * [Dmytrii Nagirniak](https://github.com/dnagir)
492
- * [Mark Dodwell](https://github.com/mkdynamic)
493
- * [Rémy Coutable](https://github.com/rymai)
504
+ See the the GitHub list of [contributors](https://github.com/netzpirat/haml_coffee_assets/contributors).
494
505
 
495
506
  ## Acknowledgment
496
507
 
@@ -30,6 +30,7 @@ module Guard
30
30
  :hide_success => false,
31
31
  :all_on_start => true,
32
32
  :keep_failed => true,
33
+ :clean => true,
33
34
  :all_after_pass => true,
34
35
  :max_error_notify => 3,
35
36
  :specdoc => :failure,
@@ -52,6 +53,7 @@ module Guard
52
53
  # @option options [Integer] :max_error_notify maximum error notifications to show
53
54
  # @option options [Boolean] :all_on_start run all suites on start
54
55
  # @option options [Boolean] :keep_failed keep failed suites and add them to the next run again
56
+ # @option options [Boolean] :clean clean the specs according to rails naming conventions
55
57
  # @option options [Boolean] :all_after_pass run all suites after a suite has passed again after failing
56
58
  # @option options [Symbol] :specdoc options for the specdoc output, either :always, :never or :failure
57
59
  # @option options [Symbol] :console options for the console.log output, either :always, :never or :failure
@@ -123,7 +125,8 @@ module Guard
123
125
  # @raise [:task_has_failed] when run_on_change has failed
124
126
  #
125
127
  def run_on_change(paths)
126
- specs = Inspector.clean(options[:keep_failed] ? paths + self.last_failed_paths : paths)
128
+ specs = options[:keep_failed] ? paths + self.last_failed_paths : paths
129
+ specs = Inspector.clean(specs) if options[:clean]
127
130
  return false if specs.empty?
128
131
 
129
132
  passed, failed_specs = Runner.run(specs, options)
@@ -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.12'
4
+ VERSION = '0.9.13'
5
5
  end
6
6
  end
@@ -151,8 +151,8 @@ x
151
151
  7
152
152
  VERSION
153
153
  s
154
- 5
155
- 0.8.2
154
+ 6
155
+ 0.9.12
156
156
  x
157
157
  9
158
158
  const_set
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: 0.9.12
4
+ version: 0.9.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-21 00:00:00.000000000 Z
12
+ date: 2012-02-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &70104014130840 !ruby/object:Gem::Requirement
16
+ requirement: &70365361675340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70104014130840
24
+ version_requirements: *70365361675340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: multi_json
27
- requirement: &70104014129980 !ruby/object:Gem::Requirement
27
+ requirement: &70365361674960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70104014129980
35
+ version_requirements: *70365361674960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: childprocess
38
- requirement: &70104014150260 !ruby/object:Gem::Requirement
38
+ requirement: &70365361674500 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70104014150260
46
+ version_requirements: *70365361674500
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: thor
49
- requirement: &70104014149080 !ruby/object:Gem::Requirement
49
+ requirement: &70365361674080 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70104014149080
57
+ version_requirements: *70365361674080
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bundler
60
- requirement: &70104014148420 !ruby/object:Gem::Requirement
60
+ requirement: &70365361673660 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70104014148420
68
+ version_requirements: *70365361673660
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rspec
71
- requirement: &70104014147760 !ruby/object:Gem::Requirement
71
+ requirement: &70365361673240 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70104014147760
79
+ version_requirements: *70365361673240
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rspec
82
- requirement: &70104014147140 !ruby/object:Gem::Requirement
82
+ requirement: &70365361703020 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70104014147140
90
+ version_requirements: *70365361703020
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: yard
93
- requirement: &70104014146440 !ruby/object:Gem::Requirement
93
+ requirement: &70365361702600 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70104014146440
101
+ version_requirements: *70365361702600
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: redcarpet
104
- requirement: &70104014145800 !ruby/object:Gem::Requirement
104
+ requirement: &70365361702180 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70104014145800
112
+ version_requirements: *70365361702180
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: pry
115
- requirement: &70104014145160 !ruby/object:Gem::Requirement
115
+ requirement: &70365361701760 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,7 +120,7 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70104014145160
123
+ version_requirements: *70365361701760
124
124
  description: Guard::Jasmine automatically tests your Jasmine specs on PhantomJS
125
125
  email:
126
126
  - michi@netzpiraten.ch
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: 1.3.6
173
173
  requirements: []
174
174
  rubyforge_project: guard-jasmine
175
- rubygems_version: 1.8.10
175
+ rubygems_version: 1.8.17
176
176
  signing_key:
177
177
  specification_version: 3
178
178
  summary: Guard gem for headless testing with Jasmine