spree_contact_us 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ *SpreeContactUs 1.0.2 (unreleased)*
2
+
3
+ * Changed route to /contact-us from /contract_us for seo. [Jeff Dutil]
4
+
5
+ * Allow Spree Core 1.0.x [Jeff Dutil]
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.1.0 or greater
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.1'
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.name = true
54
- config.subject = true
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 `/contact_us` to see the form in action.
60
+ Visit your website and navigate to `/contact-us` to see the form in action.
61
61
 
62
62
  ## ISSUES
63
63
 
@@ -8,3 +8,4 @@
8
8
  # "0.40.x" => { :tag => "v1.0.0", :version => "1.0.0" }
9
9
 
10
10
  "1.1.x" => { :branch => "master" }
11
+ "1.0.x" => { :branch => "master" }
@@ -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('//','/') == '/contact_us') ? 'current' : 'not'%>'><%= link_to t('spree.contact_us.contacts.new.contact_us'), '/contact_us' %></li>")
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('//','/') == '/contact_us') ? 'current' : 'not'%>'><%= link_to t('spree.contact_us.contacts.new.contact_us'), '/contact_us' %></li>")
4
+ :text => "<li class='<%= (request.fullpath.gsub('//','/') == '/contact-us') ? 'current' : 'not'%>'><%= link_to t('spree.contact_us.contacts.new.contact_us'), '/contact-us' %></li>")
@@ -2,5 +2,5 @@ Spree::Core::Engine.routes.draw do
2
2
  resources :contacts,
3
3
  :controller => 'contact_us/contacts',
4
4
  :only => [:new, :create]
5
- match 'contact_us' => 'contact_us/contacts#new'
5
+ match 'contact-us' => 'contact_us/contacts#new', :as => :contact_us
6
6
  end
@@ -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.1'
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.1.0'
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.1
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-04 00:00:00.000000000 Z
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.1.0
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.1.0
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: 1503903157609504641
221
+ hash: -667131006771228683
221
222
  requirements:
222
223
  - none
223
224
  rubyforge_project: