qc.rb 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/qc.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87b1629b554e0edd39bab77a34a1e349a3057a26
4
- data.tar.gz: 35d7e588f67e3c0899587ba9c39d149fb6993188
3
+ metadata.gz: 4f5d9c3be25df703a847e4c011f52764f6c5c1a4
4
+ data.tar.gz: 8d61c9ca284c35b94afad0f5e8aff38714efb7a5
5
5
  SHA512:
6
- metadata.gz: 73c241e9a11282e0b2cfb0ba6cbc3f09943d8bc35ba5a88c5ed0d84c8860ef279575d64cf63d79d994329fd936694e126cae14bee839443a6b17b723e1a031d5
7
- data.tar.gz: 6eae0e3de630645cac9f69c8b2894c445f37086002a950b1238839123192bd5916e1a353f24aa53de40cb62364e39b91fdf8bba656f8462c0663447ce3a11e5b
6
+ metadata.gz: 3a9368cc5a487984e2df5e2931528d17d2acb9371411e390f8f37b35f6aec5356e477bea281ea595dfb20ae369beca7aa4789ca6d9a95bb32a913142135ea06b
7
+ data.tar.gz: 388a58e4f6fb7772dc74201148dc8441e8ea76b37850fc35bb12943749256b52eb910a932089fd41ef2ca1610c7eb5b8ee2aba5db6c1318c59f5a058cf6efb59
data/lib/qc.rb CHANGED
@@ -7,7 +7,7 @@ require 'yaml'
7
7
  require 'fileutils'
8
8
 
9
9
  module QC
10
- VERSION = '0.0.7'
10
+ VERSION = '0.0.8'
11
11
 
12
12
  def QC.load_config key
13
13
  f = File.expand_path('~/.qingcloud/config.yaml')
@@ -51,7 +51,7 @@ module QC
51
51
  QC::Zone = QC.load_config('zone')
52
52
 
53
53
  def QC.hmac key, data
54
- hmac = OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new('sha256'), key, data)
54
+ hmac = OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha256'), key, data)
55
55
  b64_hmac = Base64.encode64(hmac).strip
56
56
  url_b64_hmac = CGI.escape(b64_hmac)
57
57
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qc.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bovensiepen