adroller 1.0.2 → 1.0.3

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: 41aa6e068923eec31c9f33f44d238762623f312c
4
- data.tar.gz: 5b7be01dbbe586139a659007a723f41525f442a6
3
+ metadata.gz: cc1dd08ddfa36709c70445d7926e24dff55e8ffb
4
+ data.tar.gz: c382cf0784f1064529634370bb1a1b67c430b48e
5
5
  SHA512:
6
- metadata.gz: f308d9dc7e58844b01051e645168fb2657dff7ae38aaa569063868222f4b790e437003d0614dd3d27d92b1c27551abf6fcd67926269e40212b17f867ce3fb98c
7
- data.tar.gz: deacb2912662787a3e9ff752c5ea2c75bf5116dad4b43ce451bcd56a8bd1a032a88e4869fbd1b2373470503c22f3a4df833c9c20de0fcf59c4a7291ee7cb1e94
6
+ metadata.gz: f8d3c65f5c5d6f4218deb756df474dfa795a5eaa079b901fc2cc0b20068a9017cf64dfce85d61ed31b564325e7631d6aaf300c40df8c9133c875318f14fbe8d6
7
+ data.tar.gz: ef729d9f793a20d429b72829de37d521bc2d207db7a8e5e947e71d4780f066927ddd184273c8697b551734d408719209ce6fde9f5e509d14fd2fe0f7af6cc1bc
data/Gemfile.lock CHANGED
@@ -2,6 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  adroller (1.0.2)
5
+ httmultiparty (~> 0.3.13)
5
6
  httparty (~> 0.13.1)
6
7
 
7
8
  GEM
@@ -25,13 +26,19 @@ GEM
25
26
  diff-lcs (1.2.5)
26
27
  factory_girl (4.4.0)
27
28
  activesupport (>= 3.0.0)
28
- httparty (0.13.1)
29
+ httmultiparty (0.3.16)
30
+ httparty (>= 0.7.3)
31
+ mimemagic
32
+ multipart-post
33
+ httparty (0.13.7)
29
34
  json (~> 1.8)
30
35
  multi_xml (>= 0.5.2)
31
36
  i18n (0.6.11)
32
37
  json (1.8.1)
38
+ mimemagic (0.3.0)
33
39
  minitest (5.4.0)
34
40
  multi_xml (0.5.5)
41
+ multipart-post (2.0.0)
35
42
  rake (10.4.2)
36
43
  rspec (3.0.0)
37
44
  rspec-core (~> 3.0.0)
data/adroller.gemspec CHANGED
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency 'webmock', '~> 1.18', '>= 1.18.0'
26
26
  spec.add_development_dependency 'factory_girl', '~> 4.4', '>= 4.4.0'
27
27
  spec.add_dependency 'httparty', '~> 0.13.1'
28
+ spec.add_dependency 'httmultiparty', '~> 0.3.13'
28
29
  end
@@ -16,8 +16,14 @@ module AdRoll
16
16
  response = HTTParty.send(request_method, request_uri,
17
17
  basic_auth: basic_auth, query: query_params, debug_output: $stdout)
18
18
  else
19
- response = HTTParty.send(request_method, request_uri,
20
- basic_auth: basic_auth, body: query_params, debug_output: $stdout)
19
+ if request_uri == 'https://api.adroll.com/v1/ad/create'
20
+ response = HTTMultiParty.send(request_method, request_uri,
21
+ basic_auth: basic_auth, body: query_params, debug_output: $stdout)
22
+
23
+ else
24
+ response = HTTParty.send(request_method, request_uri,
25
+ basic_auth: basic_auth, body: query_params, debug_output: $stdout)
26
+ end
21
27
  end
22
28
 
23
29
  begin
data/lib/adroll.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'httparty'
2
+ require 'httmultiparty'
2
3
 
3
4
  require 'adroll/ad'
4
5
  require 'adroll/adgroup'
@@ -1,3 +1,3 @@
1
1
  module Adroller
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adroller
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolas Davis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-11 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -132,6 +132,20 @@ dependencies:
132
132
  - - "~>"
133
133
  - !ruby/object:Gem::Version
134
134
  version: 0.13.1
135
+ - !ruby/object:Gem::Dependency
136
+ name: httmultiparty
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: 0.3.13
142
+ type: :runtime
143
+ prerelease: false
144
+ version_requirements: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: 0.3.13
135
149
  description: Ruby Gem for Interaction with AdRoll v1 API
136
150
  email:
137
151
  - nikolasliamdavis@gmail.com