spree_frontend 2.0.5 → 2.0.6

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: 4648f59f227cbb4cdc23403055f4910dcc48dc61
4
- data.tar.gz: 536af35efd794e1431a1e57255fa705e1b653719
3
+ metadata.gz: 9e329bd5468c79c26df7443dcb6832d4b1427aad
4
+ data.tar.gz: 58c60c6e1f5ba57f4c4d1d75fc0b0a1507494e52
5
5
  SHA512:
6
- metadata.gz: 4af58cfefc3867d11eee4258766426906e37d49e5c01998835af6d01d5773c47a95903801faaa2ada1b219b252140070a21e797620e795402b767357002e7fcb
7
- data.tar.gz: ae39a90aad057acc766b596e27001b197201248df68db24dcdd8f03632621877172c83011035a54ce9df6087f17dcca6e858d917b5e270a2fcfd98e454bdbb53
6
+ metadata.gz: 9078a1b7758639ff967d86dbfad29615003f6fafcf9d46060179d994870e6798c1157dba2f13adcd7ccd01b80ce233c4b134fdea0bf3bd95734766d68d7b5fc7
7
+ data.tar.gz: 0e86c6caa2fcf1646570ee62295a54d197f15d7c7361dd42449a97ab7455f1211b1ba7db674eb9d805409842d6f6a7e5e99a865d5e354a272a20765d62ff561e
@@ -118,7 +118,7 @@ input[type="week"] {
118
118
  font-size: $input_box_font_size;
119
119
 
120
120
  &:active, &:focus {
121
- border-color: $link_text_color;;
121
+ border-color: $link_text_color;
122
122
  outline: none;
123
123
  -webkit-box-shadow: none;
124
124
  -moz-box-shadow: none;
@@ -300,7 +300,7 @@ nav #main-nav-bar {
300
300
  &#link-to-cart {
301
301
  float: right;
302
302
  padding-left: 24px;
303
- background: url("cart.png") no-repeat left center;
303
+ background: asset-url("store/cart.png", image) no-repeat left center;
304
304
 
305
305
  &:hover {
306
306
  border-color: $link_text_color;
@@ -148,8 +148,9 @@ module Spree
148
148
  end
149
149
  end
150
150
 
151
- def rescue_from_spree_gateway_error
151
+ def rescue_from_spree_gateway_error(exception)
152
152
  flash[:error] = Spree.t(:spree_gateway_error_flash_for_checkout)
153
+ @order.errors.add(:base, exception.message)
153
154
  render :edit
154
155
  end
155
156
 
@@ -26,7 +26,7 @@ module Spree
26
26
  # Do nothing
27
27
  else
28
28
  if referer_path && referer_path.match(/\/t\/(.*)/)
29
- @taxon = Taxon.find_by_permalink($1)
29
+ @taxon = Spree::Taxon.find_by_permalink($1)
30
30
  end
31
31
  end
32
32
  end
@@ -26,3 +26,7 @@
26
26
  </div>
27
27
 
28
28
  </div>
29
+
30
+ <% if I18n.locale != :en %>
31
+ <script src='/assets/jquery.validate/localization/messages_<%= I18n.locale %>.js'></script>
32
+ <% end %>
@@ -9,7 +9,7 @@
9
9
  <% end %>
10
10
  </td>
11
11
  <td class="cart-item-description" data-hook="cart_item_description">
12
- <h4><%= link_to variant.product.name, product_path(variant.product) %></h4>
12
+ <h4><%= link_to line_item.name, product_path(variant.product) %></h4>
13
13
  <%= variant.options_text %>
14
14
  <% if @order.insufficient_stock_lines.include? line_item %>
15
15
  <span class="out-of-stock">
@@ -17,7 +17,7 @@
17
17
  </span>
18
18
  <% end %>
19
19
  <span class="line-item-description" data-hook="line_item_description">
20
- <%= line_item_description(variant) %>
20
+ <%= line_item_description_text(line_item.description) %>
21
21
  </span>
22
22
  </td>
23
23
  <td class="cart-item-price" data-hook="cart_item_price">
@@ -3,7 +3,7 @@
3
3
  <%= select_tag :taxon,
4
4
  options_for_select([[Spree.t(:all_departments), '']] +
5
5
  @taxons.map {|t| [t.name, t.id]},
6
- @taxon ? @taxon.id : params[:taxon]) %>
6
+ @taxon ? @taxon.id : params[:taxon]), 'aria-label' => 'Taxon' %>
7
7
  <%= search_field_tag :keywords, params[:keywords], :placeholder => Spree.t(:search) %>
8
8
  <%= submit_tag Spree.t(:search), :name => nil %>
9
9
  <% end %>
data/config/routes.rb CHANGED
@@ -22,7 +22,7 @@ Spree::Core::Engine.routes.draw do
22
22
  get '/orders/populate', :via => :get, :to => populate_redirect
23
23
  match '/orders/:id/token/:token' => 'orders#show', :via => :get, :as => :token_order
24
24
 
25
- resources :orders do
25
+ resources :orders, :except => [:new, :create] do
26
26
  post :populate, :on => :collection
27
27
  end
28
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-16 00:00:00.000000000 Z
11
+ date: 2013-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.5
19
+ version: 2.0.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.5
26
+ version: 2.0.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spree_api
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.5
33
+ version: 2.0.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.0.5
40
+ version: 2.0.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jquery-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.2.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: capybara-accessible
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  description: Required dependency for Spree
126
140
  email: sean@spreecommerce.com
127
141
  executables: []
@@ -194,7 +208,6 @@ files:
194
208
  - app/views/spree/orders/_form.html.erb
195
209
  - app/views/spree/orders/_line_item.html.erb
196
210
  - app/views/spree/orders/edit.html.erb
197
- - app/views/spree/orders/new.html.erb
198
211
  - app/views/spree/orders/show.html.erb
199
212
  - app/views/spree/products/_cart_form.html.erb
200
213
  - app/views/spree/products/_image.html.erb
@@ -228,7 +241,6 @@ files:
228
241
  - config/routes.rb
229
242
  - lib/spree/frontend/engine.rb
230
243
  - lib/spree/frontend/middleware/seo_assist.rb
231
- - lib/spree/frontend/preference_rescue.rb
232
244
  - lib/spree/frontend.rb
233
245
  - lib/spree/scopes/dynamic.rb
234
246
  - lib/spree_frontend.rb
@@ -1,9 +0,0 @@
1
- <% @body_id = 'cart' %>
2
-
3
- <h1><%= Spree.t(:shopping_cart) %></h1>
4
-
5
- <%= form_for @order, :url =>'#', :method => :put do |order_form| %>
6
- <%= render :partial => 'form', :locals => { :order_form => order_form } %>
7
- <% end %>
8
-
9
- <p><%= link_to Spree.t(:continue_shopping), products_path %></p>
@@ -1,25 +0,0 @@
1
- module Spree
2
- class OldPrefs < ActiveRecord::Base
3
- self.table_name = "spree_preferences"
4
- belongs_to :owner, :polymorphic => true
5
- attr_accessor :owner_klass
6
- end
7
-
8
- class PreferenceRescue
9
- def self.try
10
- OldPrefs.where(:key => nil).each do |old_pref|
11
- next unless owner = (old_pref.owner rescue nil)
12
- unless old_pref.owner_type == "Spree::Activator" || old_pref.owner_type == "Spree::Configuration"
13
- begin
14
- old_pref.key = [owner.class.name, old_pref.name, owner.id].join('::').underscore
15
- old_pref.value_type = owner.preference_type(old_pref.name)
16
- puts "Migrating Preference: #{old_pref.key}"
17
- old_pref.save
18
- rescue NoMethodError => ex
19
- puts ex.message
20
- end
21
- end
22
- end
23
- end
24
- end
25
- end