cog-rb 0.1.8 → 0.1.9

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: cfbec067ba8183a32d93d968ddbedf8a376b14ec
4
- data.tar.gz: ec8eeb19ed5ad46b89c6a184746dc6dac131451c
3
+ metadata.gz: 67d0295a890954530cbac2c15df2fb4b5ee8bb85
4
+ data.tar.gz: 053d44f20a2c1c663f3a19b9a006b7acc9f29415
5
5
  SHA512:
6
- metadata.gz: 4a84cadda6d873f648ecf7858c8208ccd01381fd1b93dda6a9e0aa95f59fc1202297084a30273f6eb9f3c031c25714df95e829596ed8b94216795385de8d3aee
7
- data.tar.gz: f989fc111a1c9d3767573e2fbe7a4ac4f1fe53d169b5f52a344236f679a4cea6a6fc04045e534150a243115587061f8ff969610cba674bdbf671975be3ce3ec2
6
+ metadata.gz: 91186b497016b77271738d9e580d71fac6892530712f5104a1b5de4f9e90ae8efded243691a89f76e023aa21f6de3f8f36a39f42648f9f38fef7b93b941aae9c
7
+ data.tar.gz: 0d841cf81083b7baaaaae54ccd9187f76fc370a6e0e523f9ed9d68005a2dd26484222f703460dd66d9b23414d3aa0b76d107a27b02bc8587072e46d33e8dfe24
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.9
2
+
3
+ * Fix service calls for SSL enabled Cog.
4
+
1
5
  ## 0.1.6
2
6
 
3
7
  * `Cog::Response`: Fix log level validation to allow logging to more than `INFO`. [#1]
data/lib/cog/service.rb CHANGED
@@ -32,7 +32,8 @@ class Cog
32
32
 
33
33
  def get(path=nil)
34
34
  uri = uri_for(path)
35
- res = Net::HTTP.start(uri.host, uri.port) do |http|
35
+ res = Net::HTTP.start(uri.host, uri.port,
36
+ :use_ssl => uri.scheme == 'https') do |http|
36
37
  req = Net::HTTP::Get.new(uri)
37
38
  headers.each { |k,v| req[k] = v }
38
39
  http.request(req)
@@ -61,7 +62,8 @@ class Cog
61
62
  req = http_class.new(uri, headers)
62
63
  req.body = data
63
64
 
64
- res = Net::HTTP.start(uri.host, uri.port) do |http|
65
+ res = Net::HTTP.start(uri.host, uri.port,
66
+ :use_ssl => uri.scheme == 'https') do |http|
65
67
  http.request(req)
66
68
  end
67
69
  end
data/lib/cog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Cog
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cog-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Imbriaco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.5.1
80
+ rubygems_version: 2.4.5.1
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Cog command helper library