codeclimate-services 1.9.6 → 1.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/codeclimate-services.gemspec +1 -1
- data/lib/cc/service/http.rb +2 -1
- data/lib/cc/services/version.rb +1 -1
- data/spec/cc/service/jira_spec.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d335e785112de10c1ca27413100d2624c373f911
|
4
|
+
data.tar.gz: b66f6c1ca29ec76b6e5d951e8e024fa560990568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eca2b1994c1d9916108a743faff0dd4f16e754f2554d70fb42ffff73259a36565e36ff7412621dcc1a615bdb81367860bcecab4a0042f2f4b826850905610609
|
7
|
+
data.tar.gz: 50fca613d93497132f2b79c2ccb3ced9dc6cd323df1d26a9626b5331e67b7961d74f6beb885d6ae9b7400660e3455dc2bad08cc0bf7b6ceddfdc33b605de762a
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.add_dependency "faraday", "~> 0.8"
|
21
21
|
spec.add_dependency "virtus", "~> 1.0.0"
|
22
|
-
spec.add_dependency "nokogiri", "~> 1.6
|
22
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
23
23
|
spec.add_dependency "activemodel", ">= 3.0"
|
24
24
|
spec.add_dependency "activesupport", ">= 3.0"
|
25
25
|
spec.add_development_dependency "bundler", ">= 1.6.2"
|
data/lib/cc/service/http.rb
CHANGED
@@ -77,11 +77,12 @@ module CC::Service::HTTP
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
options[:ssl][:ca_file] ||= ca_file
|
80
|
+
adapters = Array(options.delete(:adapter) || config[:adapter])
|
80
81
|
|
81
82
|
Faraday.new(options) do |b|
|
82
83
|
b.use(CC::Service::ResponseCheck)
|
83
84
|
b.request(:url_encoded)
|
84
|
-
b.adapter(*
|
85
|
+
b.adapter(*adapters)
|
85
86
|
end
|
86
87
|
end
|
87
88
|
end
|
data/lib/cc/services/version.rb
CHANGED
@@ -45,7 +45,7 @@ describe CC::Service::Jira, type: :service do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
it "receive test" do
|
48
|
-
http_stubs.post "/rest/api/2/issue" do |_env|
|
48
|
+
http_stubs.post "/rest/api/2/issue/" do |_env|
|
49
49
|
[200, {}, '{"id": 12345, "key": "CC-123", "self": "http://foo.bar"}']
|
50
50
|
end
|
51
51
|
|
@@ -57,7 +57,7 @@ describe CC::Service::Jira, type: :service do
|
|
57
57
|
private
|
58
58
|
|
59
59
|
def assert_jira_receives(event_data, title, ticket_body)
|
60
|
-
http_stubs.post "/rest/api/2/issue" do |env|
|
60
|
+
http_stubs.post "/rest/api/2/issue/" do |env|
|
61
61
|
body = JSON.parse(env[:body])
|
62
62
|
expect(env[:request_headers]["Authorization"]).to eq("Basic Zm9vOmJhcg==")
|
63
63
|
expect(body["fields"]["summary"]).to eq(title)
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Helmkamp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.6
|
47
|
+
version: '1.6'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.6
|
54
|
+
version: '1.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activemodel
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
238
|
rubyforge_project:
|
239
|
-
rubygems_version: 2.6.
|
239
|
+
rubygems_version: 2.6.11
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: Service classes for Code Climate
|