contact_us 1.0.1 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25ce3fc3f61176e4316093a69ae09512d69e4a99
4
- data.tar.gz: d0928b97ea89efb8689f0701b0e36cb7e95a6749
3
+ metadata.gz: 362c93f82604c1bb0719a60e7daf0fc6990e377d
4
+ data.tar.gz: db544e80c7e02e6815be8a16a793486e39eda772
5
5
  SHA512:
6
- metadata.gz: a7bcd8411ea722451e81c8358ef20ab0d32599747a3b2ea9c606286b32b4863faef3ec5728f24feb719017137039f3805965b1c3165e6faf0beef59efae38db2
7
- data.tar.gz: 8cb4ef14ed3f465becd3271acdb2da7c3a0d19f44fd49996ef45be716476ace326d872cdecac5cf6d1edf1bec319744e51752e8c6f9873124b5059288460d072
6
+ metadata.gz: 8efd0645c12998ace526c17d544d680c1e31ca8420410758ce79809e9551d52937b72d7a668b1c673bd0d739f292821c3acd3c1e403fdf3439338efa464ec46a
7
+ data.tar.gz: f27629db4982f646d0a7bffe5506beba108ff1d8705825b279f655c2d857c54a327088153b918670f54e3a0677deecc82fcd3d5f60cd9a0ac21833a149d18d72
data/.gitignore CHANGED
@@ -9,3 +9,5 @@ spec/dummy/db/*.sqlite3
9
9
  spec/dummy/log/*.log
10
10
  spec/dummy/tmp/
11
11
  spec/dummy/Gemfile.lock
12
+ # Mac finder artifacts
13
+ .DS_Store
@@ -1,3 +1,7 @@
1
+ ## ContactUs 1.1.0 (May 1st 2015)
2
+
3
+ * Configurable mailer inheritance. [https://github.com/JDutil/contact_us/pull/53]
4
+
1
5
  ## ContactUs 1.0.1 (April 6th 2015)
2
6
 
3
7
  * Add Traditional Chinese zh-TW translations. [yuchunc]
@@ -1,4 +1,4 @@
1
- class ContactUs::ContactMailer < ActionMailer::Base
1
+ class ContactUs::ContactMailer < ContactUs.parent_mailer.constantize
2
2
  def contact_email(contact)
3
3
  @contact = contact
4
4
 
@@ -19,10 +19,13 @@ module ContactUs
19
19
  # URL after a successful submission
20
20
  mattr_accessor :success_redirect
21
21
 
22
+ # Configure parent mailer
23
+ mattr_accessor :parent_mailer
24
+ @@parent_mailer = "ActionMailer::Base"
25
+
22
26
  # Default way to setup ContactUs. Run rake contact_us:install to create
23
27
  # a fresh initializer with all configuration values.
24
28
  def self.setup
25
29
  yield self
26
30
  end
27
-
28
31
  end
@@ -1,3 +1,3 @@
1
1
  module ContactUs
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -27,4 +27,8 @@ ContactUs.setup do |config|
27
27
  # Configure the redirect URL after a successful submission
28
28
  config.success_redirect = '/'
29
29
 
30
- end
30
+ # Configure the parent action mailer
31
+ # Example:
32
+ # config.parent_mailer = "ActionMailer::Base"
33
+
34
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact_us
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dutil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-06 00:00:00.000000000 Z
11
+ date: 2015-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara