epom 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf6875cc8d4aa9f20569d22338415dc9f851588a
4
- data.tar.gz: 84b4a654317b50fdc96c5bcfce059e356f368c81
3
+ metadata.gz: 704a1517489f105e9f8b4b60715cd2fbc935d073
4
+ data.tar.gz: 81b3b9ece2afb49ae2d3ff75b709afa87c65b98b
5
5
  SHA512:
6
- metadata.gz: 2ea3882172d461fcc50c552234807dafa405a3da7c272a68aef13f134a72c81caf68e36d54575ede10d670c05d73d71c2cd42d86df7c1147c569f4b59afd4d03
7
- data.tar.gz: 572328faba306cd3866fdcd06adad3f932f4074d869b179d352370329101a0bb0c4a844cb23bc0d930f4e7019af4aaf9097684a27e611c8986efdb8bf0d41718
6
+ metadata.gz: 9e19efee295eb68d2e0f8a212efb82a7dfc6f3aeb40b98812106a01d4999f3d1496fb6e529192f302210b94b2b9aa76af2efc960551094513e497fcd4c98901e
7
+ data.tar.gz: 02951bda3a96026067cb322ee6ac4541d5f4917961f52d74a8b2d056559a94caba8a1c38306630e453715f9b4f15d77106a5906fd80946b0c364ff967948c0d4
@@ -35,21 +35,29 @@ module Epom
35
35
  },
36
36
  :update_standard_placement => {
37
37
  :url => '/rest-api/placements/update/standard.do',
38
- :body_parameters => [:id, :zoneId, :type, :name, :description, :adUnit, :height, :width, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
38
+ :body_parameters => [:id, :zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
39
39
  :method => :post
40
40
  },
41
41
  :create_standard_placement => {
42
42
  :url => '/rest-api/placements/update/standard.do',
43
43
  :body_parameters => [:zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
44
44
  :method => :post
45
+ },
46
+ :update_placement => {
47
+ :url => '/rest-api/placements/update/standard.do',
48
+ :body_parameters => [:id, :zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
49
+ :method => :post
50
+ },
51
+ :create_placement => {
52
+ :url => '/rest-api/placements/update/standard.do',
53
+ :body_parameters => [:zoneId, :type, :name, :description, :adUnitId, :size, 'size.height'.to_sym, 'size.width'.to_sym, :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
54
+ :method => :post
45
55
  }
46
-
47
-
48
56
  }
49
57
  end
50
58
 
51
59
  def self.replace_params_in_url(url, url_params)
52
- url.gsub!('PLACEMENT_ID', url_params[:placementId]) if url.include?('PLACEMENT_ID')
60
+ url.gsub!('PLACEMENT_ID', url_params[:placementId].to_s) if url.include?('PLACEMENT_ID')
53
61
  url
54
62
  end
55
63
  end
@@ -1,3 +1,3 @@
1
1
  module Epom
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
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.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Quintero