text_message_rails 0.1.2 → 0.1.3
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/lib/text_message_rails/controller.rb +8 -8
- data/lib/text_message_rails/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: 374c53c0781155471fca1a04dc2cf28cbef740b6
|
4
|
+
data.tar.gz: 41bf8f06dc37f695801d024dc7952470704141d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8c0b3ee86fc555a8240197e92595bede755028bc9e266c8c71f3e49ac6fe02aa5b66686a9a2e92e8ed82291604ebd1e6259066352e31ee8192680bbd9726fdb
|
7
|
+
data.tar.gz: f3af390a232e14a6ae4a2c3f8bf02267b684baf1749db42e7a45fa36cc89c53cc94b8b255f3d7591e2069cee0467688027d3e56b4f005c68b5586d6d4bc8f0ff
|
@@ -4,9 +4,8 @@ module TextMessage
|
|
4
4
|
|
5
5
|
# = TextMessage controller base class
|
6
6
|
# This class acts as a controller, similar to +ActionMailer::Controller+ subclasses.
|
7
|
-
|
8
|
-
#
|
9
|
-
# - implement action methods as in a "usual" controller
|
7
|
+
#
|
8
|
+
# To use it implement action methods as in a mailer:
|
10
9
|
#
|
11
10
|
# class TextMessageTest < TextMessage::Controller
|
12
11
|
#
|
@@ -51,20 +50,21 @@ module TextMessage
|
|
51
50
|
|
52
51
|
class << self
|
53
52
|
|
53
|
+
@@default_url_options = nil
|
54
54
|
def default_url_options=(options)
|
55
|
-
@@default_url_options =
|
55
|
+
@@default_url_options = options
|
56
56
|
end
|
57
57
|
# Reuses ActionMailer url options by default
|
58
58
|
def default_url_options
|
59
59
|
@@default_url_options || ActionMailer::Base.default_url_options
|
60
60
|
end
|
61
61
|
|
62
|
-
|
63
|
-
|
62
|
+
@@provider = nil
|
63
|
+
def provider=(provider)
|
64
|
+
@@provider = provider;
|
64
65
|
end
|
65
|
-
# Defaults provider to the Base (empty) provider: will raise !
|
66
66
|
def provider
|
67
|
-
@@provider || TextMessage::Providers::Base
|
67
|
+
@@provider || TextMessage::Providers::Base;
|
68
68
|
end
|
69
69
|
|
70
70
|
# Respond to the action methods directly on the class
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: text_message_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aurélien Noce
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|