noticent 0.0.3 → 0.0.4
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/Gemfile.lock +1 -1
- data/README.md +2 -3
- data/lib/noticent/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acd956f63f8b4ba05b882f00442dd1eca4c44080c2bd938182a573d667400154
|
|
4
|
+
data.tar.gz: 7e28dbde7a0e41cab81d4763ecf7517f4208bb842117b9a4c7002abbf9f1da26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7727463c97770d5ecdfcd5f815866425009c12ba045577f6a47ec7287981be322d940a2e6878108abaa9f6df2059e035535e05d901aea830a76711985696517
|
|
7
|
+
data.tar.gz: e17267ecc973acebcdd659d4043c31f36bd09cbb3bb23e6a9b5a50cfe5fa275003c351dfd2089adb71ab8f34436302177a3ed5fb012bfe8da3035ed540946d2b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -95,7 +95,7 @@ Noticent.configure do
|
|
|
95
95
|
channel :email
|
|
96
96
|
|
|
97
97
|
scope :account do
|
|
98
|
-
alert(:new_signup){ notify :owner}
|
|
98
|
+
alert(:new_signup) { notify :owner}
|
|
99
99
|
alert(:new_team_member) { notify :users }
|
|
100
100
|
end
|
|
101
101
|
end
|
|
@@ -115,7 +115,7 @@ class Email < ::Noticent::Channel
|
|
|
115
115
|
end
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
Now that we have our channel, we can define a Payload. We can do this in `app/
|
|
118
|
+
Now that we have our channel, we can define a Payload. We can do this in `app/models/noticent/account_payload.rb`:
|
|
119
119
|
|
|
120
120
|
```ruby
|
|
121
121
|
class AccountPayload
|
|
@@ -165,7 +165,6 @@ In the channel, you can use this:
|
|
|
165
165
|
|
|
166
166
|
```ruby
|
|
167
167
|
class EmailChannel < ::Noticent::Channel
|
|
168
|
-
|
|
169
168
|
def new_member
|
|
170
169
|
data, content = render
|
|
171
170
|
send_email(subject: data[:subject], content: content) # this is an example code
|
data/lib/noticent/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: noticent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Khash Sajadi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -294,7 +294,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
294
294
|
- !ruby/object:Gem::Version
|
|
295
295
|
version: '0'
|
|
296
296
|
requirements: []
|
|
297
|
-
|
|
297
|
+
rubyforge_project:
|
|
298
|
+
rubygems_version: 2.7.6.2
|
|
298
299
|
signing_key:
|
|
299
300
|
specification_version: 4
|
|
300
301
|
summary: Act as Notified is a flexible framework to add notifications to a Rails application
|