spree_contact_us 1.0.0 → 1.0.1
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.
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# SpreeContactUs [](http://travis-ci.org/jdutil/spree_contact_us) [](https://gemnasium.com/jdutil/
|
1
|
+
# SpreeContactUs [](http://travis-ci.org/jdutil/spree_contact_us) [](https://gemnasium.com/jdutil/spree_contact_us) [][pledgie]
|
2
2
|
A Rails 3+ Engine providing a basic contact form as a Spree Extension.
|
3
3
|
|
4
4
|
[travis]: http://travis-ci.org/jdutil/spree_contact_us
|
@@ -13,11 +13,9 @@ For more information please see https://github.com/jdutil/contact_us
|
|
13
13
|
|
14
14
|
SpreeContactUs requires:
|
15
15
|
|
16
|
-
* Spree Core 1.1.0
|
16
|
+
* Spree Core 1.1.0 or greater
|
17
17
|
* Ruby 1.9.2 or greater.
|
18
18
|
|
19
|
-
If you would like to run on Spree 1.0.x or Ruby 1.8.7 everything should just work by modifying your forks gemspec. I do not intend to support these older versions though.
|
20
|
-
|
21
19
|
## INSTALLATION
|
22
20
|
|
23
21
|
In your `Gemfile`, add the following dependencies:
|
@@ -28,7 +26,7 @@ To install from edge:
|
|
28
26
|
|
29
27
|
Or install from latest stable version:
|
30
28
|
|
31
|
-
gem 'spree_contact_us', '~> 1.0.
|
29
|
+
gem 'spree_contact_us', '~> 1.0.1'
|
32
30
|
|
33
31
|
From `Rails.root` run:
|
34
32
|
|
data/Versionfile
CHANGED
@@ -2,8 +2,9 @@ class Spree::ContactUs::ContactMailer < ActionMailer::Base
|
|
2
2
|
def contact_email(contact)
|
3
3
|
@contact = contact
|
4
4
|
|
5
|
-
mail :from => (SpreeContactUs.mailer_from || contact.email),
|
6
|
-
:
|
5
|
+
mail :from => (SpreeContactUs.mailer_from || @contact.email),
|
6
|
+
:reply_to => @contact.email,
|
7
|
+
:subject => (SpreeContactUs.require_subject ? @contact.subject : t('spree.contact_us.contact_mailer.contact_email.subject', :email => @contact.email)),
|
7
8
|
:to => SpreeContactUs.mailer_to
|
8
9
|
end
|
9
10
|
end
|
@@ -34,6 +34,10 @@ describe Spree::ContactUs::ContactMailer do
|
|
34
34
|
@mailer.from.should eql([@contact.email])
|
35
35
|
end
|
36
36
|
|
37
|
+
it "should use the users email in the reply_to field" do
|
38
|
+
@mailer.reply_to.should eql([@contact.email])
|
39
|
+
end
|
40
|
+
|
37
41
|
it "should have users email in the subject line" do
|
38
42
|
@mailer.subject.should eql("Contact Us message from #{@contact.email}")
|
39
43
|
end
|
data/spree_contact_us.gemspec
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_contact_us'
|
5
|
-
s.version = '1.0.
|
6
|
-
s.summary = 'Reworked the contact_us gem to
|
7
|
-
s.description = 'Reworked the contact_us gem to
|
5
|
+
s.version = '1.0.1'
|
6
|
+
s.summary = 'Reworked the contact_us gem to add a basic contact us form to Spree.'
|
7
|
+
s.description = 'Reworked the contact_us gem to add a basic contact us form to Spree.'
|
8
8
|
s.required_ruby_version = '>= 1.9.2'
|
9
9
|
|
10
10
|
s.author = 'Jeff Dutil'
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_path = 'lib'
|
17
17
|
s.requirements << 'none'
|
18
18
|
|
19
|
-
s.add_dependency 'spree_core', '>= 1.1.0
|
19
|
+
s.add_dependency 'spree_core', '>= 1.1.0'
|
20
20
|
|
21
21
|
s.add_development_dependency 'capybara', '~> 1.1'
|
22
22
|
s.add_development_dependency 'factory_girl', '~> 2.6'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_contact_us
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.1.0
|
21
|
+
version: 1.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.1.0
|
29
|
+
version: 1.1.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: capybara
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,7 +155,7 @@ dependencies:
|
|
155
155
|
- - ~>
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: 1.3.6
|
158
|
-
description: Reworked the contact_us gem to
|
158
|
+
description: Reworked the contact_us gem to add a basic contact us form to Spree.
|
159
159
|
email: jdutil@burlingtonwebapps.com
|
160
160
|
executables: []
|
161
161
|
extensions: []
|
@@ -217,14 +217,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
version: '0'
|
218
218
|
segments:
|
219
219
|
- 0
|
220
|
-
hash:
|
220
|
+
hash: 1503903157609504641
|
221
221
|
requirements:
|
222
222
|
- none
|
223
223
|
rubyforge_project:
|
224
224
|
rubygems_version: 1.8.19
|
225
225
|
signing_key:
|
226
226
|
specification_version: 3
|
227
|
-
summary: Reworked the contact_us gem to
|
227
|
+
summary: Reworked the contact_us gem to add a basic contact us form to Spree.
|
228
228
|
test_files:
|
229
229
|
- spec/lib/generators/spree_contact_us/dummy/config/initializers/spree_contact_us.rb
|
230
230
|
- spec/lib/generators/spree_contact_us/install/install_generator_spec.rb
|