guard-jasmine 1.19.0 → 1.19.1
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.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/guard/jasmine/cli.rb +6 -0
- data/lib/guard/jasmine/coverage.rb +1 -0
- data/lib/guard/jasmine/server.rb +1 -0
- data/lib/guard/jasmine/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a91b707d10d326b48cf58bb9fe61290967ad5d85
|
4
|
+
data.tar.gz: f86bfed772ad014c93f6a5c51f82b5f4de721aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0f0387b7d79565b9c6c3fd5a2c08d79f13b26bd470a9f3be6e5933c2fff98bfcaf31927cbaf4ecce7132223baa328fdc952e55edef632048be2490d98df24c6
|
7
|
+
data.tar.gz: b612fad3e2560800de2ba22d8d89aa38b1c7cee2a4cd06a5c9c8e470aaa02fef58d1198eb81fd73a834efc4fc9569404d3942ea37ed463c5e70edf7f377f170b
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Guard::Jasmine automatically tests your Jasmine specs when files are modified.
|
4
4
|
|
5
|
-
Tested on MRI Ruby 1.9.3, 2.0.0 and the latest
|
5
|
+
Tested on MRI Ruby 1.9.3, 2.0.0, 2.0.1 and the latest versions of JRuby and Rubinius.
|
6
6
|
|
7
7
|
If you have any questions please join us on our [Google group](http://groups.google.com/group/guard-dev) or on `#guard`
|
8
8
|
(irc.freenode.net).
|
@@ -307,7 +307,7 @@ require 'jquery-rails'
|
|
307
307
|
|
308
308
|
class JasmineTest < Rails::Application
|
309
309
|
routes.append do
|
310
|
-
mount Jasminerice::Engine: '/jasmine'
|
310
|
+
mount Jasminerice::Engine, at: '/jasmine'
|
311
311
|
end
|
312
312
|
|
313
313
|
config.cache_classes = true
|
@@ -582,6 +582,9 @@ coverage_html_dir: './coverage' # Directory to write Istanbul HTML
|
|
582
582
|
|
583
583
|
coverage_summary: true # Enable Istanbul summary coverage report
|
584
584
|
# default: false
|
585
|
+
|
586
|
+
ignore_instrumentation: 'vendor' # Ignore files matching this regex when instrumenting
|
587
|
+
# default: ''
|
585
588
|
```
|
586
589
|
|
587
590
|
The `:coverage_summary` options disables the detailed file based coverage report by a small summary coverage report.
|
@@ -861,7 +864,7 @@ $ guard-jasmine-debug http://127.0.0.1:3000/Jasmine?spec=YourSpec
|
|
861
864
|
|
862
865
|
## Author
|
863
866
|
|
864
|
-
Developed by Michael Kessler, sponsored by [
|
867
|
+
Developed by Michael Kessler, sponsored by [FlinkFinger](http://www.flinkfinger.com).
|
865
868
|
|
866
869
|
If you like Guard::Jasmine, you can watch the repository at [GitHub](https://github.com/netzpirat/guard-jasmine) and
|
867
870
|
follow [@netzpirat](https://twitter.com/#!/netzpirat) on Twitter for project updates.
|
data/lib/guard/jasmine/cli.rb
CHANGED
@@ -127,6 +127,11 @@ module Guard
|
|
127
127
|
default: false,
|
128
128
|
desc: 'Whether to generate html coverage summary. Implies --coverage'
|
129
129
|
|
130
|
+
method_option :ignore_instrumentation,
|
131
|
+
type: :string,
|
132
|
+
default: "",
|
133
|
+
desc: 'Files matching this regex will not be instrumented (e.g. vendor)'
|
134
|
+
|
130
135
|
method_option :statements_threshold,
|
131
136
|
type: :numeric,
|
132
137
|
default: 0,
|
@@ -189,6 +194,7 @@ module Guard
|
|
189
194
|
runner_options[:coverage_html] = options.coverage_html || options.coverage_html_dir != "./coverage"
|
190
195
|
runner_options[:coverage_html_dir] = options.coverage_html_dir
|
191
196
|
runner_options[:coverage_summary] = options.coverage_summary
|
197
|
+
runner_options[:ignore_instrumentation] = options.ignore_instrumentation
|
192
198
|
runner_options[:statements_threshold] = options.statements_threshold
|
193
199
|
runner_options[:functions_threshold] = options.functions_threshold
|
194
200
|
runner_options[:branches_threshold] = options.branches_threshold
|
@@ -16,6 +16,7 @@ class JasmineCoverage < Tilt::Template
|
|
16
16
|
# Returns a coverage instrumented JavaScript file
|
17
17
|
#
|
18
18
|
def evaluate(context, locals)
|
19
|
+
return data if !ENV['IGNORE_INSTRUMENTATION'].to_s.empty? && file =~ Regexp.new(ENV['IGNORE_INSTRUMENTATION'])
|
19
20
|
return data unless JasmineCoverage.coverage_bin
|
20
21
|
return data unless file.include?(JasmineCoverage.app_asset_path)
|
21
22
|
|
data/lib/guard/jasmine/server.rb
CHANGED
@@ -98,6 +98,7 @@ module Guard
|
|
98
98
|
|
99
99
|
self.process = ChildProcess.build(*['rackup', '-E', environment.to_s, '-p', port.to_s, '-s', server.to_s, rackup_config].compact)
|
100
100
|
self.process.environment['COVERAGE'] = options[:coverage].to_s
|
101
|
+
self.process.environment['IGNORE_INSTRUMENTATION'] = options[:ignore_instrumentation].to_s
|
101
102
|
self.process.io.inherit! if options[:verbose]
|
102
103
|
self.process.start
|
103
104
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.19.
|
4
|
+
version: 1.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kessler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -96,15 +96,18 @@ dependencies:
|
|
96
96
|
version: '0'
|
97
97
|
description: Guard::Jasmine automatically tests your Jasmine specs on PhantomJS
|
98
98
|
email:
|
99
|
-
- michi@
|
99
|
+
- michi@flinkfinger.com
|
100
100
|
executables:
|
101
101
|
- guard-jasmine
|
102
102
|
- guard-jasmine-debug
|
103
103
|
extensions: []
|
104
104
|
extra_rdoc_files: []
|
105
105
|
files:
|
106
|
+
- LICENSE
|
107
|
+
- README.md
|
106
108
|
- bin/guard-jasmine
|
107
109
|
- bin/guard-jasmine-debug
|
110
|
+
- lib/guard/jasmine.rb
|
108
111
|
- lib/guard/jasmine/cli.rb
|
109
112
|
- lib/guard/jasmine/coverage.rb
|
110
113
|
- lib/guard/jasmine/formatter.rb
|
@@ -127,9 +130,6 @@ files:
|
|
127
130
|
- lib/guard/jasmine/templates/Guardfile
|
128
131
|
- lib/guard/jasmine/util.rb
|
129
132
|
- lib/guard/jasmine/version.rb
|
130
|
-
- lib/guard/jasmine.rb
|
131
|
-
- LICENSE
|
132
|
-
- README.md
|
133
133
|
homepage: https://github.com/netzpirat/guard-jasmine
|
134
134
|
licenses:
|
135
135
|
- MIT
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: 1.3.6
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project: guard-jasmine
|
153
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.2.2
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Guard gem for headless testing with Jasmine
|