heya 0.8.0 → 0.9.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 +3 -0
- data/README.md +1 -3
- data/app/mailers/heya/campaign_mailer.rb +4 -6
- data/lib/generators/heya/campaign/campaign_generator.rb +10 -2
- data/lib/heya/campaigns/base.rb +1 -1
- data/lib/heya/version.rb +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8cc645db907bf986618b2ee1f6b21c33f55ad8d53c7f27f9c2dc1f7b05960dc
|
|
4
|
+
data.tar.gz: 2aad3fdf5254ccbdd986161c517d6d2052e4d0ec85ab426aa940954a0d9a4008
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcaa2e67bf73027e7d1c8cd813fe02d84a9bc53120c8cfbef9ecd5726537bd0a47fb93d0f711a4adff29c7a6f03592e1615d223c7cce3ee3fa944b008d600f8b
|
|
7
|
+
data.tar.gz: f17a412448e15e95e392baedbe639300aa2f05d4288a65fae805932d2bb1494fad87586b6d13ee64e8ffee26a2e0b6957f530e7d6299797edf464d42f9a5e809
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
|
+
- Rails 7.1 support
|
|
9
|
+
|
|
10
|
+
## [0.8.0] - 2023-03-28
|
|
8
11
|
### Added
|
|
9
12
|
- Add `:headers` mail option (#202, @montekaka)
|
|
10
13
|
|
data/README.md
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
[](https://badge.fury.io/rb/heya)
|
|
4
4
|
[](https://codeclimate.com/github/honeybadger-io/heya/maintainability)
|
|
5
5
|
|
|
6
|
-
[](https://mobile.twitter.com/heyjoshwood)
|
|
7
|
-
|
|
8
6
|
Heya is a campaign mailer for Rails. Think of it like ActionMailer, but for timed email sequences. It can also perform other actions like sending a text message.
|
|
9
7
|
|
|
10
8
|
## Getting started
|
|
@@ -615,7 +613,7 @@ considering adding to Heya.
|
|
|
615
613
|
2. `gem bump -v [version] -t -r`
|
|
616
614
|
3. Update unreleased heading in [CHANGELOG.md](./CHANGELOG.md) (TODO: automate
|
|
617
615
|
this in gem-release command)
|
|
618
|
-
4. `git push origin
|
|
616
|
+
4. `git push origin main --tags`
|
|
619
617
|
|
|
620
618
|
## License
|
|
621
619
|
Heya is licensed under the [LGPL](./LICENSE).
|
|
@@ -48,12 +48,10 @@ module Heya
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def _prefixes
|
|
51
|
-
@_prefixes_with_campaign_path ||=
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
super
|
|
56
|
-
end
|
|
51
|
+
@_prefixes_with_campaign_path ||= if params.is_a?(Hash) && (campaign_name = params[:step]&.campaign&.name&.underscore)
|
|
52
|
+
super | ["heya/campaign_mailer/#{campaign_name}"]
|
|
53
|
+
else
|
|
54
|
+
super
|
|
57
55
|
end
|
|
58
56
|
end
|
|
59
57
|
|
|
@@ -62,8 +62,16 @@ class Heya::CampaignGenerator < Rails::Generators::NamedBase
|
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
def preview_path
|
|
65
|
-
@preview_path ||=
|
|
66
|
-
|
|
65
|
+
@preview_path ||= begin
|
|
66
|
+
preview_path = if ActionMailer::Base.respond_to?(:preview_paths)
|
|
67
|
+
# Rails 7.1+
|
|
68
|
+
ActionMailer::Base.preview_paths.first
|
|
69
|
+
else
|
|
70
|
+
# Rails < 7.1
|
|
71
|
+
ActionMailer::Base.preview_path
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
Pathname(preview_path).sub(Rails.root.to_s, ".") if preview_path
|
|
67
75
|
end
|
|
68
76
|
end
|
|
69
77
|
end
|
data/lib/heya/campaigns/base.rb
CHANGED
data/lib/heya/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: heya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Wood
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -17,9 +17,6 @@ dependencies:
|
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: 5.2.3
|
|
20
|
-
- - "<"
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 7.1.0
|
|
23
20
|
type: :runtime
|
|
24
21
|
prerelease: false
|
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -27,9 +24,6 @@ dependencies:
|
|
|
27
24
|
- - ">="
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: 5.2.3
|
|
30
|
-
- - "<"
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: 7.1.0
|
|
33
27
|
- !ruby/object:Gem::Dependency
|
|
34
28
|
name: pg
|
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -114,7 +108,7 @@ files:
|
|
|
114
108
|
- lib/tasks/heya_tasks.rake
|
|
115
109
|
homepage: https://github.com/honeybadger-io/heya
|
|
116
110
|
licenses:
|
|
117
|
-
-
|
|
111
|
+
- LGPL-3.0
|
|
118
112
|
metadata: {}
|
|
119
113
|
post_install_message: Upgrading from Heya < 0.4? See https://git.io/JtgmW
|
|
120
114
|
rdoc_options: []
|
|
@@ -131,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
131
125
|
- !ruby/object:Gem::Version
|
|
132
126
|
version: '0'
|
|
133
127
|
requirements: []
|
|
134
|
-
rubygems_version: 3.
|
|
128
|
+
rubygems_version: 3.4.10
|
|
135
129
|
signing_key:
|
|
136
130
|
specification_version: 4
|
|
137
131
|
summary: "Heya \U0001F44B"
|