epom 0.6 → 0.6.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/epom_element.rb +1 -1
- data/lib/epom/placement.rb +1 -1
- data/lib/epom/version.rb +1 -1
- 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: 2f11a1470a42941247210ba13862836bb40f2007
|
4
|
+
data.tar.gz: 918845dcfd22c8a2e00510eea7919db74dfe660f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13f3fb6d07de759e1970cc93ba5d99f4e438bd94d25b9409b984a64b849f738f7490c6d4ba1c9b564d9d2bf1cc48cb137a61aa5626781b5ddbe5453875a05009
|
7
|
+
data.tar.gz: 9b774128dbb38f78e516be557bc8eca56b50ba5261ff8dfb44de330a48894ad8b04ad9687876baea74202802b945e9ca94565135f0fc20251b435d783af966b8
|
data/lib/epom/epom_element.rb
CHANGED
@@ -12,7 +12,7 @@ module Epom
|
|
12
12
|
|
13
13
|
def self.params_validation(params, params_signature)
|
14
14
|
return true if params_signature.nil? or params_signature.count.zero?
|
15
|
-
return true if params.keys.all? {|key| params_signature.include?(key)}
|
15
|
+
return true if params.keys.all? {|key| params_signature.include?(key.to_sym)}
|
16
16
|
puts "invalid params: #{params.keys.select{|key| not params_signature.include?(key)}}"
|
17
17
|
return false
|
18
18
|
end
|
data/lib/epom/placement.rb
CHANGED
@@ -40,7 +40,7 @@ module Epom
|
|
40
40
|
},
|
41
41
|
:create_standard_placement => {
|
42
42
|
:url => '/rest-api/placements/update/standard.do',
|
43
|
-
:body_parameters => [:zoneId, :type, :name, :description, :adUnitId, :size, 'size.height', 'size.width', :allowVariableBannerSizes, :defaultCode, :rotateInterval, :hash, :timestamp, :username],
|
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
45
|
}
|
46
46
|
|
data/lib/epom/version.rb
CHANGED
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.6.2
|
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-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|