adzerk 0.11 → 0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/adzerk.rb +0 -0
  3. data/lib/adzerk/advertiser.rb +0 -0
  4. data/lib/adzerk/api_endpoint.rb +0 -0
  5. data/lib/adzerk/category.rb +0 -0
  6. data/lib/adzerk/channel_site_map.rb +0 -0
  7. data/lib/adzerk/client.rb +4 -2
  8. data/lib/adzerk/creative.rb +0 -0
  9. data/lib/adzerk/creative_map.rb +0 -0
  10. data/lib/adzerk/errors.rb +0 -0
  11. data/lib/adzerk/flight.rb +0 -0
  12. data/lib/adzerk/geo_targeting.rb +0 -0
  13. data/lib/adzerk/invitation.rb +0 -0
  14. data/lib/adzerk/priority.rb +0 -0
  15. data/lib/adzerk/publisher.rb +0 -0
  16. data/lib/adzerk/reporting.rb +0 -0
  17. data/lib/adzerk/site_zone_targeting.rb +0 -0
  18. data/lib/adzerk/util.rb +0 -0
  19. data/lib/adzerk/version.rb +1 -1
  20. data/test/adtype_api_spec.rb +0 -0
  21. data/test/advertiser_api_spec.rb +0 -0
  22. data/test/campaign_api_spec.rb +0 -0
  23. data/test/category_api_spec.rb +0 -0
  24. data/test/channel_api_spec.rb +0 -0
  25. data/test/channel_site_map_api_spec.rb +0 -0
  26. data/test/creative_api_spec.rb +0 -0
  27. data/test/creative_map_api_spec.rb +0 -0
  28. data/test/flight_api_spec.rb +0 -0
  29. data/test/geo_targeting_api_spec.rb +0 -0
  30. data/test/invitation_api_spec.rb +0 -0
  31. data/test/login_api_spec.rb +0 -0
  32. data/test/priority_api_spec.rb +1 -1
  33. data/test/publisher_api_spec.rb +0 -0
  34. data/test/rakefile.rb +0 -0
  35. data/test/report_api_spec.rb +0 -0
  36. data/test/security_api_spec.rb +0 -0
  37. data/test/site_api_spec.rb +0 -0
  38. data/test/site_zone_targeting_api_spec.rb +0 -0
  39. data/test/spec_helper.rb +0 -0
  40. data/test/util_spec.rb +0 -0
  41. data/test/zone_api_spec.rb +0 -0
  42. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97f5418d9439259df41a593c48dd6e595a4ba78c
4
- data.tar.gz: deb21140298faa1a0d1ec353f2aebac29457f761
3
+ metadata.gz: f22414a06756a78f2e6d8ee07568be6e99ba7a91
4
+ data.tar.gz: 1674c74ef8ce38b9e307eb51897c18c396eccea6
5
5
  SHA512:
6
- metadata.gz: ee82eee6f0c3d3e6020fbd9745b0816c3e2337bf2163df816483234edbcef4aa08f9ee4e6b0e9894c943baab92613916344f195a6629c4a486c38ed868878ce6
7
- data.tar.gz: 357d24279331ac326bc876ddec6c6bead5b158d17f3aa64fafb2e374e948fc7705e67d61c4cc8a942e8dd92ec15b3ed3f663bffbfc59c99cc24e70adfe3527da
6
+ metadata.gz: b959885a659a94db14a5ea8e520314cc18f20bada0c7f1d005e05b974c35aeb963df396d190ea648509ddcbfc951532eaa2d56743ca15e40b806b5bf16286d5d
7
+ data.tar.gz: a65125e6343526b18933b7fe547a59118305472f486d73edc13643a7cb35ffab5eb1ba3c9a0e6a8d34ac1cf94a0acdd2561d5be8741f64da40b953a9f29d9717
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -69,9 +69,11 @@ module Adzerk
69
69
  response
70
70
  end
71
71
 
72
- def upload_creative(id, image_path)
72
+ def upload_creative(id, image_path, size_override: false)
73
73
  image = File.new(image_path, 'rb')
74
- RestClient.post(@config[:host] + 'creative/' + id.to_s + '/upload',
74
+ url = @config[:host] + 'creative/' + id.to_s + '/upload'
75
+ url += '?sizeOverride=true' if size_override
76
+ RestClient.post(url,
75
77
  {:image => image},
76
78
  "X-Adzerk-ApiKey" => @api_key,
77
79
  :accept => :mime)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Adzerk
2
- VERSION = "0.11"
2
+ VERSION = "0.12"
3
3
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -63,7 +63,7 @@ describe "Priority API" do
63
63
  end
64
64
 
65
65
  it "should not allow selection algorithm to be updated" do
66
- expect { @priorities.update(selection_algorithm: 1) }.to raise_error
66
+ expect { @priorities.update(selection_algorithm: 1) }.to raise_error JSON::ParserError
67
67
  end
68
68
 
69
69
  it "should list all priorities" do
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adzerk
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.11'
4
+ version: '0.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kacy Fortner
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2017-03-14 00:00:00.000000000 Z
20
+ date: 2017-04-14 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rspec
@@ -25,14 +25,14 @@ dependencies:
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 2.11.0
28
+ version: 3.5.0
29
29
  type: :development
30
30
  prerelease: false
31
31
  version_requirements: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 2.11.0
35
+ version: 3.5.0
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
38
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +136,8 @@ files:
136
136
  - test/util_spec.rb
137
137
  - test/zone_api_spec.rb
138
138
  homepage: http://adzerk.com
139
- licenses: []
139
+ licenses:
140
+ - Apache-2.0
140
141
  metadata: {}
141
142
  post_install_message:
142
143
  rdoc_options: []