broadcast-ruby 0.9.0 → 0.10.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +2 -2
- data/README.md +4 -0
- data/lib/broadcast/resources/opt_in_forms.rb +4 -1
- data/lib/broadcast/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 771ab33d93d10794aea6559a3f8f37bda6805a113ea5b64c4fbd01492f441c4c
|
|
4
|
+
data.tar.gz: 9cee98c3ca42375be3b153e6636654506d7284f3970b5f9810d94441be5b974e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e87a6e53d2fa236d6acf3cbd0ce0c03da8483a4761c90bd5b3464bac82590e2ea754f1b358a24a03c155d42c48e49f2090202584937b210d6304e77fed1b4c0
|
|
7
|
+
data.tar.gz: 4e7ca3f59f4845ce25b8ab24d6f446fb8ed277b3b6804e559cbe4008ec88fccf573e93819716b1272a067a5abbfbc9c3d215169825b0e9793ae5426f555185de
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.10.0] - 2026-10-17
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `Broadcast::Resources::OptInForms::TRIGGER_FREQUENCIES` includes `once_per_days` (Broadcast 2.49): the popup shows
|
|
12
|
+
again after `trigger_settings.frequency_cookie_days` days, a whole number, 1 or
|
|
13
|
+
more; blank means 30. The client still sends any word as it is, so nothing
|
|
14
|
+
changes for a server before 2.49, which refuses the word with 422.
|
|
15
|
+
|
|
7
16
|
## [0.9.0] - 2026-10-16
|
|
8
17
|
|
|
9
18
|
### Added
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
broadcast-ruby (0.
|
|
4
|
+
broadcast-ruby (0.10.0)
|
|
5
5
|
base64
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -177,7 +177,7 @@ CHECKSUMS
|
|
|
177
177
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
178
178
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
179
179
|
bigdecimal (4.0.1) sha256=8b07d3d065a9f921c80ceaea7c9d4ae596697295b584c296fe599dd0ad01c4a7
|
|
180
|
-
broadcast-ruby (0.
|
|
180
|
+
broadcast-ruby (0.10.0)
|
|
181
181
|
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
|
|
182
182
|
concurrent-ruby (1.3.6) sha256=6b56837e1e7e5292f9864f34b69c5a2cbc75c0cf5338f1ce9903d10fa762d5ab
|
|
183
183
|
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
data/README.md
CHANGED
|
@@ -986,6 +986,10 @@ client.opt_in_forms.update(1, enabled: false)
|
|
|
986
986
|
# Broadcast::ValidationError (422).
|
|
987
987
|
client.opt_in_forms.update(1, trigger_settings: { frequency: 'once_per_day' })
|
|
988
988
|
|
|
989
|
+
# Every N days (Broadcast 2.49 and later): frequency_cookie_days is a whole
|
|
990
|
+
# number, 1 or more; blank means 30.
|
|
991
|
+
client.opt_in_forms.update(1, trigger_settings: { frequency: 'once_per_days', frequency_cookie_days: 7 })
|
|
992
|
+
|
|
989
993
|
# Delete
|
|
990
994
|
client.opt_in_forms.delete(1)
|
|
991
995
|
```
|
|
@@ -9,7 +9,10 @@ module Broadcast
|
|
|
9
9
|
# sees a popup. always and every_visit mean the same. The server refuses any
|
|
10
10
|
# other word with 422 (Broadcast::ValidationError); the client does not
|
|
11
11
|
# check, so an older server is never refused a word it would take.
|
|
12
|
-
|
|
12
|
+
# once_per_days (Broadcast 2.49 and later) shows the popup again after
|
|
13
|
+
# trigger_settings[:frequency_cookie_days] days: a whole number, 1 or
|
|
14
|
+
# more; blank means 30.
|
|
15
|
+
TRIGGER_FREQUENCIES = %w[always every_visit once_per_session once_per_day once_per_week once once_per_days].freeze
|
|
13
16
|
|
|
14
17
|
# List opt-in forms.
|
|
15
18
|
#
|
data/lib/broadcast/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: broadcast-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simon Chiu
|
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
94
|
version: '0'
|
|
95
95
|
requirements: []
|
|
96
|
-
rubygems_version: 4.0.
|
|
96
|
+
rubygems_version: 4.0.17
|
|
97
97
|
specification_version: 4
|
|
98
98
|
summary: Ruby client for the Broadcast email platform
|
|
99
99
|
test_files: []
|