cloudstack_ruby_client 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,11 +21,10 @@ class CloudstackRubyClient::BaseClient
|
|
21
21
|
|
22
22
|
params_arr = []
|
23
23
|
params.sort.each { |elem|
|
24
|
-
params_arr << elem[0].to_s + '=' + elem[1].to_s
|
24
|
+
params_arr << elem[0].to_s + '=' + CGI.escape(elem[1].to_s).gsub('+', '%20').gsub(' ','%20')
|
25
25
|
}
|
26
26
|
data = params_arr.join('&')
|
27
|
-
|
28
|
-
signature = OpenSSL::HMAC.digest('sha1', @secret_key, encoded_data)
|
27
|
+
signature = OpenSSL::HMAC.digest('sha1', @secret_key, data.downcase)
|
29
28
|
signature = Base64.encode64(signature).chomp
|
30
29
|
signature = CGI.escape(signature)
|
31
30
|
|
metadata
CHANGED
@@ -1,33 +1,24 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstack_ruby_client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
version: 0.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Chip Childers
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2013-03-14 00:00:00 -04:00
|
18
|
-
default_executable:
|
12
|
+
date: 2013-04-25 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
|
22
|
-
email:
|
14
|
+
description: A Ruby client for CloudStack's API, licensed via the Apache Software
|
15
|
+
License v2.
|
16
|
+
email:
|
23
17
|
- chip.childers@gmail.com
|
24
18
|
executables: []
|
25
|
-
|
26
19
|
extensions: []
|
27
|
-
|
28
20
|
extra_rdoc_files: []
|
29
|
-
|
30
|
-
files:
|
21
|
+
files:
|
31
22
|
- .gitignore
|
32
23
|
- Gemfile
|
33
24
|
- LICENSE
|
@@ -41,36 +32,30 @@ files:
|
|
41
32
|
- lib/cloudstack_ruby_client/version.rb
|
42
33
|
- test/integration/client_test.rb
|
43
34
|
- test/unit/empty_test.rb
|
44
|
-
has_rdoc: true
|
45
35
|
homepage: https://github.com/chipchilders/cloudstack_ruby_client
|
46
36
|
licenses: []
|
47
|
-
|
48
37
|
post_install_message:
|
49
38
|
rdoc_options: []
|
50
|
-
|
51
|
-
require_paths:
|
39
|
+
require_paths:
|
52
40
|
- lib
|
53
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
- 0
|
66
|
-
version: "0"
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
67
53
|
requirements: []
|
68
|
-
|
69
54
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.
|
55
|
+
rubygems_version: 1.8.24
|
71
56
|
signing_key:
|
72
57
|
specification_version: 3
|
73
58
|
summary: A Ruby client for CloudStack's API.
|
74
|
-
test_files:
|
59
|
+
test_files:
|
75
60
|
- test/integration/client_test.rb
|
76
61
|
- test/unit/empty_test.rb
|