spree_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.
- data/CHANGELOG +5 -0
- data/README.md +5 -5
- data/Versionfile +1 -0
- data/app/overrides/contact_us_in_footer.rb +1 -1
- data/app/overrides/contact_us_in_header.rb +1 -1
- data/config/routes.rb +1 -1
- data/spree_contact_us.gemspec +2 -2
- metadata +6 -5
data/CHANGELOG
ADDED
data/README.md
CHANGED
|
@@ -13,7 +13,7 @@ For more information please see https://github.com/jdutil/contact_us
|
|
|
13
13
|
|
|
14
14
|
SpreeContactUs requires:
|
|
15
15
|
|
|
16
|
-
* Spree Core 1.
|
|
16
|
+
* Spree Core 1.0.0 or greater
|
|
17
17
|
* Ruby 1.9.2 or greater.
|
|
18
18
|
|
|
19
19
|
## INSTALLATION
|
|
@@ -26,7 +26,7 @@ To install from edge:
|
|
|
26
26
|
|
|
27
27
|
Or install from latest stable version:
|
|
28
28
|
|
|
29
|
-
gem 'spree_contact_us', '~> 1.0
|
|
29
|
+
gem 'spree_contact_us', '~> 1.1.0'
|
|
30
30
|
|
|
31
31
|
From `Rails.root` run:
|
|
32
32
|
|
|
@@ -50,14 +50,14 @@ You may also specify an email address for the notification emails from field:
|
|
|
50
50
|
|
|
51
51
|
If you would like to add a name or subject field to the form you may simply set the options to true within the spree_contact_us initializer located at `config/initializers/spree_contact_us.rb`:
|
|
52
52
|
|
|
53
|
-
config.
|
|
54
|
-
config.
|
|
53
|
+
config.require_name = true
|
|
54
|
+
config.require_subject = true
|
|
55
55
|
|
|
56
56
|
You may also update your locales under `config/locales/spree_contact_us.en.yml` or create your own. Please feel free to submit your own locales so that other users will hopefully find this gem more useful.
|
|
57
57
|
|
|
58
58
|
## USAGE
|
|
59
59
|
|
|
60
|
-
Visit your website and navigate to `/
|
|
60
|
+
Visit your website and navigate to `/contact-us` to see the form in action.
|
|
61
61
|
|
|
62
62
|
## ISSUES
|
|
63
63
|
|
data/Versionfile
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Deface::Override.new(:virtual_path => "spree/layouts/spree_application",
|
|
3
3
|
:name => "contact_us_in_footer",
|
|
4
4
|
:insert_bottom => "#footer-pages ul",
|
|
5
|
-
:text => "<li class='<%= (request.fullpath.gsub('//','/') == '/
|
|
5
|
+
:text => "<li class='<%= (request.fullpath.gsub('//','/') == '/contact-us') ? 'current' : 'not'%>'><%= link_to t('spree.contact_us.contacts.new.contact_us'), '/contact-us' %></li>")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Deface::Override.new(:virtual_path => "spree/layouts/spree_application",
|
|
2
2
|
:name => "contact_us_in_header",
|
|
3
3
|
:insert_bottom => "#main-nav-bar",
|
|
4
|
-
:text => "<li class='<%= (request.fullpath.gsub('//','/') == '/
|
|
4
|
+
:text => "<li class='<%= (request.fullpath.gsub('//','/') == '/contact-us') ? 'current' : 'not'%>'><%= link_to t('spree.contact_us.contacts.new.contact_us'), '/contact-us' %></li>")
|
data/config/routes.rb
CHANGED
data/spree_contact_us.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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
|
|
5
|
+
s.version = '1.1.0'
|
|
6
6
|
s.summary = 'Reworked the contact_us gem to add a basic contact us form to Spree.'
|
|
7
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'
|
|
@@ -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.
|
|
19
|
+
s.add_dependency 'spree_core', '>= 1.0.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.1.0
|
|
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-05-
|
|
12
|
+
date: 2012-05-16 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.
|
|
21
|
+
version: 1.0.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.
|
|
29
|
+
version: 1.0.0
|
|
30
30
|
- !ruby/object:Gem::Dependency
|
|
31
31
|
name: capybara
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -164,6 +164,7 @@ files:
|
|
|
164
164
|
- .gitignore
|
|
165
165
|
- .rspec
|
|
166
166
|
- .travis.yml
|
|
167
|
+
- CHANGELOG
|
|
167
168
|
- Gemfile
|
|
168
169
|
- LICENSE
|
|
169
170
|
- README.md
|
|
@@ -217,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
217
218
|
version: '0'
|
|
218
219
|
segments:
|
|
219
220
|
- 0
|
|
220
|
-
hash:
|
|
221
|
+
hash: -667131006771228683
|
|
221
222
|
requirements:
|
|
222
223
|
- none
|
|
223
224
|
rubyforge_project:
|