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 +4 -4
- data/Gemfile +1 -1
- data/circle.yml +1 -2
- data/lib/cc/presenters/pull_requests_presenter.rb +1 -1
- data/lib/cc/services/version.rb +1 -1
- data/spec/cc/presenters/pull_requests_presenter_spec.rb +3 -3
- data/spec/cc/service/github_pull_requests_spec.rb +1 -1
- data/spec/cc/service/gitlab_merge_requests_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0da8a809a1d22bffa82ac7e9d0070c18a5dde1cb
|
4
|
+
data.tar.gz: baaf73d0204de17ed77a24f89339b1d912e46bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffdb3821d630ddd2fa8f203c005ec362430d6a0697c6cd29fa93c0c190caf628f40c4f1d5b4442ffa5b552153de267aa6ba85637e678cf6a3894745280a04db8
|
7
|
+
data.tar.gz: 65ad997cc098da3a1abab7ed396b40403ed155c0bad4470aa5d5b9dc72dce6c7a809a0c68ed467a470d6ade61e5a5a4d3bff212f171da50f51567c4cb7d03a9a
|
data/Gemfile
CHANGED
data/circle.yml
CHANGED
@@ -28,7 +28,7 @@ module CC
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def coverage_message
|
31
|
-
message = "#{formatted_percent(@covered_percent)}%
|
31
|
+
message = "#{formatted_percent(@covered_percent)}%"
|
32
32
|
|
33
33
|
if @covered_percent_delta > 0
|
34
34
|
message += " (+#{formatted_percent(@covered_percent_delta)}%)"
|
data/lib/cc/services/version.rb
CHANGED
@@ -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%
|
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%
|
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%
|
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%
|
75
|
+
"description" => "87% (+2%)")
|
76
76
|
|
77
77
|
receive_pull_request_coverage({},
|
78
78
|
github_slug: "pbrisbin/foo",
|
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.
|
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-
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|