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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b62c24ca1e5b121e011e64c10496a35f68ff745
4
- data.tar.gz: 5b8342831de849ca10af2598dee47247f58c56f1
3
+ metadata.gz: 26572c46ffe1d34463279788acce7eae835c8645
4
+ data.tar.gz: 92ac15a7c3209d0a956e245e733398366baf992e
5
5
  SHA512:
6
- metadata.gz: 047dad307091e5079a7ecda83d4818b902d8707c0149b907e67b4e6314cc2bacbb8ab9785725d5c9f51b09337560ca665d0d1e755293369a51763c188181ac86
7
- data.tar.gz: 68521fe8f73cc69e62134af8670c0a404fe0b311396253e373689bc5f723f1da3da0bbf04ea5c7754fde95411449f0b34f63fe153de1881704aaa2f25d8f3fa9
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.1)
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.19)
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.3)
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: @from_email,
17
+ from: @actual_from,
18
+ reply_to: @from_email,
16
19
  subject: options[:subject],
17
20
  text: @message,
18
21
  content_type: "text/html"
@@ -1,5 +1,5 @@
1
1
  module TrustyRadSocialExtension
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  SUMMARY = "Rad Social for Trusty CMS"
4
4
  DESCRIPTION = "Makes Trusty CMS better by adding rad_social!"
5
5
  URL = "http://example.com/rad_social"
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.1
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-03-25 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: recaptcha