actionmessage 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/README.md +5 -6
- data/lib/action_message/railtie.rb +1 -1
- data/lib/action_message/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 487b68d4465d5210a879670807e6d10053ff6125
|
4
|
+
data.tar.gz: 4e91f29afce4f7831a2d06206529c14c17913fc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb8faa19de04c284bdf83ca902bc76b49923502c8f97a9307fd48b3c68f4378f186896acdb37d17876d4d2025e569fb32a6eed97a49c07f390a2f64668d0e1a0
|
7
|
+
data.tar.gz: fe625d1a9fd12449bfb7040ed94568d047ccc4c0dd19399dba7a1c41c2c8ec7c00d13f830a990bbdd230fb7e6c969c50660499d47d302b6efac75e2f7ff7ed7b
|
data/README.md
CHANGED
@@ -34,24 +34,23 @@ config.action_message = {
|
|
34
34
|
}
|
35
35
|
```
|
36
36
|
|
37
|
-
Put this for example, under app/messages/
|
37
|
+
Put this for example, under app/messages/welcome_message.rb
|
38
38
|
```ruby
|
39
|
-
class
|
40
|
-
def send_welcome_sms(name)
|
39
|
+
class WelcomeMessage < ActionMessage::Base
|
40
|
+
def send_welcome_sms(name, phone_number_to_send_message)
|
41
41
|
@name = name
|
42
|
-
sms(to:
|
42
|
+
sms(to: phone_number_to_send_message)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
```
|
46
46
|
|
47
|
-
Define your views under your view path, such as: app/views/
|
47
|
+
Define your views under your view path, such as: app/views/welcome_message/send_welcome_sms.text.erb
|
48
48
|
```html
|
49
49
|
Welcome, <%= @name %>!
|
50
50
|
```
|
51
51
|
|
52
52
|
Pending implementations:
|
53
53
|
|
54
|
-
- Add background processing (deliver_later);
|
55
54
|
- Log instrumentation with ActiveSupport;
|
56
55
|
- Add generators;
|
57
56
|
- Add test helpers for deliveries count, matching message.body, message.to, etc;
|
@@ -4,7 +4,7 @@ require "rails"
|
|
4
4
|
module ActionMessage
|
5
5
|
class Railtie < Rails::Railtie # :nodoc:
|
6
6
|
config.action_message = ActiveSupport::OrderedOptions.new
|
7
|
-
config.eager_load_namespaces << ActionMessage
|
7
|
+
# config.eager_load_namespaces << ActionMessage
|
8
8
|
|
9
9
|
initializer "action_message.set_configs" do |app|
|
10
10
|
options = app.config.action_message
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionmessage
|
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
|
- Diego Ballona
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|