epom 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/epom/version.rb +1 -1
- data/lib/epom/zone.rb +2 -2
- data/test/epom/zone_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf6875cc8d4aa9f20569d22338415dc9f851588a
|
4
|
+
data.tar.gz: 84b4a654317b50fdc96c5bcfce059e356f368c81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ea3882172d461fcc50c552234807dafa405a3da7c272a68aef13f134a72c81caf68e36d54575ede10d670c05d73d71c2cd42d86df7c1147c569f4b59afd4d03
|
7
|
+
data.tar.gz: 572328faba306cd3866fdcd06adad3f932f4074d869b179d352370329101a0bb0c4a844cb23bc0d930f4e7019af4aaf9097684a27e611c8986efdb8bf0d41718
|
data/lib/epom/version.rb
CHANGED
data/lib/epom/zone.rb
CHANGED
@@ -11,7 +11,7 @@ module Epom
|
|
11
11
|
:body_parameters => [:hash, :timestamp, :username],
|
12
12
|
:method => :post
|
13
13
|
},
|
14
|
-
:
|
14
|
+
:get_zone_placements => {
|
15
15
|
:url => '/rest-api/zones/ZONE_ID/placements.do',
|
16
16
|
:url_parameters => [:zoneId],
|
17
17
|
:body_parameters => [:hash, :timestamp, :username],
|
@@ -31,7 +31,7 @@ module Epom
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.replace_params_in_url(url, url_params)
|
34
|
-
url.gsub!('ZONE_ID', url_params[:zoneId]) if url.include?('ZONE_ID')
|
34
|
+
url.gsub!('ZONE_ID', url_params[:zoneId].to_s) if url.include?('ZONE_ID')
|
35
35
|
url
|
36
36
|
end
|
37
37
|
end
|
data/test/epom/zone_test.rb
CHANGED
@@ -45,7 +45,7 @@ class ZoneTest < ActiveSupport::TestCase
|
|
45
45
|
assert response['success']
|
46
46
|
end
|
47
47
|
|
48
|
-
test "
|
48
|
+
test "get_zone_placements" do
|
49
49
|
timestamp = Time.now.to_i * 1000
|
50
50
|
body_params = {
|
51
51
|
:hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp),
|
@@ -56,7 +56,7 @@ class ZoneTest < ActiveSupport::TestCase
|
|
56
56
|
:zoneId => ENV['zone_id']
|
57
57
|
}
|
58
58
|
|
59
|
-
response = Epom::Zone.
|
59
|
+
response = Epom::Zone.get_zone_placements(url_params, body_params)
|
60
60
|
assert_instance_of Array, response
|
61
61
|
if response.count > 0
|
62
62
|
first = response[0]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Quintero
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-06-
|
13
|
+
date: 2015-06-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|