txbr 2.6.0 → 2.6.1.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/txbr/campaigns_api.rb +1 -1
- data/lib/txbr/version.rb +1 -1
- data/spec/campaigns_api_spec.rb +3 -3
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97f7a283041d7fe496fe0eda6976ed22fe5a60a60b56eee4b3b07b62eb8b3753
|
4
|
+
data.tar.gz: 7440313a8d353ab7e4d9ae22c5dc5de59c5000d3dc33efdd3bd82eb5f55a7203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7732388b13d226baaf99fa8f57a3cba3f5b5ce36b4a267bb3fc2aea94b27b072b2628e43298f7f67beadc70c2036e1647bb3a8b8db8e7c4e76da5bb8022a81fc
|
7
|
+
data.tar.gz: e83c060b3286af19562a6c19e321aa6c8afd7b11578b3cd1537952b7eba7792228f200e31a84882834098463e79d3681e64fa82f1d164de38b9c9a4062e2621c
|
data/lib/txbr/campaigns_api.rb
CHANGED
@@ -15,7 +15,7 @@ module Txbr
|
|
15
15
|
page = 0
|
16
16
|
|
17
17
|
loop do
|
18
|
-
campaigns = braze_api.get_json(CAMPAIGN_LIST_PATH, page: page)
|
18
|
+
campaigns = braze_api.get_json(CAMPAIGN_LIST_PATH, page: page, include_archived: false)
|
19
19
|
campaigns['campaigns'].each(&block)
|
20
20
|
break if campaigns['campaigns'].size < CAMPAIGN_BATCH_SIZE
|
21
21
|
page += 1
|
data/lib/txbr/version.rb
CHANGED
data/spec/campaigns_api_spec.rb
CHANGED
@@ -20,13 +20,13 @@ describe Txbr::CampaignsApi do
|
|
20
20
|
|
21
21
|
let(:interactions) do
|
22
22
|
[{
|
23
|
-
request: { verb: 'get', url: described_class::CAMPAIGN_LIST_PATH, params: { page: 0 } },
|
23
|
+
request: { verb: 'get', url: described_class::CAMPAIGN_LIST_PATH, params: { page: 0, include_archived: false } },
|
24
24
|
response: { status: 200, body: { campaigns: [{ id: '123abc' }] }.to_json }
|
25
25
|
}, {
|
26
|
-
request: { verb: 'get', url: described_class::CAMPAIGN_LIST_PATH, params: { page: 1 } },
|
26
|
+
request: { verb: 'get', url: described_class::CAMPAIGN_LIST_PATH, params: { page: 1, include_archived: false } },
|
27
27
|
response: { status: 200, body: { campaigns: [{ id: '456def' }] }.to_json }
|
28
28
|
}, {
|
29
|
-
request: { verb: 'get', url: described_class::CAMPAIGN_LIST_PATH, params: { page: 2 } },
|
29
|
+
request: { verb: 'get', url: described_class::CAMPAIGN_LIST_PATH, params: { page: 2, include_archived: false } },
|
30
30
|
response: { status: 200, body: { campaigns: [] }.to_json }
|
31
31
|
}]
|
32
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: txbr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abroad
|
@@ -162,7 +162,7 @@ files:
|
|
162
162
|
homepage: https://github.com/lumoslabs/txbr
|
163
163
|
licenses: []
|
164
164
|
metadata: {}
|
165
|
-
post_install_message:
|
165
|
+
post_install_message:
|
166
166
|
rdoc_options: []
|
167
167
|
require_paths:
|
168
168
|
- lib
|
@@ -173,13 +173,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
|
-
- - "
|
176
|
+
- - ">"
|
177
177
|
- !ruby/object:Gem::Version
|
178
|
-
version:
|
178
|
+
version: 1.3.1
|
179
179
|
requirements: []
|
180
|
-
|
181
|
-
|
182
|
-
signing_key:
|
180
|
+
rubygems_version: 3.2.7
|
181
|
+
signing_key:
|
183
182
|
specification_version: 4
|
184
183
|
summary: A library for syncing translation resources between Braze and Transifex.
|
185
184
|
test_files: []
|