codeclimate-services 1.9.1 → 1.9.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: 0b0ad91d5350b519927b48a92e1f8fc799627813
4
- data.tar.gz: 622aa41d40c4cbfe5b2ce9c9197fec5759f1226b
3
+ metadata.gz: 0da8a809a1d22bffa82ac7e9d0070c18a5dde1cb
4
+ data.tar.gz: baaf73d0204de17ed77a24f89339b1d912e46bed
5
5
  SHA512:
6
- metadata.gz: 3649833ef47b09d719ee72375b83cbfca664522e1f7c8aec90a9678b4a24e00c607efb71a54f78397c6635ce9e21842802420de46dda0cbf1c255644cc0be5b6
7
- data.tar.gz: 8965dc6e356e0e29f964724ca4e53cb38a26ab585e484c36c8a82b8e485cfa4b48c56cb26f34a0ba93540a2b03e178eac187db05f3bb4581103adbb8d8fe1496
6
+ metadata.gz: ffdb3821d630ddd2fa8f203c005ec362430d6a0697c6cd29fa93c0c190caf628f40c4f1d5b4442ffa5b552153de267aa6ba85637e678cf6a3894745280a04db8
7
+ data.tar.gz: 65ad997cc098da3a1abab7ed396b40403ed155c0bad4470aa5d5b9dc72dce6c7a809a0c68ed467a470d6ade61e5a5a4d3bff212f171da50f51567c4cb7d03a9a
data/Gemfile CHANGED
@@ -7,5 +7,5 @@ gem "pry"
7
7
 
8
8
  group :test do
9
9
  gem "simplecov"
10
- gem "codeclimate-test-reporter", "1.0.0.pre.rc2"
10
+ gem "codeclimate-test-reporter", "~> 1.0.0"
11
11
  end
data/circle.yml CHANGED
@@ -1,4 +1,3 @@
1
1
  test:
2
2
  override:
3
- - bundle exec rake
4
- - bundle exec codeclimate-test-reporter
3
+ - bundle exec rake && bundle exec codeclimate-test-reporter
@@ -28,7 +28,7 @@ module CC
28
28
  end
29
29
 
30
30
  def coverage_message
31
- message = "#{formatted_percent(@covered_percent)}% test coverage"
31
+ message = "#{formatted_percent(@covered_percent)}%"
32
32
 
33
33
  if @covered_percent_delta > 0
34
34
  message += " (+#{formatted_percent(@covered_percent_delta)}%)"
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Services
3
- VERSION = "1.9.1".freeze
3
+ VERSION = "1.9.2".freeze
4
4
  end
5
5
  end
@@ -22,15 +22,15 @@ describe CC::Service::PullRequestsPresenter, type: :service do
22
22
  end
23
23
 
24
24
  it "message coverage same" do
25
- expect("85% test coverage").to eq(build_presenter({}, "covered_percent" => 85, "covered_percent_delta" => 0).coverage_message)
25
+ expect("85%").to eq(build_presenter({}, "covered_percent" => 85, "covered_percent_delta" => 0).coverage_message)
26
26
  end
27
27
 
28
28
  it "message coverage up" do
29
- expect("85.5% test coverage (+2.46%)").to eq(build_presenter({}, "covered_percent" => 85.5, "covered_percent_delta" => 2.4567).coverage_message)
29
+ expect("85.5% (+2.46%)").to eq(build_presenter({}, "covered_percent" => 85.5, "covered_percent_delta" => 2.4567).coverage_message)
30
30
  end
31
31
 
32
32
  it "message coverage down" do
33
- expect("85.35% test coverage (-3%)").to eq( build_presenter({}, "covered_percent" => 85.348, "covered_percent_delta" => -3.0).coverage_message)
33
+ expect("85.35% (-3%)").to eq( build_presenter({}, "covered_percent" => 85.348, "covered_percent_delta" => -3.0).coverage_message)
34
34
  end
35
35
 
36
36
  private
@@ -72,7 +72,7 @@ describe CC::Service::GitHubPullRequests, type: :service do
72
72
 
73
73
  it "pull request coverage status" do
74
74
  expect_status_update("pbrisbin/foo", "abc123", "state" => "success",
75
- "description" => "87% test coverage (+2%)")
75
+ "description" => "87% (+2%)")
76
76
 
77
77
  receive_pull_request_coverage({},
78
78
  github_slug: "pbrisbin/foo",
@@ -102,7 +102,7 @@ describe CC::Service::GitlabMergeRequests, type: :service do
102
102
  "hal/hal9000",
103
103
  "abc123",
104
104
  "state" => "success",
105
- "description" => "87% test coverage (+2%)",
105
+ "description" => "87% (+2%)",
106
106
  )
107
107
 
108
108
  receive_merge_request_coverage(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Helmkamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-01 00:00:00.000000000 Z
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday