digitalocean 1.0.3 → 1.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.
- data/lib/digitalocean.rb +3 -3
- data/lib/digitalocean/version.rb +1 -1
- data/spec/digitalocean_spec.rb +1 -1
- metadata +2 -2
data/lib/digitalocean.rb
CHANGED
@@ -68,10 +68,10 @@ module Digitalocean
|
|
68
68
|
post_query = parts[1]
|
69
69
|
|
70
70
|
singleton.send :define_method, "_#{method_name}" do |*args|
|
71
|
-
|
72
|
-
|
71
|
+
pre_query_for_method = Digitalocean.process_standard_args_from_part(pre_query, args)
|
72
|
+
post_query_for_method = Digitalocean.process_hash_args_from_part(post_query, args)
|
73
73
|
|
74
|
-
[
|
74
|
+
[pre_query_for_method, post_query_for_method].join("?")
|
75
75
|
end
|
76
76
|
|
77
77
|
singleton.send :define_method, method_name do |*args|
|
data/lib/digitalocean/version.rb
CHANGED
data/spec/digitalocean_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe Digitalocean do
|
|
12
12
|
it { subject.api_endpoint.should eq "https://api.digitalocean.com" }
|
13
13
|
it { subject.client_id.should eq "client_id_required" }
|
14
14
|
it { subject.api_key.should eq "api_key_required" }
|
15
|
-
it { subject::VERSION.should eq "1.0.
|
15
|
+
it { subject::VERSION.should eq "1.0.4" }
|
16
16
|
end
|
17
17
|
|
18
18
|
describe "setting values" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-03-
|
13
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|