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 +4 -4
- data/lib/epom/placement.rb +12 -4
- data/lib/epom/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 704a1517489f105e9f8b4b60715cd2fbc935d073
|
4
|
+
data.tar.gz: 81b3b9ece2afb49ae2d3ff75b709afa87c65b98b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e19efee295eb68d2e0f8a212efb82a7dfc6f3aeb40b98812106a01d4999f3d1496fb6e529192f302210b94b2b9aa76af2efc960551094513e497fcd4c98901e
|
7
|
+
data.tar.gz: 02951bda3a96026067cb322ee6ac4541d5f4917961f52d74a8b2d056559a94caba8a1c38306630e453715f9b4f15d77106a5906fd80946b0c364ff967948c0d4
|
data/lib/epom/placement.rb
CHANGED
@@ -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, :
|
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
|
data/lib/epom/version.rb
CHANGED