siamese 0.1.0 → 0.1.2
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 +0 -2
- data/lib/siamese/version.rb +1 -1
- data/lib/siamese.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f68e3da35c7577d25e69a1bf18814da23560e64991ca3f469928458e7a87fd43
|
|
4
|
+
data.tar.gz: 69ae4a7e06e4338baad84b00f5ac068da9f397e31c38fd25f27658029fec2f16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a30c644b961b91ddb8de949e612ed54112c45a668a236fcf84c6f416627222995b77120085411eecb6983f0067e7e8d814228cd7bacf03268dbdfe8d4352d353
|
|
7
|
+
data.tar.gz: 7d774be802878a04cafd3b0e4f15208a33907a2db30338882da6da63b18b309ba24878d58ea4123075b1cc06992db8f404dc0bf8511ca662cb25bcf2a256e9da
|
data/README.md
CHANGED
|
@@ -15,8 +15,6 @@ gem 'siamese'
|
|
|
15
15
|
Configure in an initializer:
|
|
16
16
|
```ruby
|
|
17
17
|
# config/initializers/siamese.rb
|
|
18
|
-
require "siamese"
|
|
19
|
-
|
|
20
18
|
Siamese.configure do |config|
|
|
21
19
|
config.twilio_account_sid = Rails.application.credentials[:twilio_account_sid]
|
|
22
20
|
config.twilio_auth_token = Rails.application.credentials[:twilio_auth_token]
|
data/lib/siamese/version.rb
CHANGED
data/lib/siamese.rb
CHANGED
|
@@ -27,13 +27,13 @@ module Siamese
|
|
|
27
27
|
if Rails.env.production?
|
|
28
28
|
while deliveries.any?
|
|
29
29
|
attributes = deliveries.pop
|
|
30
|
-
client.api.account.messages.create(attributes)
|
|
30
|
+
client.api.account.messages.create(**attributes)
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def client
|
|
36
|
-
@client ||= Twilio::REST::Client.new(
|
|
36
|
+
@client ||= Twilio::REST::Client.new(twilio_account_sid, twilio_auth_token)
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: siamese
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Micah Geisel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: twilio-ruby
|
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
66
|
version: '0'
|
|
67
67
|
requirements: []
|
|
68
|
-
rubygems_version: 3.
|
|
68
|
+
rubygems_version: 3.2.32
|
|
69
69
|
signing_key:
|
|
70
70
|
specification_version: 4
|
|
71
71
|
summary: Send SMS messages in Rails with Twilio
|