ucloud_api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ucloud_api/version.rb +1 -1
- data/lib/ucloud_api.rb +1 -2
- data/ucloud_api.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c16ec3171741a707d8c90935f23adb7d6247980
|
4
|
+
data.tar.gz: 99ac80bd9fb69a049da70ece285d2df390e804b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc09d2598799c3c1a71ac137071c85ba1cb88ab57c71f5e3562bea21aa001c0cbca653686fe4a676cb101aa0498acc350af2d51cad56b8ce1db10db063682f9c
|
7
|
+
data.tar.gz: 2f25423569c1630cb6c8b4403fa8a9b3e1e0304adc098d02e09b393aa3ce6b721f773120acd1daf00ed507afc4fc57f43ddf7ffe9354615594f97ac6b4eaad1d
|
data/lib/ucloud_api/version.rb
CHANGED
data/lib/ucloud_api.rb
CHANGED
@@ -19,12 +19,11 @@ module UcloudApi
|
|
19
19
|
@secretkey = secretkey || ENV["UCLOUDSECRET"]
|
20
20
|
end
|
21
21
|
|
22
|
-
|
23
22
|
def raw_cmd options={}
|
24
23
|
uri = Addressable::URI.new
|
25
24
|
hashable_opt = options.merge( {:apiKey => @apikey, :response=>"json"} )
|
26
25
|
uri.query_values = hashable_opt.sort
|
27
|
-
hmac = OpenSSL::HMAC.digest(OpenSSL::Digest
|
26
|
+
hmac = OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), uri.query.downcase, @secretkey)
|
28
27
|
signature = Base64.encode64("#{OpenSSL::HMAC.digest('sha1', @secretkey, uri.query.downcase)}")[0..-2]
|
29
28
|
query = options.merge( {:response=>"json", :apiKey=>@apikey, :signature => signature } )
|
30
29
|
self.class.get "/api" , :query => query
|
data/ucloud_api.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'ucloud_api/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "ucloud_api"
|
8
8
|
spec.version = UcloudApi::VERSION
|
9
|
-
spec.authors = ["
|
9
|
+
spec.authors = ["BJ Kim"]
|
10
10
|
spec.email = ["burnssun@gmail.com"]
|
11
11
|
spec.summary = %q{KT ucloud biz api}
|
12
12
|
spec.description = %q{KT ucloud biz api}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ucloud_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- BJ Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.0
|
76
|
+
rubygems_version: 2.2.0
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: KT ucloud biz api
|