guard-jasmine 1.15.0 → 1.15.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35f755fd7988fb41009cc1377514706c7d2d8700
4
- data.tar.gz: 2d67d8daefc22be085e6d883778766a8e10e1795
3
+ metadata.gz: bca4b769bafa5bfe03973a17312eb2a18afebea1
4
+ data.tar.gz: ae5294a61eaf4f7c5c9694a160a316a66c315ed4
5
5
  SHA512:
6
- metadata.gz: a563757370395d7a09befdea85915bebcbff02c4fda5d0244894ea0b86b29a2f0dc85c74e3d558b7a1c83d246a4d45040540f7f1dfa43cd5212c103a5beddd5e
7
- data.tar.gz: 9433f80970d0d1a4b6347c15e0b580658ed2bd4939db6bb157ef538c62eff82ab125294807852c7938e5221a1702db8250e11380a4c373261a6f48a36875b868
6
+ metadata.gz: c75ad5d7f77540d49efd89755a8d7cd7c9c1170bbec5ee1b3f5fac6055874706b956e967e221c1f5f98ca3adf1be144c985535e3e148e03c3f3def5056c4e0f0
7
+ data.tar.gz: e4f29f936ca7da08c65b4ba2f7f933105dcf1bc60593a79fba941df2d97df8a0183b663ab104fd7d7d459f306d44e3ecc3ad25e4ad34135c387974c019d79760
data/README.md CHANGED
@@ -563,6 +563,20 @@ execute a partial spec run it reports a lower coverage for the excluded files, s
563
563
  Guard::Jasmine tries to work around this by merge only the coverage data for the changed files (Istanbul knows the file
564
564
  name in opposite to Jasmine).
565
565
 
566
+ #### Jenkins CI integration
567
+
568
+ You can use the Cobertura format to bring coverage support to Jenkins CI, even that Guard::Jasmine has no built in
569
+ support for it. The trick is to preprocess the coverage data with istanbul after the spec run:
570
+
571
+ ```ruby
572
+ desc "Run all JavaScript specs with Istanbul"
573
+ task :jscov => :environment do
574
+ # Run Jasmine tests with code coverage on and generate Jenkins-compatible Jasmine code coverage
575
+ # report file. For some reason does not work if run as 2 separate exec's, so combine into one.
576
+ exec('guard-jasmine --coverage --coverage-html --coverage-summary; istanbul report cobertura')
577
+ end
578
+ ```
579
+
566
580
  ### System notifications options
567
581
 
568
582
  These options affects what system notifications are shown after a spec run:
@@ -39,9 +39,9 @@ page.onConsoleMessage = (msg, line, source) ->
39
39
 
40
40
  else if /^SPEC_START: (\d+)$/.test(msg)
41
41
  currentSpecId = Number(RegExp.$1)
42
- logs[currentSpecId] = []
43
42
 
44
43
  else
44
+ logs[currentSpecId] ||= []
45
45
  logs[currentSpecId].push(msg)
46
46
 
47
47
  # Initialize the page before the JavaScript is run.
@@ -68,7 +68,7 @@ page.open options.url, (status) ->
68
68
  phantom.exit()
69
69
  else
70
70
  runnerAvailable = page.evaluate -> window.jasmine
71
-
71
+
72
72
  if runnerAvailable
73
73
  done = -> phantom.exit()
74
74
  waitFor specsReady, done, options.timeout
@@ -1,4 +1,3 @@
1
- // Generated by CoffeeScript 1.3.3
2
1
  (function() {
3
2
  var currentSpecId, errors, logs, options, page, specsReady, waitFor;
4
3
 
@@ -42,9 +41,9 @@
42
41
  return window.resultReceived = true;
43
42
  });
44
43
  } else if (/^SPEC_START: (\d+)$/.test(msg)) {
45
- currentSpecId = Number(RegExp.$1);
46
- return logs[currentSpecId] = [];
44
+ return currentSpecId = Number(RegExp.$1);
47
45
  } else {
46
+ logs[currentSpecId] || (logs[currentSpecId] = []);
48
47
  return logs[currentSpecId].push(msg);
49
48
  }
50
49
  };
@@ -60,7 +60,7 @@ module Guard
60
60
  #
61
61
  def detect_server(spec_dir)
62
62
  if File.exists?('config.ru')
63
- %w(unicorn thin mongrel).each do |server|
63
+ %w(unicorn thin mongrel puma).each do |server|
64
64
  begin
65
65
  require server
66
66
  return server.to_sym
@@ -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 = '1.15.0'
4
+ VERSION = '1.15.1'
5
5
  end
6
6
  end
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.15.0
4
+ version: 1.15.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: 2013-04-08 00:00:00.000000000 Z
11
+ date: 2013-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard