spree_core 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/spree/base_helper.rb +2 -1
  3. data/app/models/spree/adjustment.rb +2 -1
  4. data/app/models/spree/calculator/shipping/flat_percent_item_total.rb +5 -3
  5. data/app/models/spree/calculator/shipping/flexi_rate.rb +5 -3
  6. data/app/models/spree/calculator/shipping/per_item.rb +5 -2
  7. data/app/models/spree/calculator/shipping/price_sack.rb +5 -2
  8. data/app/models/spree/order.rb +7 -2
  9. data/app/models/spree/payment/processing.rb +7 -3
  10. data/app/models/spree/product/scopes.rb +2 -2
  11. data/app/models/spree/shipment.rb +2 -2
  12. data/app/models/spree/tax_rate.rb +3 -4
  13. data/config/locales/en.yml +4 -0
  14. data/db/migrate/20130611054351_rename_shipping_methods_zones_to_spree_shipping_methods_zones.rb +5 -0
  15. data/db/migrate/20140927193717_default_pre_tax_amount_should_be_zero.rb +6 -0
  16. data/lib/generators/spree/install/templates/vendor/assets/javascripts/spree/backend/all.js +1 -2
  17. data/lib/generators/spree/install/templates/vendor/assets/javascripts/spree/frontend/all.js +1 -2
  18. data/lib/generators/spree/install/templates/vendor/assets/stylesheets/spree/backend/all.css +1 -2
  19. data/lib/generators/spree/install/templates/vendor/assets/stylesheets/spree/frontend/all.css +1 -2
  20. data/lib/spree/core/controller_helpers/auth.rb +2 -3
  21. data/lib/spree/core/importer/order.rb +13 -7
  22. data/lib/spree/core/product_filters.rb +1 -2
  23. data/lib/spree/core/version.rb +1 -1
  24. data/lib/spree/testing_support/factories/product_factory.rb +1 -1
  25. data/lib/spree/testing_support/factories/return_authorization_factory.rb +0 -1
  26. data/lib/spree/testing_support/factories/shipment_factory.rb +0 -1
  27. data/lib/spree/testing_support/factories/variant_factory.rb +1 -1
  28. data/lib/spree/testing_support/factories.rb +2 -0
  29. data/lib/tasks/core.rake +2 -2
  30. metadata +11 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b180601af90a25cab2272036e7e46087ad23181
4
- data.tar.gz: 9380b234a2c586b66ca775c79d6299d9d65c5b0b
3
+ metadata.gz: cf31759b42f3d9c77f519a0a834197545d65fe4d
4
+ data.tar.gz: e2950f378e975c121125d09ffb62aec3ecd97378
5
5
  SHA512:
6
- metadata.gz: b175161e97670be7b65499e3b07b105f62847bd5ee18a7f07cfb83215c0756d6ff99bb617986ffcb860dfecc440df8f63b9313048cc6e7bcdac7428e58c9c3fc
7
- data.tar.gz: a3a4564276563192dc89b30e225aff9b28ccc5c1ddaeb0696403f6a8a062df67267fe152154c15f7cc0274c0cccf7408131a430c679d4ad6c7e2fbd0b8ac3ce6
6
+ metadata.gz: 4e41ee0be0df3a866211bc0c9b96fa1cfe803317f1c0b286d1c8d241e639eff8afd5886a78a55c5b3ee6dd38cc8601c5957898b07cf0cfd65070d66804243b60
7
+ data.tar.gz: 6bb17dd15d7e92b168eaba7f5d6b662a193a6739125ff3a7ee33ff08a76979924b463964b791b67e8d79e8f3c4e5de1bf694ab0e4bcaae9b9835b6da272c3f33
@@ -162,9 +162,10 @@ module Spree
162
162
  end
163
163
 
164
164
  private
165
+
165
166
  # Returns style of image or nil
166
167
  def image_style_from_method_name(method_name)
167
- if style = method_name.to_s.sub(/_image$/, '')
168
+ if method_name.to_s.match(/_image$/) && style = method_name.to_s.sub(/_image$/, '')
168
169
  possible_styles = Spree::Image.attachment_definitions[:attachment][:styles]
169
170
  style if style.in? possible_styles.with_indifferent_access
170
171
  end
@@ -22,7 +22,7 @@
22
22
  # it might be reinstated.
23
23
  module Spree
24
24
  class Adjustment < Spree::Base
25
- belongs_to :adjustable, polymorphic: true
25
+ belongs_to :adjustable, polymorphic: true, touch: true
26
26
  belongs_to :source, polymorphic: true
27
27
  belongs_to :order, class_name: "Spree::Order"
28
28
 
@@ -40,6 +40,7 @@ module Spree
40
40
  end
41
41
 
42
42
  after_create :update_adjustable_adjustment_total
43
+ after_destroy :update_adjustable_adjustment_total
43
44
 
44
45
  scope :open, -> { where(state: 'open') }
45
46
  scope :closed, -> { where(state: 'closed') }
@@ -10,9 +10,11 @@ module Spree
10
10
  end
11
11
 
12
12
  def compute_package(package)
13
- content_items = package.contents
14
- item_total = total(content_items)
15
- value = item_total * BigDecimal(self.preferred_flat_percent.to_s) / 100.0
13
+ compute_from_price(total(package.contents))
14
+ end
15
+
16
+ def compute_from_price(price)
17
+ value = price * BigDecimal(self.preferred_flat_percent.to_s) / 100.0
16
18
  (value * 100).round.to_f / 100
17
19
  end
18
20
  end
@@ -13,11 +13,13 @@ module Spree
13
13
  end
14
14
 
15
15
  def compute_package(package)
16
- content_items = package.contents
16
+ compute_from_quantity(package.contents.sum(&:quantity))
17
+ end
18
+
19
+ def compute_from_quantity(quantity)
17
20
  sum = 0
18
21
  max = self.preferred_max_items.to_i
19
- items_count = content_items.map(&:quantity).sum
20
- items_count.times do |i|
22
+ quantity.times do |i|
21
23
  # check max value to avoid divide by 0 errors
22
24
  if (max == 0 && i == 0) || (max > 0) && (i % max == 0)
23
25
  sum += self.preferred_first_item.to_f
@@ -11,8 +11,11 @@ module Spree
11
11
  end
12
12
 
13
13
  def compute_package(package)
14
- content_items = package.contents
15
- self.preferred_amount * content_items.sum { |item| item.quantity }
14
+ compute_from_quantity(package.contents.sum(&:quantity))
15
+ end
16
+
17
+ def compute_from_quantity(quantity)
18
+ self.preferred_amount * quantity
16
19
  end
17
20
  end
18
21
  end
@@ -13,8 +13,11 @@ module Spree
13
13
  end
14
14
 
15
15
  def compute_package(package)
16
- content_items = package.contents
17
- if total(content_items) < self.preferred_minimal_amount
16
+ compute_from_price(total(package.contents))
17
+ end
18
+
19
+ def compute_from_price(price)
20
+ if price < self.preferred_minimal_amount
18
21
  self.preferred_normal_amount
19
22
  else
20
23
  self.preferred_discount_amount
@@ -150,7 +150,7 @@ module Spree
150
150
  end
151
151
 
152
152
  def display_tax_total
153
- Spree::Money.new(included_tax_total + additional_tax_total, { currency: currency })
153
+ Spree::Money.new(tax_total, { currency: currency })
154
154
  end
155
155
 
156
156
  def display_shipment_total
@@ -381,7 +381,12 @@ module Spree
381
381
  # which gets rescued and converted to FALSE when
382
382
  # :allow_checkout_on_gateway_error is set to false
383
383
  #
384
- def process_payments!
384
+ def process_payments!\
385
+ # Don't run if there is nothing to pay.
386
+ return if payment_total >= total
387
+ # Prevent orders from transitioning to complete without a successfully processed payment.
388
+ raise Core::GatewayError.new(Spree.t(:no_payment_found)) if pending_payments.empty?
389
+
385
390
  pending_payments.each do |payment|
386
391
  break if payment_total >= total
387
392
 
@@ -83,12 +83,15 @@ module Spree
83
83
  def credit!(credit_amount=nil)
84
84
  raise Core::GatewayError.new(Spree.t(:payment_processing_failed)) if processing?
85
85
 
86
+ # Calculate credit amount before marking as processing since it messes up the order totals not having payment in completed state.
87
+ credit_amount ||= credit_allowed >= order.outstanding_balance.abs ? order.outstanding_balance.abs : credit_allowed.abs
88
+ credit_amount = credit_amount.to_f
89
+
90
+ # Mark as processing to avoid race condition that could send multiple credits to the gateway.
86
91
  started_processing!
87
92
  protect_from_connection_error do
88
93
  check_environment
89
94
 
90
- credit_amount ||= credit_allowed >= order.outstanding_balance.abs ? order.outstanding_balance.abs : credit_allowed.abs
91
- credit_amount = credit_amount.to_f
92
95
  credit_cents = Spree::Money.new(credit_amount, currency: currency).money.cents
93
96
 
94
97
  if payment_method.payment_profiles_supported?
@@ -98,9 +101,10 @@ module Spree
98
101
  end
99
102
 
100
103
  record_response(response)
104
+ # Always set back to 'completed' as initial payment record was successful.
105
+ self.update_column(:state, 'completed')
101
106
 
102
107
  if response.success?
103
- self.update_column(:state, 'completed')
104
108
  self.class.create!(
105
109
  :order => order,
106
110
  :source => self,
@@ -87,7 +87,7 @@ module Spree
87
87
  # Spree::Product.taxons_id_eq([x,y])
88
88
  add_search_scope :in_taxons do |*taxons|
89
89
  taxons = get_taxons(taxons)
90
- taxons.first ? prepare_taxon_conditions(taxons) : scoped
90
+ taxons.first ? prepare_taxon_conditions(taxons) : where(nil)
91
91
  end
92
92
 
93
93
  # a scope that finds all products having property specified by name, object or id
@@ -214,7 +214,7 @@ module Spree
214
214
  # "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't'
215
215
  # AND "spree_variants"."deleted_at" IS NULL LEFT OUTER JOIN "spree_prices" ON
216
216
  # "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."currency" = 'USD'
217
- # AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ('t'='t')
217
+ # AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ('t'='t')
218
218
  # ORDER BY "spree_prices"."amount" ASC LIMIT 10 OFFSET 0
219
219
  #
220
220
  # Don't allow sort_column, a variable coming from params,
@@ -153,14 +153,14 @@ module Spree
153
153
  alias discounted_amount discounted_cost
154
154
 
155
155
  # Only one of either included_tax_total or additional_tax_total is set
156
- # This method returns the total of the two. Saves having to check if
156
+ # This method returns the total of the two. Saves having to check if
157
157
  # tax is included or additional.
158
158
  def tax_total
159
159
  included_tax_total + additional_tax_total
160
160
  end
161
161
 
162
162
  def final_price
163
- discounted_cost + tax_total
163
+ cost + adjustment_total
164
164
  end
165
165
 
166
166
  def display_discounted_cost
@@ -75,8 +75,8 @@ module Spree
75
75
  rates = self.match(order_tax_zone)
76
76
  tax_categories = rates.map(&:tax_category)
77
77
  relevant_items, non_relevant_items = items.partition { |item| tax_categories.include?(item.tax_category) }
78
+ Spree::Adjustment.where(adjustable: relevant_items).tax.destroy_all # using destroy_all to ensure adjustment destroy callback fires.
78
79
  relevant_items.each do |item|
79
- item.adjustments.tax.delete_all
80
80
  relevant_rates = rates.select { |rate| rate.tax_category == item.tax_category }
81
81
  store_pre_tax_amount(item, relevant_rates)
82
82
  relevant_rates.each do |rate|
@@ -85,9 +85,8 @@ module Spree
85
85
  end
86
86
  non_relevant_items.each do |item|
87
87
  if item.adjustments.tax.present?
88
- item.adjustments.tax.delete_all
89
- item.update_column(:pre_tax_amount, nil)
90
- item.send(:recalculate_adjustments)
88
+ item.adjustments.tax.destroy_all # using destroy_all to ensure adjustment destroy callback fires.
89
+ item.update_columns pre_tax_amount: 0
91
90
  end
92
91
  end
93
92
  end
@@ -53,6 +53,7 @@ en:
53
53
  special_instructions: Special Instructions
54
54
  state: State
55
55
  total: Total
56
+ considered_risky: Risky
56
57
  spree/order/bill_address:
57
58
  address1: Billing address street
58
59
  city: Billing address city
@@ -437,6 +438,7 @@ en:
437
438
  back_to_users_list: Back To Users List
438
439
  back_to_zones_list: Back To Zones List
439
440
  backorderable: Backorderable
441
+ backorderable_default: Backorderable default
440
442
  backorders_allowed: backorders allowed
441
443
  balance_due: Balance Due
442
444
  base_amount: Base Amount
@@ -960,6 +962,7 @@ en:
960
962
  name: User Logged In
961
963
  promotions: Promotions
962
964
  promotion_uses: Promotion uses
965
+ propagate_all_variants: Propagate all variants
963
966
  properties: Properties
964
967
  property: Property
965
968
  prototype: Prototype
@@ -1067,6 +1070,7 @@ en:
1067
1070
  show_active: Show Active
1068
1071
  show_deleted: Show Deleted
1069
1072
  show_only_complete_orders: Only show complete orders
1073
+ show_only_considered_risky: Only show risky orders
1070
1074
  show_rate_in_label: Show rate in label
1071
1075
  sku: SKU
1072
1076
  slug: Slug
@@ -1,5 +1,10 @@
1
1
  class RenameShippingMethodsZonesToSpreeShippingMethodsZones < ActiveRecord::Migration
2
2
  def change
3
3
  rename_table :shipping_methods_zones, :spree_shipping_methods_zones
4
+ # If Spree::ShippingMethod zones association was patched in
5
+ # CreateShippingMethodZone migrations, it needs to be patched back
6
+ Spree::ShippingMethod.has_and_belongs_to_many :zones, :join_table => 'spree_shipping_methods_zones',
7
+ :class_name => 'Spree::Zone',
8
+ :foreign_key => 'shipping_method_id'
4
9
  end
5
10
  end
@@ -0,0 +1,6 @@
1
+ class DefaultPreTaxAmountShouldBeZero < ActiveRecord::Migration
2
+ def change
3
+ change_column :spree_line_items, :pre_tax_amount, :decimal, precision: 8, scale: 2, default: 0
4
+ change_column :spree_shipments, :pre_tax_amount, :decimal, precision: 8, scale: 2, default: 0
5
+ end
6
+ end
@@ -6,9 +6,8 @@
6
6
  //
7
7
  //= require jquery
8
8
  //= require jquery_ujs
9
- <% if options[:lib_name] == 'spree' || options[:lib_name] == 'spree/backend' %>
10
9
  //= require spree/backend
11
- <% else %>
10
+ <% unless options[:lib_name] == 'spree' || options[:lib_name] == 'spree/backend' %>
12
11
  //= require spree/backend/<%= options[:lib_name].gsub("/", "_") %>
13
12
  <% end %>
14
13
  //= require_tree .
@@ -6,9 +6,8 @@
6
6
  //
7
7
  //= require jquery
8
8
  //= require jquery_ujs
9
- <% if options[:lib_name] == 'spree' || options[:lib_name] == 'spree/frontend' %>
10
9
  //= require spree/frontend
11
- <% else %>
10
+ <% unless options[:lib_name] == 'spree' || options[:lib_name] == 'spree/frontend' %>
12
11
  //= require spree/frontend/<%= options[:lib_name].gsub("/", "_") %>
13
12
  <% end %>
14
13
  //= require_tree .
@@ -3,9 +3,8 @@
3
3
  * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *
6
- <% if options[:lib_name] == 'spree' || options[:lib_name] == 'spree/backend' %>
7
6
  *= require spree/backend
8
- <% else %>
7
+ <% unless options[:lib_name] == 'spree' || options[:lib_name] == 'spree/backend' %>
9
8
  *= require spree/backend/<%= options[:lib_name].gsub("/", "_") %>
10
9
  <% end %>
11
10
  *= require_self
@@ -3,9 +3,8 @@
3
3
  * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *
6
- <% if options[:lib_name] == 'spree' || options[:lib_name] == 'spree/frontend' %>
7
6
  *= require spree/frontend
8
- <% else %>
7
+ <% unless options[:lib_name] == 'spree' || options[:lib_name] == 'spree/frontend' %>
9
8
  *= require spree/frontend/<%= options[:lib_name].gsub("/", "_") %>
10
9
  <% end %>
11
10
  *= require_self
@@ -9,7 +9,7 @@ module Spree
9
9
  helper_method :try_spree_current_user
10
10
 
11
11
  rescue_from CanCan::AccessDenied do |exception|
12
- unauthorized
12
+ redirect_unauthorized_access
13
13
  end
14
14
  end
15
15
 
@@ -18,7 +18,6 @@ module Spree
18
18
  @current_ability ||= Spree::Ability.new(try_spree_current_user)
19
19
  end
20
20
 
21
-
22
21
  def redirect_back_or_default(default)
23
22
  redirect_to(session["spree_user_return_to"] || default)
24
23
  session["spree_user_return_to"] = nil
@@ -64,7 +63,7 @@ module Spree
64
63
  # Redirect as appropriate when an access request fails. The default action is to redirect to the login screen.
65
64
  # Override this method in your controllers if you want to have special behavior in case the user is not authorized
66
65
  # to access the requested action. For example, a popup window might simply close itself.
67
- def unauthorized
66
+ def redirect_unauthorized_access
68
67
  if try_spree_current_user
69
68
  flash[:error] = Spree.t(:authorization_failure)
70
69
  redirect_to '/unauthorized'
@@ -90,12 +90,15 @@ module Spree
90
90
  return {} unless line_items_hash
91
91
  line_items_hash.each_key do |k|
92
92
  begin
93
- line_item = line_items_hash[k]
94
- ensure_variant_id_from_params(line_item)
95
-
96
- extra_params = line_item.except(:variant_id, :quantity)
93
+ extra_params = line_items_hash[k].except(:variant_id, :quantity, :sku)
94
+ line_item = ensure_variant_id_from_params(line_items_hash[k])
97
95
  line_item = order.contents.add(Spree::Variant.find(line_item[:variant_id]), line_item[:quantity])
98
- line_item.update_attributes(extra_params) unless extra_params.empty?
96
+ # Raise any errors with saving to prevent import succeeding with line items failing silently.
97
+ if extra_params.present?
98
+ line_item.update_attributes!(extra_params)
99
+ else
100
+ line_item.save!
101
+ end
99
102
  rescue Exception => e
100
103
  raise "Order import line items: #{e.message} #{line_item}"
101
104
  end
@@ -154,10 +157,13 @@ module Spree
154
157
 
155
158
  def self.ensure_variant_id_from_params(hash)
156
159
  begin
160
+ sku = hash.delete(:sku)
157
161
  unless hash[:variant_id].present?
158
- hash[:variant_id] = Spree::Variant.active.find_by_sku!(hash[:sku]).id
159
- hash.delete(:sku)
162
+ hash[:variant_id] = Spree::Variant.active.find_by_sku!(sku).id
160
163
  end
164
+ hash
165
+ rescue ActiveRecord::RecordNotFound => e
166
+ raise "Ensure order import variant: Variant w/SKU #{sku} not found."
161
167
  rescue Exception => e
162
168
  raise "Ensure order import variant: #{e.message} #{hash}"
163
169
  end
@@ -143,8 +143,7 @@ module Spree
143
143
  brand_property = Spree::Property.find_by(name: 'brand')
144
144
  scope = Spree::ProductProperty.where(property: brand_property).
145
145
  joins(product: :taxons).
146
- where("#{Spree::Taxon.table_name}.id" => [taxon] + taxon.descendants).
147
- scoped
146
+ where("#{Spree::Taxon.table_name}.id" => [taxon] + taxon.descendants)
148
147
  brands = scope.pluck(:value).uniq
149
148
  {
150
149
  name: 'Applicable Brands',
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- '2.3.3'
3
+ '2.3.4'
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ FactoryGirl.define do
4
4
  description { generate(:random_description) }
5
5
  price 19.99
6
6
  cost_price 17.00
7
- sku { "ABC-#{Kernel.rand(9999)}" }
7
+ sku { generate(:sku) }
8
8
  available_on { 1.year.ago }
9
9
  deleted_at nil
10
10
  shipping_category { |r| Spree::ShippingCategory.first || r.association(:shipping_category) }
@@ -1,6 +1,5 @@
1
1
  FactoryGirl.define do
2
2
  factory :return_authorization, class: Spree::ReturnAuthorization do
3
- number '100'
4
3
  amount 100.00
5
4
  association(:order, factory: :shipped_order)
6
5
  reason 'no particular reason'
@@ -1,7 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :shipment, class: Spree::Shipment do
3
3
  tracking 'U10000'
4
- number '100'
5
4
  cost 100.00
6
5
  state 'pending'
7
6
  order
@@ -4,7 +4,7 @@ FactoryGirl.define do
4
4
  factory :base_variant, class: Spree::Variant do
5
5
  price 19.99
6
6
  cost_price 17.00
7
- sku { SecureRandom.hex }
7
+ sku { generate(:sku) }
8
8
  weight { generate(:random_float) }
9
9
  height { generate(:random_float) }
10
10
  width { generate(:random_float) }
@@ -14,4 +14,6 @@ FactoryGirl.define do
14
14
  sequence(:random_string) { Faker::Lorem.sentence }
15
15
  sequence(:random_description) { Faker::Lorem.paragraphs(1 + Kernel.rand(5)).join("\n") }
16
16
  sequence(:random_email) { Faker::Internet.email }
17
+
18
+ sequence(:sku) { |n| "SKU-#{n}" }
17
19
  end
data/lib/tasks/core.rake CHANGED
@@ -86,8 +86,8 @@ use rake db:load_file[/absolute/path/to/sample/filename.rb]}
86
86
  end
87
87
 
88
88
  if load_sample
89
- #prevent errors for missing attributes (since rails 3.1 upgrade)
90
-
89
+ # Reload models' attributes in case they were loaded in old migrations with wrong attributes
90
+ ActiveRecord::Base.descendants.each(&:reset_column_information)
91
91
  Rake::Task["spree_sample:load"].invoke
92
92
  end
93
93
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-19 00:00:00.000000000 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.8.4
75
+ version: 1.9.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.8.4
82
+ version: 1.9.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: deface
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.15.0
187
+ version: 0.16.1
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.15.0
194
+ version: 0.16.1
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: monetize
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -240,28 +240,28 @@ dependencies:
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: 4.1.4
243
+ version: 4.1.6
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: 4.1.4
250
+ version: 4.1.6
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: ransack
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: 1.2.2
257
+ version: 1.4.1
258
258
  type: :runtime
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - "~>"
263
263
  - !ruby/object:Gem::Version
264
- version: 1.2.2
264
+ version: 1.4.1
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: state_machine
267
267
  requirement: !ruby/object:Gem::Requirement
@@ -611,6 +611,7 @@ files:
611
611
  - db/migrate/20140609201656_add_deleted_at_to_spree_promotion_actions.rb
612
612
  - db/migrate/20140616202624_remove_uncaptured_amount_from_spree_payments.rb
613
613
  - db/migrate/20140804185157_add_default_to_shipment_cost.rb
614
+ - db/migrate/20140927193717_default_pre_tax_amount_should_be_zero.rb
614
615
  - db/seeds.rb
615
616
  - lib/generators/spree/custom_user/custom_user_generator.rb
616
617
  - lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt