trusty-rad-social-extension 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +5 -1
- data/app/models/rad_social_mailer.rb +4 -1
- data/lib/trusty-rad-social-extension.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: 26572c46ffe1d34463279788acce7eae835c8645
|
4
|
+
data.tar.gz: 92ac15a7c3209d0a956e245e733398366baf992e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f235f695f051345113b00ff934b59af9c14e6dbeb30f3c9a3524c7d8bc084cd1dd21c013b9c5ed444c4316e28cc13333376cde148294305e2841931880071712
|
7
|
+
data.tar.gz: 204ed199eb06e0ee4b1cc468d0d0a7304140a612e6248e0418ac2e67f6b03b1c6a965b21aa615a0e344f6e5cb1d17daf834ec0922626c7f599de741fbcc61959
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trusty-rad-social-extension (2.2.
|
4
|
+
trusty-rad-social-extension (2.2.2)
|
5
5
|
recaptcha (~> 0.3.6)
|
6
6
|
roadie-rails (~> 1.0.6)
|
7
7
|
trusty-cms (~> 2.0.0)
|
@@ -247,7 +247,7 @@ GEM
|
|
247
247
|
thor (0.19.1)
|
248
248
|
thread_safe (0.3.5)
|
249
249
|
tilt (1.4.1)
|
250
|
-
trusty-cms (2.0.
|
250
|
+
trusty-cms (2.0.20)
|
251
251
|
RedCloth (~> 4.2)
|
252
252
|
acts_as_tree (~> 2.1)
|
253
253
|
bundler (~> 1.7)
|
@@ -272,7 +272,7 @@ GEM
|
|
272
272
|
tzinfo (~> 1.2)
|
273
273
|
uglifier (~> 2.6)
|
274
274
|
will_paginate (~> 3.0)
|
275
|
-
trusty-layouts-extension (2.0.
|
275
|
+
trusty-layouts-extension (2.0.4)
|
276
276
|
trusty-cms (~> 2.0.16)
|
277
277
|
trustygems (0.2.1)
|
278
278
|
rake
|
data/README.md
CHANGED
@@ -4,4 +4,8 @@
|
|
4
4
|
|
5
5
|
A TrustyCMS take on a social sharing widget.
|
6
6
|
|
7
|
-
Created by Eric Sipple.
|
7
|
+
Created by Eric Sipple.
|
8
|
+
|
9
|
+
# Usage
|
10
|
+
|
11
|
+
If the RAD_SOCIAL_FROM_EMAIL variable is set in your application, RAD emails will be sent from that address. Otherwise, it will default to the social sharer's from email address input.
|
@@ -9,10 +9,13 @@ class RadSocialMailer < ActionMailer::Base
|
|
9
9
|
@from_name = from_address.display_name
|
10
10
|
@from_email = from_address
|
11
11
|
@message = options[:message]
|
12
|
+
@actual_from = ENV['RAD_SOCIAL_FROM_EMAIL']
|
13
|
+
@actual_from = from_address if @actual_from.nil?
|
12
14
|
|
13
15
|
mail({
|
14
16
|
to: options[:to],
|
15
|
-
from: @
|
17
|
+
from: @actual_from,
|
18
|
+
reply_to: @from_email,
|
16
19
|
subject: options[:subject],
|
17
20
|
text: @message,
|
18
21
|
content_type: "text/html"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-rad-social-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sipple, Brittany Martin, Danielle Greaves
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: recaptcha
|