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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed69de199b68aea53df358588b94aea650b6b63a
4
- data.tar.gz: 15b29962c1fb8d4480128df1fd78063a4021392c
3
+ metadata.gz: 2f11a1470a42941247210ba13862836bb40f2007
4
+ data.tar.gz: 918845dcfd22c8a2e00510eea7919db74dfe660f
5
5
  SHA512:
6
- metadata.gz: 77aa0de3c99ddb2251ea8812aaaf02e41a9fe588cfac82e7b0b0b5a7bbd3a2d7af930802de56ad8fcf51dc6cb7e1beaf634bd00f2899aefd3f3a27c7ee596db9
7
- data.tar.gz: 7714e088ae212df1832a9567c474898a3a441e3ec2c80cdd827e6cdc6aa09c132031b19eca673fa685620d677b96ddf9055b500366ba2c32fee83a97224ac8ac
6
+ metadata.gz: 13f3fb6d07de759e1970cc93ba5d99f4e438bd94d25b9409b984a64b849f738f7490c6d4ba1c9b564d9d2bf1cc48cb137a61aa5626781b5ddbe5453875a05009
7
+ data.tar.gz: 9b774128dbb38f78e516be557bc8eca56b50ba5261ff8dfb44de330a48894ad8b04ad9687876baea74202802b945e9ca94565135f0fc20251b435d783af966b8
@@ -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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Epom
2
- VERSION = '0.6'
2
+ VERSION = '0.6.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.6'
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-02 00:00:00.000000000 Z
13
+ date: 2015-06-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails