codeclimate_circle_ci_coverage 0.1.1 → 0.1.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: d8f584c7a50d1ff264fcbf2759e55b34b799ab64
4
- data.tar.gz: 3158b28c4f0bfcc1dbb8fb604f2c9b25bc2ffabd
3
+ metadata.gz: 81448e59e1783df85f0d4d926e0331c5ed14c374
4
+ data.tar.gz: 5dc6b6a985d705cfdf6461fa137cb498dc586ea3
5
5
  SHA512:
6
- metadata.gz: a68023634c3689097f8df36f349c6b9225acc1cdbee500e20171553069e01ed2e3b63da5cade05ff291c5ca7aebc54f55c3ab3408bc05449ea711cbf9b1ce84d
7
- data.tar.gz: 74c0775ea78d9abb4da7b0d2eee02f21ea1013db92fc96402413b461c7c7ef3bf9caa4df497ecbb4d059e9bd53a69c4de6f5bd3c8bb75b73d425d8755a45af20
6
+ metadata.gz: 52ce907092bc0cbc877323f819b8ec94fd4e8e8d97fdfde545290c8e59b59e58c4bd5f30dee57d5463498b951dfe9d990923aad3d865d70d14ad4f57710aae55
7
+ data.tar.gz: 46cb900d9246a256f4ccd1d7858d7d555b435ffb48b1b165fe0b82299b09683b54555fab3f0153df2a588db62991933651d826d6ec17dd1f381bee849ba5bd37
@@ -34,11 +34,11 @@ class CoverageReporter
34
34
  if current_branch != target_branch
35
35
  puts "Current branch #{current_branch} is not the target branch #{target_branch}"
36
36
  puts "No Coverage will be reported"
37
- return false
37
+ return true
38
38
  end
39
39
 
40
40
  # Only run on node0
41
- return false unless current_node.zero?
41
+ return true unless current_node.zero?
42
42
 
43
43
  all_coverage_dir = File.join("all_coverage")
44
44
  download_files(all_coverage_dir)
@@ -1,3 +1,3 @@
1
1
  module CodeclimateCircleCiCoverage
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -4,15 +4,15 @@ describe CoverageReporter do
4
4
  let(:reporter) { described_class.new("master") }
5
5
 
6
6
  describe "#run" do
7
- it "returns false on mismatch branch names" do
7
+ it "returns true on mismatch branch names" do
8
8
  allow(reporter).to receive(:current_branch).and_return("develop")
9
- expect(reporter.run).to be_falsey
9
+ expect(reporter.run).to be_truthy
10
10
  end
11
11
 
12
- it "returns false on incorrect node number" do
12
+ it "returns true on incorrect node number" do
13
13
  allow(reporter).to receive(:current_branch).and_return("master")
14
14
  allow(reporter).to receive(:current_node).and_return(1)
15
- expect(reporter.run).to be_falsey
15
+ expect(reporter.run).to be_truthy
16
16
  end
17
17
 
18
18
  it "returns true when branch and node are correct" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate_circle_ci_coverage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Dunlop
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-01 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codeclimate-test-reporter
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.4.5
132
+ rubygems_version: 2.4.8
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: CodeClimate Code Coverage reporting script for CircleCI