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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/cog/service.rb +4 -2
- data/lib/cog/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67d0295a890954530cbac2c15df2fb4b5ee8bb85
|
4
|
+
data.tar.gz: 053d44f20a2c1c663f3a19b9a006b7acc9f29415
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91186b497016b77271738d9e580d71fac6892530712f5104a1b5de4f9e90ae8efded243691a89f76e023aa21f6de3f8f36a39f42648f9f38fef7b93b941aae9c
|
7
|
+
data.tar.gz: 0d841cf81083b7baaaaae54ccd9187f76fc370a6e0e523f9ed9d68005a2dd26484222f703460dd66d9b23414d3aa0b76d107a27b02bc8587072e46d33e8dfe24
|
data/CHANGELOG.md
CHANGED
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
|
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
|
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
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.
|
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-
|
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
|