jasmine-coverage 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzUzNjU1OTM3ZTQ4MjE1NjU0OWJiYjhjMTk1ZTNkZjBhZjE1ZWNhNQ==
4
+ YmRkYTJmOTAyNTg5MmRhZDA5MjI2OTI3OWE1NDE4ODNjZTMwMmRmNg==
5
5
  data.tar.gz: !binary |-
6
- YjdmZTJlMjI5MDQ2ZjM4MjUyNTIyNjNjNGZjNTkyNWRkNGEyM2Q3Zg==
6
+ N2M1MzIyMTM2NWMyZmE3MDZkZmQxYTVmYzM5MDkzNGY0YTY1NzZmOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzAxMjc0ZTY1ZjIxYmFiZDY5NzFhNjJiNWRiYzJlN2Y1ZGJiOTgyZTVhMzYz
10
- OWEzNWU3MDM2NmQzYmY1ZjlkYzBjYjYwMzI3ZWI4YTYxYjZmODg4ZDgzYTQ3
11
- Nzc2YTA5YjZiMTMzNDE2MjhhMmI5ODlmNmNkZDEyNTk4OTFmYmU=
9
+ NzkzM2U1ZTU1NTU2NjQ2NzdlZmM1YzExNmRiOTI0ODIyNjk1YWJkMmRhZGM4
10
+ MGVhYmExZmVhYjlkYzY4MzhkMWZhNzgzNGNjMDBiYzhkMGQyYzU3MzkyY2Rl
11
+ MDYzMjQ3NjQ4MTU0ODFiYjFkYjA3MWJhMTlkY2IxNzIwMTkxOTU=
12
12
  data.tar.gz: !binary |-
13
- NGM4YmNhYzI3ODMzYjg4YmMzMDU1MjgyNWEyMTJjMmU1ZjUxODlmMzJlMjI3
14
- Y2Y4OTMzYTk5MDFjODMyMzY2ZDRlNGVlN2UwMjZmMThmMGIyOTIzMTY3ODVm
15
- MTA5MWRlNDA3NDc1M2JhMGQwZWMyMDQwZmMzYzkzZDIzNmNjMmQ=
13
+ OGI4ZGZhNzBiNDhjZjI5MjJjYTI0MGU2ZGZlMWZkMTRlOTMwNjZmYzczYmM4
14
+ YzU0Y2FkYmY2OGJkOWZmZTY0YmFhYWUxNjJlMzA2NzUzZjkyZWVhMmE2ZDQ1
15
+ ZjZiNWY5MjZlMmRiODk1NTI3MzM4NDI5ZjFmYjUzYTJmZDU5NTA=
data/README.md CHANGED
@@ -31,6 +31,10 @@ Note, the requirement to have the git branch of the jasmine-headless-webkit gem
31
31
  To use jasmine-coverage, run the rake task.
32
32
 
33
33
  bundle exec rake jasmine:coverage
34
+
35
+ To specify a different path for jasmine config file (by default is 'spec/javascripts/support/jasmine.yml')
36
+
37
+ bundle exec rake jasmine:coverage JASMINE_CONFIG='path/to/jasmine.yml'
34
38
 
35
39
  ## Output
36
40
 
@@ -86,3 +90,9 @@ but since Mac uses Quartz, you may get
86
90
  Xvfb not found on your system
87
91
 
88
92
  To solve that just install XQuartz and add /usr/X11/bin to your PATH (thanks @shell).
93
+
94
+ ## Thanks
95
+
96
+ Thanks to the following for comments and pull requests:
97
+
98
+ @soyellupi
@@ -1,5 +1,5 @@
1
1
  module Jasmine
2
2
  module Coverage
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
@@ -57,12 +57,14 @@ if env =~ /^(development|test)$/
57
57
  raise "There was an error writing to the report file #{rr_file}.\nDo you have permissions to do so?"
58
58
  end
59
59
 
60
- # Run Jasmine using the original config.
61
- status_code = Jasmine::Headless::Runner.run(
62
- # Any options from the options.rb file in jasmine-headless-webkit can be used here.
60
+ # Any options from the options.rb file in jasmine-headless-webkit can be used here.
61
+ runner_options = {
62
+ :reporters => [['Console'], ['File', rr_file]]
63
+ }
64
+
65
+ runner_options.merge!(:jasmine_config => ENV['JASMINE_CONFIG']) if ENV['JASMINE_CONFIG']
63
66
 
64
- :reporters => [['Console'], ['File', rr_file]]
65
- )
67
+ status_code = Jasmine::Headless::Runner.run(runner_options)
66
68
  errStr = <<-EOS
67
69
  **********************************************************************************************
68
70
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-coverage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Lascelles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-28 00:00:00.000000000 Z
11
+ date: 2014-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jasmine-headless-webkit-firstbanco