race_condition-rspec 0.0.1 → 0.0.2

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: 803501ed2014f25a5ab808cdcf07619d2af2456d
4
- data.tar.gz: 109b29242896d4503ee0beb6bd9ec6ae80e00782
3
+ metadata.gz: 3c89ff25f7b87b8e5ee1fb2c65b4f0256e3648a1
4
+ data.tar.gz: 73cbccf0e28c187af9e7ec9b2296b19ef90eb07d
5
5
  SHA512:
6
- metadata.gz: d4d19035ebe1830ef7c4514fdfe72cf3cecee796d684f05a425657c2011be3bea77c5bc7b3c40727d25ddd6a39f429906a6ee6f7b6b064a372007324f2eac166
7
- data.tar.gz: c4d7c4ea43f57bbd1e128c6d9d82127d97d033604746b30b1ada520f338c35381d910657c2ce625d178668d026385babc9786aeee5efdec63e5bf9fdb8d4cb75
6
+ metadata.gz: 403bce6f57a946e8865b51ac7fa281d1177e2d5307a3c9148a3404d8449b8976cb78829e7dd2008640e78e0e95585092befbeb18d83234ba6a9992ab2e9d698d
7
+ data.tar.gz: 106beee3b108f41eca59b6b6a1cc91e0ba0c30f717af131c5e1c6a5b484d916bba5a57ee21b5c50319da9d4f5b83ec293cbfb696fc3eaa0d60538b476b22b055
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ tmp
21
21
  *.o
22
22
  *.a
23
23
  mkmf.log
24
+ vendor
data/README.md CHANGED
@@ -6,15 +6,12 @@ RSpec client for sending test suite results to RaceCondition.
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'race_condition-rspec'
9
+ gem 'race_condition-rspec', require: false
10
10
 
11
11
  And then execute:
12
12
 
13
13
  $ bundle
14
14
 
15
- Or install it yourself as:
16
-
17
- $ gem install race_condition-rspec
18
15
 
19
16
  ## Usage
20
17
 
@@ -20,15 +20,19 @@ module RaceCondition
20
20
  @report.pending_examples << example
21
21
  end
22
22
 
23
- def dump_summary(duration, example_count, failure_count, pending_count)
24
- @report.duration = duration
23
+ def dump_summary(*args)
24
+ if Gem::Version.new(::RSpec::Core::Version::STRING).release >= Gem::Version.new('3.0.0')
25
+ @report.duration = args.first.duration
26
+ else
27
+ @report.duration = args.first
28
+ end
25
29
  end
26
30
 
27
31
  def seed(seed)
28
32
  @report.seed = seed
29
33
  end
30
34
 
31
- def close
35
+ def close(*args)
32
36
  @report.broadcast!
33
37
  end
34
38
  end
@@ -52,6 +52,10 @@ module RaceCondition
52
52
  end
53
53
 
54
54
  def map_to_data_hash(example)
55
+ if Gem::Version.new(::RSpec::Core::Version::STRING).release >= Gem::Version.new('3.0.0')
56
+ example = example.example
57
+ end
58
+
55
59
  data = example.execution_result.merge({
56
60
  description: example.description,
57
61
  full_description: example.full_description,
@@ -1,5 +1,5 @@
1
1
  module RaceCondition
2
2
  module Rspec
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: race_condition-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Boland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-29 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api_smith