Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Jan 20, 2024
1 parent eb00320 commit 6793a22
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 12 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
### Unreleased

### 2.0.3

* Notifier generator now ensures the `Notifier` suffix.

```bash
rails g noticed:notifier Example #=> app/notifiers/example_notifier.rb
rails g noticed:notifier ExampleNotifier #=> app/notifiers/example_notifier.rb
```

* Delivery method options set to a Symbol will now pass the `notification` argument when calling the method instead of the delivery method instance.

```ruby
class CommentNotifier
deliver_by :email do
config.if = :prefers_email?
end

def prefers_email?(notification)
notification.recipient.preferences[:email]
end
end
```

### 2.0.2

* Add `Noticed::NotificationChannel` and change defaults for ActionCable deliveries to this channel and stream to `recipient`
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
noticed (2.0.2)
noticed (2.0.3)
rails (>= 6.1.0)

GEM
Expand Down Expand Up @@ -141,7 +141,6 @@ GEM
net-smtp
marcel (1.0.2)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.21.1)
multi_json (1.15.0)
mutex_m (0.2.0)
Expand Down Expand Up @@ -244,8 +243,9 @@ GEM
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
sqlite3 (1.6.9)
mini_portile2 (~> 2.8.0)
sqlite3 (1.6.9-arm64-darwin)
sqlite3 (1.6.9-x86_64-darwin)
sqlite3 (1.6.9-x86_64-linux)
standard (1.33.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/rails_6_1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
noticed (2.0.2)
noticed (2.0.3)
rails (>= 6.1.0)

GEM
Expand Down Expand Up @@ -217,6 +217,7 @@ GEM
sprockets (>= 3.0.0)
sqlite3 (1.6.9)
mini_portile2 (~> 2.8.0)
sqlite3 (1.6.9-arm64-darwin)
standard (1.33.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/rails_7.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
noticed (2.0.2)
noticed (2.0.3)
rails (>= 6.1.0)

GEM
Expand Down Expand Up @@ -216,6 +216,7 @@ GEM
multi_json (~> 1.10)
sqlite3 (1.6.9)
mini_portile2 (~> 2.8.0)
sqlite3 (1.6.9-arm64-darwin)
standard (1.33.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/rails_7_1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
noticed (2.0.2)
noticed (2.0.3)
rails (>= 6.1.0)

GEM
Expand Down Expand Up @@ -246,6 +246,7 @@ GEM
multi_json (~> 1.10)
sqlite3 (1.6.9)
mini_portile2 (~> 2.8.0)
sqlite3 (1.6.9-arm64-darwin)
standard (1.33.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
Expand Down
8 changes: 4 additions & 4 deletions gemfiles/rails_main.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ GIT
PATH
remote: ..
specs:
noticed (2.0.2)
noticed (2.0.3)
rails (>= 6.1.0)

GEM
Expand Down Expand Up @@ -163,7 +163,6 @@ GEM
net-smtp
marcel (1.0.2)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.21.1)
multi_json (1.15.0)
mysql2 (0.5.5)
Expand Down Expand Up @@ -243,8 +242,9 @@ GEM
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
sqlite3 (1.6.9)
mini_portile2 (~> 2.8.0)
sqlite3 (1.6.9-arm64-darwin)
sqlite3 (1.6.9-x86_64-darwin)
sqlite3 (1.6.9-x86_64-linux)
standard (1.33.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/noticed/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Noticed
VERSION = "2.0.2"
VERSION = "2.0.3"
end

0 comments on commit 6793a22

Please sign in to comment.