twitter-ads 10.0.0 → 10.1.0

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
  SHA256:
3
- metadata.gz: 65246c52bd294821d06f0bb059d9e06645f9085e7dc0864185075311749565ff
4
- data.tar.gz: 630e877969ad75d32f4e95f6a454558aaea1338815f3aae00c813ca6e7e3e1e5
3
+ metadata.gz: 41647d8c40a25ad6514610875548e84017bc742bad6dff6c3838a708dce86f1a
4
+ data.tar.gz: 798fd38acef31c22a0032fa9e2ff9188c5061ec3cc04834c8503b33c8a4e2ab2
5
5
  SHA512:
6
- metadata.gz: f392d87fd861feba16a6555158670f63048489986bfc1e82b4f3c596f94b240803e50892865da4e2a930e134e1ae52d4c3b4b9e9b44a344a63d5d5a82985d661
7
- data.tar.gz: 57ddabd5051fff96bbb3542e3e7616e38476abc1de375ff01fb1c00746247a0f554eff6c2c5af83a0d4635d6d3fe400e0a38a0b7a36742d8e146be21acfe1fec
6
+ metadata.gz: 1d4fffa9b3eaa288a6ef9d173fb7f6fcbb1cfd2e5286c0167be9b01f4e751179fb83d4efff294f193837c44f84a2b52a696cfa826b3e7a7ff2635696242e931b
7
+ data.tar.gz: 46f6c010335bbf314877e71decef4692fada6a9317436a38fa8bf31ad334a2742ddec724e61074ebefa23420490b2243d522360b7dce76907cd03f3d289a5a8a
data/README.md CHANGED
@@ -52,7 +52,7 @@ This project is designed to work with Ruby 2.4.0 or greater. While it may work o
52
52
 
53
53
  Platform | Versions
54
54
  -------- | --------
55
- MRI | 2.4.x, 2.5.x, 2.6.x
55
+ MRI | 2.4.x, 2.5.x, 2.6.x, 2.7, 3.0
56
56
  Rubinius | 2.4.x, 2.5.x
57
57
 
58
58
  All releases adhere to strict [semantic versioning](http://semver.org). For Example, major.minor.patch-pre (aka. stick.carrot.oops-peek).
@@ -89,7 +89,7 @@ Like the [Response](https://github.com/twitterdev/twitter-ruby-ads-sdk/blob/mast
89
89
 
90
90
  The MIT License (MIT)
91
91
 
92
- Copyright (C) 2019 Twitter, Inc.
92
+ Copyright (C) 2021 Twitter, Inc.
93
93
 
94
94
  Permission is hereby granted, free of charge, to any person obtaining a copy
95
95
  of this software and associated documentation files (the "Software"), to deal
@@ -23,6 +23,7 @@ module TwitterAds
23
23
  property :end_time, type: :time
24
24
  property :start_time, type: :time
25
25
  property :entity_status
26
+ property :effective_status
26
27
  property :currency
27
28
  property :standard_delivery
28
29
  property :daily_budget_amount_local_micro
@@ -56,13 +56,13 @@ module TwitterAds
56
56
  # @return [Cursor] The current Cursor instance.
57
57
  #
58
58
  # @since 0.1.0
59
- def each(offset = 0)
59
+ def each(offset = 0, &block)
60
60
  return to_enum(:each, offset) unless block_given?
61
61
  @collection[offset..-1].each { |element| yield(element) }
62
62
  unless exhausted?
63
63
  offset = [@collection.size, offset].max
64
64
  fetch_next
65
- each(offset, &Proc.new)
65
+ each(offset, &block)
66
66
  end
67
67
  self
68
68
  end
@@ -211,7 +211,7 @@ module TwitterAds
211
211
  tries = 0
212
212
  begin
213
213
  tries += 1
214
- raw_file = open(data_url)
214
+ raw_file = URI.open(data_url)
215
215
  unzipped_file = Zlib::GzipReader.new(raw_file)
216
216
  response_data = unzipped_file.read
217
217
  response = JSON.parse(response_data)
@@ -2,5 +2,5 @@
2
2
  # Copyright (C) 2019 Twitter, Inc.
3
3
 
4
4
  module TwitterAds
5
- VERSION = '10.0.0'
5
+ VERSION = '10.1.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-ads
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.0
4
+ version: 10.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Babich
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2021-11-18 00:00:00.000000000 Z
15
+ date: 2022-01-07 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: multi_json
@@ -189,57 +189,57 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: 2.6.0
191
191
  requirements: []
192
- rubygems_version: 3.2.22
192
+ rubygems_version: 3.1.6
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: The officially supported Twitter Ads API SDK for Ruby.
196
196
  test_files:
197
- - spec/fixtures/accounts_all.json
197
+ - spec/shared/properties.rb
198
+ - spec/spec_helper.rb
199
+ - spec/quality_spec.rb
200
+ - spec/twitter-ads/campaign/tracking_tag_spec.rb
201
+ - spec/twitter-ads/campaign/tweet_spec.rb
202
+ - spec/twitter-ads/campaign/targeting_criteria_spec.rb
203
+ - spec/twitter-ads/campaign/line_item_spec.rb
204
+ - spec/twitter-ads/campaign/app_list_spec.rb
205
+ - spec/twitter-ads/rate_limit_spec.rb
206
+ - spec/twitter-ads/targeting/audience_estimate_spec.rb
207
+ - spec/twitter-ads/creative/promoted_account_spec.rb
208
+ - spec/twitter-ads/creative/tweet_previews_spec.rb
209
+ - spec/twitter-ads/creative/media_creative_spec.rb
210
+ - spec/twitter-ads/creative/promoted_tweet_spec.rb
211
+ - spec/twitter-ads/utils_spec.rb
212
+ - spec/twitter-ads/placements_spec.rb
213
+ - spec/twitter-ads/retry_count_spec.rb
214
+ - spec/twitter-ads/client_spec.rb
215
+ - spec/twitter-ads/account_spec.rb
216
+ - spec/twitter-ads/audiences/custom_audience_spec.rb
217
+ - spec/twitter-ads/cursor_spec.rb
218
+ - spec/fixtures/line_items_load.json
219
+ - spec/fixtures/promotable_users_all.json
220
+ - spec/fixtures/campaigns_load.json
198
221
  - spec/fixtures/accounts_features.json
199
- - spec/fixtures/accounts_load.json
200
- - spec/fixtures/app_lists_all.json
201
222
  - spec/fixtures/app_lists_load.json
223
+ - spec/fixtures/accounts_load.json
224
+ - spec/fixtures/no_content.json
202
225
  - spec/fixtures/audience_estimate.json
203
- - spec/fixtures/campaigns_all.json
204
- - spec/fixtures/campaigns_load.json
205
- - spec/fixtures/custom_audiences_all.json
206
- - spec/fixtures/custom_audiences_load.json
207
- - spec/fixtures/funding_instruments_all.json
226
+ - spec/fixtures/promoted_tweets_all.json
227
+ - spec/fixtures/placements.json
228
+ - spec/fixtures/tracking_tags_load.json
208
229
  - spec/fixtures/funding_instruments_load.json
230
+ - spec/fixtures/targeted_audiences.json
231
+ - spec/fixtures/reach_estimate.json
209
232
  - spec/fixtures/line_items_all.json
210
- - spec/fixtures/line_items_load.json
211
- - spec/fixtures/no_content.json
212
- - spec/fixtures/placements.json
213
- - spec/fixtures/promotable_users_all.json
214
- - spec/fixtures/promotable_users_load.json
215
- - spec/fixtures/promoted_tweets_all.json
216
233
  - spec/fixtures/promoted_tweets_load.json
217
- - spec/fixtures/reach_estimate.json
218
- - spec/fixtures/tailored_audiences_all.json
219
- - spec/fixtures/targeted_audiences.json
220
- - spec/fixtures/tracking_tags_load.json
221
- - spec/fixtures/tweet_previews.json
222
234
  - spec/fixtures/videos_all.json
235
+ - spec/fixtures/app_lists_all.json
223
236
  - spec/fixtures/videos_load.json
224
- - spec/quality_spec.rb
225
- - spec/shared/properties.rb
226
- - spec/spec_helper.rb
237
+ - spec/fixtures/promotable_users_load.json
238
+ - spec/fixtures/accounts_all.json
239
+ - spec/fixtures/tweet_previews.json
240
+ - spec/fixtures/custom_audiences_all.json
241
+ - spec/fixtures/funding_instruments_all.json
242
+ - spec/fixtures/campaigns_all.json
243
+ - spec/fixtures/custom_audiences_load.json
244
+ - spec/fixtures/tailored_audiences_all.json
227
245
  - spec/support/helpers.rb
228
- - spec/twitter-ads/account_spec.rb
229
- - spec/twitter-ads/audiences/custom_audience_spec.rb
230
- - spec/twitter-ads/campaign/app_list_spec.rb
231
- - spec/twitter-ads/campaign/line_item_spec.rb
232
- - spec/twitter-ads/campaign/targeting_criteria_spec.rb
233
- - spec/twitter-ads/campaign/tracking_tag_spec.rb
234
- - spec/twitter-ads/campaign/tweet_spec.rb
235
- - spec/twitter-ads/client_spec.rb
236
- - spec/twitter-ads/creative/media_creative_spec.rb
237
- - spec/twitter-ads/creative/promoted_account_spec.rb
238
- - spec/twitter-ads/creative/promoted_tweet_spec.rb
239
- - spec/twitter-ads/creative/tweet_previews_spec.rb
240
- - spec/twitter-ads/cursor_spec.rb
241
- - spec/twitter-ads/placements_spec.rb
242
- - spec/twitter-ads/rate_limit_spec.rb
243
- - spec/twitter-ads/retry_count_spec.rb
244
- - spec/twitter-ads/targeting/audience_estimate_spec.rb
245
- - spec/twitter-ads/utils_spec.rb