epom 0.9 → 0.9.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce37fe9a3f11f93ba8706f60270a9b047c18e0bd
4
- data.tar.gz: 89bd4e659ea2b2308139bd6c1a6b9f8f0c20b67e
3
+ metadata.gz: cf6875cc8d4aa9f20569d22338415dc9f851588a
4
+ data.tar.gz: 84b4a654317b50fdc96c5bcfce059e356f368c81
5
5
  SHA512:
6
- metadata.gz: f8d5cb4a87081dae73fe4c6f93d7a0adce064859dd33efe882e2117d44bb6c33164b2cc225d17f209eee729000058aa98d06ac3380cc879bea34cc3a44840fc9
7
- data.tar.gz: 8b2856197f2a32b3fd4d1d48469f8054787c4f342dd7edf2abcf64fafb46582144123a7eea19fd79de0ac25f52c5df930780c62ab56a2ab56aa1d760552114f3
6
+ metadata.gz: 2ea3882172d461fcc50c552234807dafa405a3da7c272a68aef13f134a72c81caf68e36d54575ede10d670c05d73d71c2cd42d86df7c1147c569f4b59afd4d03
7
+ data.tar.gz: 572328faba306cd3866fdcd06adad3f932f4074d869b179d352370329101a0bb0c4a844cb23bc0d930f4e7019af4aaf9097684a27e611c8986efdb8bf0d41718
data/lib/epom/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Epom
2
- VERSION = '0.9'
2
+ VERSION = '0.9.1'
3
3
  end
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
- :get_zone_placement => {
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
@@ -45,7 +45,7 @@ class ZoneTest < ActiveSupport::TestCase
45
45
  assert response['success']
46
46
  end
47
47
 
48
- test "get_zone_placement" do
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.get_zone_placement(url_params, body_params)
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: '0.9'
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-19 00:00:00.000000000 Z
13
+ date: 2015-06-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails