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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec2e944984aaf8756f0175b00bde832ad2d316a3
4
- data.tar.gz: a5949997388f63572380dda22365071842a8fdd0
3
+ metadata.gz: 5c16ec3171741a707d8c90935f23adb7d6247980
4
+ data.tar.gz: 99ac80bd9fb69a049da70ece285d2df390e804b0
5
5
  SHA512:
6
- metadata.gz: 08245333ac691ad201f9de7c3ed75792c54f837b05dd198eae59a9983cdfd5500f47f560b3fd969d7d46e0f7951be6afcd74c826e58d4ed82348e215ab372f56
7
- data.tar.gz: e29c14224f5f600ca71a758934c74a308417c5f69cd1e4813b33dcad84fdf04f864c2aace346c7a4558f10f71d428b0dd023892c5e326e77a23b12bd1dea39b7
6
+ metadata.gz: bc09d2598799c3c1a71ac137071c85ba1cb88ab57c71f5e3562bea21aa001c0cbca653686fe4a676cb101aa0498acc350af2d51cad56b8ce1db10db063682f9c
7
+ data.tar.gz: 2f25423569c1630cb6c8b4403fa8a9b3e1e0304adc098d02e09b393aa3ce6b721f773120acd1daf00ed507afc4fc57f43ddf7ffe9354615594f97ac6b4eaad1d
@@ -1,3 +1,3 @@
1
1
  module UcloudApi
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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::Digest.new('sha1'), uri.query.downcase, @secretkey)
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 = ["Beom Jae Kim"]
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
- - Beom Jae Kim
7
+ - BJ Kim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-27 00:00:00.000000000 Z
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.14
76
+ rubygems_version: 2.2.0
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: KT ucloud biz api