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 +4 -4
- data/README.md +2 -2
- data/lib/twitter-ads/campaign/campaign.rb +1 -0
- data/lib/twitter-ads/cursor.rb +2 -2
- data/lib/twitter-ads/resources/analytics.rb +1 -1
- data/lib/twitter-ads/version.rb +1 -1
- metadata +43 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41647d8c40a25ad6514610875548e84017bc742bad6dff6c3838a708dce86f1a
|
4
|
+
data.tar.gz: 798fd38acef31c22a0032fa9e2ff9188c5061ec3cc04834c8503b33c8a4e2ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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
|
data/lib/twitter-ads/cursor.rb
CHANGED
@@ -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, &
|
65
|
+
each(offset, &block)
|
66
66
|
end
|
67
67
|
self
|
68
68
|
end
|
data/lib/twitter-ads/version.rb
CHANGED
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.
|
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:
|
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.
|
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/
|
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/
|
204
|
-
- spec/fixtures/
|
205
|
-
- spec/fixtures/
|
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/
|
225
|
-
- spec/
|
226
|
-
- spec/
|
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
|