spree_core 3.1.5 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/concerns/spree/ransackable_attributes.rb +6 -1
  3. data/app/models/concerns/spree/user_methods.rb +10 -0
  4. data/app/models/spree/legacy_user.rb +0 -8
  5. data/app/models/spree/order.rb +1 -1
  6. data/app/models/spree/product.rb +8 -0
  7. data/app/models/spree/product/scopes.rb +7 -3
  8. data/app/models/spree/stock_transfer.rb +1 -1
  9. data/config/locales/en.yml +2 -0
  10. data/lib/spree/core/version.rb +1 -1
  11. data/spree_core.gemspec +2 -2
  12. metadata +11 -208
  13. data/spec/fixtures/microdata.html +0 -22
  14. data/spec/fixtures/microdata_itemref.html +0 -15
  15. data/spec/fixtures/microdata_no_itemscope.html +0 -20
  16. data/spec/fixtures/thinking-cat.jpg +0 -0
  17. data/spec/helpers/base_helper_spec.rb +0 -200
  18. data/spec/helpers/products_helper_spec.rb +0 -296
  19. data/spec/lib/calculated_adjustments_spec.rb +0 -7
  20. data/spec/lib/i18n_spec.rb +0 -123
  21. data/spec/lib/search/base_spec.rb +0 -86
  22. data/spec/lib/spree/core/controller_helpers/auth_spec.rb +0 -103
  23. data/spec/lib/spree/core/controller_helpers/order_spec.rb +0 -110
  24. data/spec/lib/spree/core/controller_helpers/search_spec.rb +0 -17
  25. data/spec/lib/spree/core/controller_helpers/store_spec.rb +0 -72
  26. data/spec/lib/spree/core/controller_helpers/strong_parameters_spec.rb +0 -39
  27. data/spec/lib/spree/core/delegate_belongs_to_spec.rb +0 -22
  28. data/spec/lib/spree/core/importer/order_spec.rb +0 -605
  29. data/spec/lib/spree/core/number_generator_spec.rb +0 -175
  30. data/spec/lib/spree/core/token_generator_spec.rb +0 -24
  31. data/spec/lib/spree/core/validators/email_spec.rb +0 -53
  32. data/spec/lib/spree/core_spec.rb +0 -23
  33. data/spec/lib/spree/localized_number_spec.rb +0 -48
  34. data/spec/lib/spree/migrations_spec.rb +0 -36
  35. data/spec/lib/spree/money_spec.rb +0 -122
  36. data/spec/lib/tasks/exchanges_spec.rb +0 -136
  37. data/spec/mailers/order_mailer_spec.rb +0 -122
  38. data/spec/mailers/reimbursement_mailer_spec.rb +0 -47
  39. data/spec/mailers/shipment_mailer_spec.rb +0 -81
  40. data/spec/mailers/test_mailer_spec.rb +0 -38
  41. data/spec/models/option_type_prototype_spec.rb +0 -9
  42. data/spec/models/spree/ability_spec.rb +0 -251
  43. data/spec/models/spree/address_spec.rb +0 -291
  44. data/spec/models/spree/adjustable/adjuster/base_spec.rb +0 -10
  45. data/spec/models/spree/adjustable/adjuster/promotion_spec.rb +0 -211
  46. data/spec/models/spree/adjustable/adjuster/tax_spec.rb +0 -86
  47. data/spec/models/spree/adjustable/adjustments_updater_spec.rb +0 -26
  48. data/spec/models/spree/adjustment_spec.rb +0 -189
  49. data/spec/models/spree/app_configuration_spec.rb +0 -26
  50. data/spec/models/spree/asset_spec.rb +0 -28
  51. data/spec/models/spree/calculator/default_tax_spec.rb +0 -152
  52. data/spec/models/spree/calculator/flat_percent_item_total_spec.rb +0 -25
  53. data/spec/models/spree/calculator/flat_rate_spec.rb +0 -47
  54. data/spec/models/spree/calculator/flexi_rate_spec.rb +0 -41
  55. data/spec/models/spree/calculator/percent_on_line_item_spec.rb +0 -15
  56. data/spec/models/spree/calculator/price_sack_spec.rb +0 -30
  57. data/spec/models/spree/calculator/refunds/default_refund_amount_spec.rb +0 -51
  58. data/spec/models/spree/calculator/shipping.rb +0 -8
  59. data/spec/models/spree/calculator/shipping/flat_percent_item_total_spec.rb +0 -23
  60. data/spec/models/spree/calculator/shipping/flat_rate_spec.rb +0 -13
  61. data/spec/models/spree/calculator/shipping/flexi_rate_spec.rb +0 -52
  62. data/spec/models/spree/calculator/shipping/per_item_spec.rb +0 -20
  63. data/spec/models/spree/calculator/shipping/price_sack_spec.rb +0 -29
  64. data/spec/models/spree/calculator/tiered_flat_rate_spec.rb +0 -40
  65. data/spec/models/spree/calculator/tiered_percent_spec.rb +0 -51
  66. data/spec/models/spree/calculator_spec.rb +0 -69
  67. data/spec/models/spree/classification_spec.rb +0 -93
  68. data/spec/models/spree/concerns/display_money_spec.rb +0 -43
  69. data/spec/models/spree/concerns/user_methods_spec.rb +0 -55
  70. data/spec/models/spree/concerns/vat_price_calculation_spec.rb +0 -66
  71. data/spec/models/spree/country_spec.rb +0 -55
  72. data/spec/models/spree/credit_card_spec.rb +0 -328
  73. data/spec/models/spree/customer_return_spec.rb +0 -240
  74. data/spec/models/spree/exchange_spec.rb +0 -75
  75. data/spec/models/spree/gateway/bogus_simple.rb +0 -20
  76. data/spec/models/spree/gateway/bogus_spec.rb +0 -13
  77. data/spec/models/spree/gateway_spec.rb +0 -61
  78. data/spec/models/spree/image_spec.rb +0 -8
  79. data/spec/models/spree/inventory_unit_spec.rb +0 -225
  80. data/spec/models/spree/line_item_spec.rb +0 -327
  81. data/spec/models/spree/option_type_spec.rb +0 -14
  82. data/spec/models/spree/option_value_spec.rb +0 -18
  83. data/spec/models/spree/order/address_spec.rb +0 -50
  84. data/spec/models/spree/order/adjustments_spec.rb +0 -29
  85. data/spec/models/spree/order/callbacks_spec.rb +0 -42
  86. data/spec/models/spree/order/checkout_spec.rb +0 -782
  87. data/spec/models/spree/order/currency_updater_spec.rb +0 -32
  88. data/spec/models/spree/order/finalizing_spec.rb +0 -114
  89. data/spec/models/spree/order/helpers_spec.rb +0 -5
  90. data/spec/models/spree/order/payment_spec.rb +0 -214
  91. data/spec/models/spree/order/risk_assessment_spec.rb +0 -84
  92. data/spec/models/spree/order/shipments_spec.rb +0 -43
  93. data/spec/models/spree/order/state_machine_spec.rb +0 -211
  94. data/spec/models/spree/order/store_credit_spec.rb +0 -426
  95. data/spec/models/spree/order/tax_spec.rb +0 -84
  96. data/spec/models/spree/order/totals_spec.rb +0 -24
  97. data/spec/models/spree/order/updating_spec.rb +0 -18
  98. data/spec/models/spree/order/validations_spec.rb +0 -15
  99. data/spec/models/spree/order_contents_spec.rb +0 -297
  100. data/spec/models/spree/order_inventory_spec.rb +0 -238
  101. data/spec/models/spree/order_merger_spec.rb +0 -135
  102. data/spec/models/spree/order_spec.rb +0 -967
  103. data/spec/models/spree/order_updater_spec.rb +0 -305
  104. data/spec/models/spree/payment/gateway_options_spec.rb +0 -127
  105. data/spec/models/spree/payment/store_credit_spec.rb +0 -60
  106. data/spec/models/spree/payment_method/store_credit_spec.rb +0 -291
  107. data/spec/models/spree/payment_method_spec.rb +0 -103
  108. data/spec/models/spree/payment_spec.rb +0 -919
  109. data/spec/models/spree/preference_spec.rb +0 -80
  110. data/spec/models/spree/preferences/configuration_spec.rb +0 -30
  111. data/spec/models/spree/preferences/preferable_spec.rb +0 -348
  112. data/spec/models/spree/preferences/scoped_store_spec.rb +0 -58
  113. data/spec/models/spree/preferences/store_spec.rb +0 -46
  114. data/spec/models/spree/price_spec.rb +0 -128
  115. data/spec/models/spree/product/scopes_spec.rb +0 -183
  116. data/spec/models/spree/product_duplicator_spec.rb +0 -103
  117. data/spec/models/spree/product_filter_spec.rb +0 -26
  118. data/spec/models/spree/product_option_type_spec.rb +0 -9
  119. data/spec/models/spree/product_promotion_rule_spec.rb +0 -9
  120. data/spec/models/spree/product_property_spec.rb +0 -22
  121. data/spec/models/spree/product_spec.rb +0 -540
  122. data/spec/models/spree/promotion/actions/create_adjustment_spec.rb +0 -50
  123. data/spec/models/spree/promotion/actions/create_item_adjustments_spec.rb +0 -148
  124. data/spec/models/spree/promotion/actions/create_line_items_spec.rb +0 -86
  125. data/spec/models/spree/promotion/actions/free_shipping_spec.rb +0 -36
  126. data/spec/models/spree/promotion/rules/first_order_spec.rb +0 -75
  127. data/spec/models/spree/promotion/rules/item_total_spec.rb +0 -282
  128. data/spec/models/spree/promotion/rules/one_use_per_user_spec.rb +0 -42
  129. data/spec/models/spree/promotion/rules/option_value_spec.rb +0 -90
  130. data/spec/models/spree/promotion/rules/product_spec.rb +0 -143
  131. data/spec/models/spree/promotion/rules/taxon_spec.rb +0 -102
  132. data/spec/models/spree/promotion/rules/user_logged_in_spec.rb +0 -27
  133. data/spec/models/spree/promotion/rules/user_spec.rb +0 -45
  134. data/spec/models/spree/promotion_action_spec.rb +0 -10
  135. data/spec/models/spree/promotion_category_spec.rb +0 -17
  136. data/spec/models/spree/promotion_handler/cart_spec.rb +0 -102
  137. data/spec/models/spree/promotion_handler/coupon_spec.rb +0 -323
  138. data/spec/models/spree/promotion_handler/free_shipping_spec.rb +0 -48
  139. data/spec/models/spree/promotion_handler/page_spec.rb +0 -44
  140. data/spec/models/spree/promotion_rule_spec.rb +0 -29
  141. data/spec/models/spree/promotion_rule_taxon_spec.rb +0 -9
  142. data/spec/models/spree/promotion_rule_user_spec.rb +0 -9
  143. data/spec/models/spree/promotion_spec.rb +0 -644
  144. data/spec/models/spree/property_prototype_spec.rb +0 -9
  145. data/spec/models/spree/property_spec.rb +0 -5
  146. data/spec/models/spree/prototype_spec.rb +0 -5
  147. data/spec/models/spree/prototype_taxon_spec.rb +0 -9
  148. data/spec/models/spree/refund_reason_spec.rb +0 -7
  149. data/spec/models/spree/refund_spec.rb +0 -195
  150. data/spec/models/spree/reimbursement/credit_spec.rb +0 -36
  151. data/spec/models/spree/reimbursement/reimbursement_type_engine_spec.rb +0 -140
  152. data/spec/models/spree/reimbursement/reimbursement_type_validator_spec.rb +0 -83
  153. data/spec/models/spree/reimbursement_performer_spec.rb +0 -30
  154. data/spec/models/spree/reimbursement_spec.rb +0 -188
  155. data/spec/models/spree/reimbursement_tax_calculator_spec.rb +0 -63
  156. data/spec/models/spree/reimbursement_type/credit_spec.rb +0 -53
  157. data/spec/models/spree/reimbursement_type/exchange_spec.rb +0 -46
  158. data/spec/models/spree/reimbursement_type/original_payment_spec.rb +0 -55
  159. data/spec/models/spree/reimbursement_type/store_credit_spec.rb +0 -101
  160. data/spec/models/spree/return_authorization_reason_spec.rb +0 -7
  161. data/spec/models/spree/return_authorization_spec.rb +0 -230
  162. data/spec/models/spree/return_item/eligibility_validator/default_spec.rb +0 -77
  163. data/spec/models/spree/return_item/eligibility_validator/inventory_shipped_spec.rb +0 -58
  164. data/spec/models/spree/return_item/eligibility_validator/no_reimbursements_spec.rb +0 -61
  165. data/spec/models/spree/return_item/eligibility_validator/order_completed_spec.rb +0 -32
  166. data/spec/models/spree/return_item/eligibility_validator/rma_required_spec.rb +0 -29
  167. data/spec/models/spree/return_item/eligibility_validator/time_since_purchase_spec.rb +0 -35
  168. data/spec/models/spree/return_item/exchange_variant_eligibility/same_option_value_spec.rb +0 -65
  169. data/spec/models/spree/return_item/exchange_variant_eligibility/same_product_spec.rb +0 -43
  170. data/spec/models/spree/return_item_spec.rb +0 -731
  171. data/spec/models/spree/returns_calculator_spec.rb +0 -14
  172. data/spec/models/spree/role_spec.rb +0 -7
  173. data/spec/models/spree/shipment_spec.rb +0 -740
  174. data/spec/models/spree/shipping_calculator_spec.rb +0 -45
  175. data/spec/models/spree/shipping_category_spec.rb +0 -19
  176. data/spec/models/spree/shipping_method_spec.rb +0 -95
  177. data/spec/models/spree/shipping_rate_spec.rb +0 -140
  178. data/spec/models/spree/state_spec.rb +0 -29
  179. data/spec/models/spree/stock/availability_validator_spec.rb +0 -36
  180. data/spec/models/spree/stock/content_item_spec.rb +0 -31
  181. data/spec/models/spree/stock/coordinator_spec.rb +0 -51
  182. data/spec/models/spree/stock/differentiator_spec.rb +0 -39
  183. data/spec/models/spree/stock/estimator_spec.rb +0 -202
  184. data/spec/models/spree/stock/inventory_unit_builder_spec.rb +0 -38
  185. data/spec/models/spree/stock/package_spec.rb +0 -194
  186. data/spec/models/spree/stock/packer_spec.rb +0 -70
  187. data/spec/models/spree/stock/prioritizer_spec.rb +0 -125
  188. data/spec/models/spree/stock/quantifier_spec.rb +0 -126
  189. data/spec/models/spree/stock/splitter/backordered_spec.rb +0 -29
  190. data/spec/models/spree/stock/splitter/base_spec.rb +0 -21
  191. data/spec/models/spree/stock/splitter/shipping_category_spec.rb +0 -47
  192. data/spec/models/spree/stock/splitter/weight_spec.rb +0 -32
  193. data/spec/models/spree/stock_item_spec.rb +0 -428
  194. data/spec/models/spree/stock_location_spec.rb +0 -243
  195. data/spec/models/spree/stock_movement_spec.rb +0 -56
  196. data/spec/models/spree/stock_transfer_spec.rb +0 -50
  197. data/spec/models/spree/store_credit_event_spec.rb +0 -101
  198. data/spec/models/spree/store_credit_spec.rb +0 -786
  199. data/spec/models/spree/store_spec.rb +0 -78
  200. data/spec/models/spree/tax_category_spec.rb +0 -32
  201. data/spec/models/spree/tax_rate_spec.rb +0 -542
  202. data/spec/models/spree/taxon_spec.rb +0 -74
  203. data/spec/models/spree/taxonomy_spec.rb +0 -18
  204. data/spec/models/spree/tracker_spec.rb +0 -21
  205. data/spec/models/spree/user_spec.rb +0 -203
  206. data/spec/models/spree/variant_spec.rb +0 -795
  207. data/spec/models/spree/zone_member_spec.rb +0 -38
  208. data/spec/models/spree/zone_spec.rb +0 -470
  209. data/spec/spec_helper.rb +0 -77
  210. data/spec/support/big_decimal.rb +0 -5
  211. data/spec/support/concerns/adjustment_source.rb +0 -23
  212. data/spec/support/concerns/default_price.rb +0 -37
  213. data/spec/support/rake.rb +0 -13
  214. data/spec/support/test_gateway.rb +0 -2
  215. data/spec/validators/db_maximum_length_validator_spec.rb +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba95ac1b99044d7f579a367a10672e82a13efc3b
4
- data.tar.gz: 24f6ecc33a216a0751a5985bb51f52a8de04a0a3
3
+ metadata.gz: c472ca75b2962657a6312f4e01b13630ab719613
4
+ data.tar.gz: caa7069c782639d4073c45b953010122f70041da
5
5
  SHA512:
6
- metadata.gz: b62b3e3298c5698d54b1231edfba99e1d7a6a3619ec5080f9e7a3efea36c148b4c15953e798d37b14236c1636323e6cb315a1892f2085bf7413f0b82bb611d09
7
- data.tar.gz: 3063bc05fdb6418d3b1091cbbef5624696ae587fb423d66c26bcbcc0db59e32c8619758c52c3840be0919717ed35d116e0825bd7a7d47c555b561ac296fd46b2
6
+ metadata.gz: c50ba8a21f237214d164f930a581be054bb7a2b2f1afbf087e21e38a5f73922271a14efb2457f346f68a69379a09199cdbe47288df750fe88b868264cf13cdc5
7
+ data.tar.gz: 7373d178297eec7b4f18d79be8ce8f59638972af9a552eabe6d677b2c0fdf38584b5b1e98a423ff939cd3db81c5d9568d82d509076009bafbcc049db4200ba14
@@ -3,9 +3,10 @@ module Spree::RansackableAttributes
3
3
  included do
4
4
  class_attribute :whitelisted_ransackable_associations
5
5
  class_attribute :whitelisted_ransackable_attributes
6
+ class_attribute :whitelisted_ransackable_scopes
6
7
 
7
8
  class_attribute :default_ransackable_attributes
8
- self.default_ransackable_attributes = %w[id name]
9
+ self.default_ransackable_attributes = %w[id name updated_at created_at]
9
10
 
10
11
  def self.ransackable_associations(*args)
11
12
  self.whitelisted_ransackable_associations || []
@@ -14,6 +15,10 @@ module Spree::RansackableAttributes
14
15
  def self.ransackable_attributes(*args)
15
16
  self.default_ransackable_attributes | (self.whitelisted_ransackable_attributes || [])
16
17
  end
18
+
19
+ def self.ransackable_scopes(*args)
20
+ whitelisted_ransackable_scopes || []
21
+ end
17
22
  end
18
23
 
19
24
  end
@@ -8,6 +8,10 @@ module Spree
8
8
  include Spree::RansackableAttributes
9
9
 
10
10
  included do
11
+ # we need to have this callback before any dependent: :destroy associations
12
+ # https://github.com/rails/rails/issues/3458
13
+ before_destroy :check_completed_orders
14
+
11
15
  has_many :role_users, class_name: 'Spree::RoleUser', foreign_key: :user_id, dependent: :destroy
12
16
  has_many :spree_roles, through: :role_users, class_name: 'Spree::Role', source: :role
13
17
 
@@ -43,5 +47,11 @@ module Spree
43
47
  def total_available_store_credit
44
48
  store_credits.reload.to_a.sum(&:amount_remaining)
45
49
  end
50
+
51
+ private
52
+
53
+ def check_completed_orders
54
+ raise Spree::Core::DestroyWithOrdersError if orders.complete.present?
55
+ end
46
56
  end
47
57
  end
@@ -7,15 +7,7 @@ module Spree
7
7
 
8
8
  self.table_name = 'spree_users'
9
9
 
10
- before_destroy :check_completed_orders
11
-
12
10
  attr_accessor :password
13
11
  attr_accessor :password_confirmation
14
-
15
- private
16
-
17
- def check_completed_orders
18
- raise Spree::Core::DestroyWithOrdersError if orders.complete.present?
19
- end
20
12
  end
21
13
  end
@@ -53,7 +53,7 @@ module Spree
53
53
  end
54
54
 
55
55
  self.whitelisted_ransackable_associations = %w[shipments user promotions bill_address ship_address line_items]
56
- self.whitelisted_ransackable_attributes = %w[completed_at created_at email number state payment_state shipment_state total considered_risky]
56
+ self.whitelisted_ransackable_attributes = %w[completed_at email number state payment_state shipment_state total considered_risky]
57
57
 
58
58
  attr_reader :coupon_code
59
59
  attr_accessor :temporary_address, :temporary_credit_card
@@ -105,6 +105,7 @@ module Spree
105
105
  end
106
106
 
107
107
  validates :slug, length: { minimum: 3 }, allow_blank: true, uniqueness: true
108
+ validate :discontinue_on_must_be_later_than_available_on, if: -> { available_on && discontinue_on }
108
109
 
109
110
  attr_accessor :option_values_hash
110
111
 
@@ -114,6 +115,7 @@ module Spree
114
115
 
115
116
  self.whitelisted_ransackable_associations = %w[stores variants_including_master master variants]
116
117
  self.whitelisted_ransackable_attributes = %w[description name slug discontinue_on]
118
+ self.whitelisted_ransackable_scopes = %w[not_discontinued]
117
119
 
118
120
  # the master variant is not a member of the variants array
119
121
  def has_variants?
@@ -370,6 +372,12 @@ module Spree
370
372
  removed_classifications = classifications.where(taxon: taxon)
371
373
  removed_classifications.each &:remove_from_list
372
374
  end
375
+
376
+ def discontinue_on_must_be_later_than_available_on
377
+ if discontinue_on < available_on
378
+ errors.add(:discontinue_on, :invalid_date_range)
379
+ end
380
+ end
373
381
  end
374
382
  end
375
383
 
@@ -186,10 +186,14 @@ module Spree
186
186
  where("#{Product.quoted_table_name}.deleted_at IS NULL or #{Product.quoted_table_name}.deleted_at >= ?", Time.zone.now)
187
187
  end
188
188
 
189
- add_search_scope :not_discontinued do
190
- where("#{Product.quoted_table_name}.discontinue_on IS NULL or #{Product.quoted_table_name}.discontinue_on >= ?", Time.zone.now)
189
+ def self.not_discontinued(only_not_discontinued = true)
190
+ if only_not_discontinued != '0' && only_not_discontinued
191
+ where("#{Product.quoted_table_name}.discontinue_on IS NULL or #{Product.quoted_table_name}.discontinue_on >= ?", Time.zone.now)
192
+ else
193
+ all
194
+ end
191
195
  end
192
-
196
+ search_scopes << :not_discontinued
193
197
  # Can't use add_search_scope for this as it needs a default argument
194
198
  def self.available(available_on = nil, currency = nil)
195
199
  available_on ||= Time.current
@@ -10,7 +10,7 @@ module Spree
10
10
  belongs_to :source_location, class_name: 'StockLocation'
11
11
  belongs_to :destination_location, class_name: 'StockLocation'
12
12
 
13
- self.whitelisted_ransackable_attributes = %w[reference source_location_id destination_location_id created_at number]
13
+ self.whitelisted_ransackable_attributes = %w[reference source_location_id destination_location_id number]
14
14
 
15
15
  def to_param
16
16
  number
@@ -315,6 +315,8 @@ en:
315
315
  invalid_date_range: must be later than start date
316
316
  spree/product:
317
317
  attributes:
318
+ discontinue_on:
319
+ invalid_date_range: must be later than available date
318
320
  base:
319
321
  cannot_destroy_if_attached_to_line_items: Cannot delete products once they are attached to line items.
320
322
  spree/refund:
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "3.1.5"
3
+ "3.1.6"
4
4
  end
5
5
  end
data/spree_core.gemspec CHANGED
@@ -16,11 +16,11 @@ Gem::Specification.new do |s|
16
16
  s.homepage = 'http://spreecommerce.com'
17
17
  s.license = 'BSD-3'
18
18
 
19
- s.files = `git ls-files`.split("\n")
19
+ s.files = `git ls-files`.split("\n").reject { |f| f.match(/^spec/) }
20
20
  s.require_path = 'lib'
21
21
 
22
22
  s.add_dependency 'activemerchant', '~> 1.59'
23
- s.add_dependency 'acts_as_list', '0.7.2'
23
+ s.add_dependency 'acts_as_list', '~> 0.7', '>= 0.7.2'
24
24
  s.add_dependency 'awesome_nested_set', '~> 3.0.1'
25
25
  s.add_dependency 'carmen', '~> 1.0.0'
26
26
  s.add_dependency 'cancancan', '~> 1.10.1'
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: 3.1.5
4
+ version: 3.1.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: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -28,14 +28,20 @@ dependencies:
28
28
  name: acts_as_list
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.7'
34
+ - - ">="
32
35
  - !ruby/object:Gem::Version
33
36
  version: 0.7.2
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - '='
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '0.7'
44
+ - - ">="
39
45
  - !ruby/object:Gem::Version
40
46
  version: 0.7.2
41
47
  - !ruby/object:Gem::Dependency
@@ -934,209 +940,6 @@ files:
934
940
  - lib/tasks/email.rake
935
941
  - lib/tasks/exchanges.rake
936
942
  - script/rails
937
- - spec/fixtures/microdata.html
938
- - spec/fixtures/microdata_itemref.html
939
- - spec/fixtures/microdata_no_itemscope.html
940
- - spec/fixtures/thinking-cat.jpg
941
- - spec/helpers/base_helper_spec.rb
942
- - spec/helpers/products_helper_spec.rb
943
- - spec/lib/calculated_adjustments_spec.rb
944
- - spec/lib/i18n_spec.rb
945
- - spec/lib/search/base_spec.rb
946
- - spec/lib/spree/core/controller_helpers/auth_spec.rb
947
- - spec/lib/spree/core/controller_helpers/order_spec.rb
948
- - spec/lib/spree/core/controller_helpers/search_spec.rb
949
- - spec/lib/spree/core/controller_helpers/store_spec.rb
950
- - spec/lib/spree/core/controller_helpers/strong_parameters_spec.rb
951
- - spec/lib/spree/core/delegate_belongs_to_spec.rb
952
- - spec/lib/spree/core/importer/order_spec.rb
953
- - spec/lib/spree/core/number_generator_spec.rb
954
- - spec/lib/spree/core/token_generator_spec.rb
955
- - spec/lib/spree/core/validators/email_spec.rb
956
- - spec/lib/spree/core_spec.rb
957
- - spec/lib/spree/localized_number_spec.rb
958
- - spec/lib/spree/migrations_spec.rb
959
- - spec/lib/spree/money_spec.rb
960
- - spec/lib/tasks/exchanges_spec.rb
961
- - spec/mailers/order_mailer_spec.rb
962
- - spec/mailers/reimbursement_mailer_spec.rb
963
- - spec/mailers/shipment_mailer_spec.rb
964
- - spec/mailers/test_mailer_spec.rb
965
- - spec/models/option_type_prototype_spec.rb
966
- - spec/models/spree/ability_spec.rb
967
- - spec/models/spree/address_spec.rb
968
- - spec/models/spree/adjustable/adjuster/base_spec.rb
969
- - spec/models/spree/adjustable/adjuster/promotion_spec.rb
970
- - spec/models/spree/adjustable/adjuster/tax_spec.rb
971
- - spec/models/spree/adjustable/adjustments_updater_spec.rb
972
- - spec/models/spree/adjustment_spec.rb
973
- - spec/models/spree/app_configuration_spec.rb
974
- - spec/models/spree/asset_spec.rb
975
- - spec/models/spree/calculator/default_tax_spec.rb
976
- - spec/models/spree/calculator/flat_percent_item_total_spec.rb
977
- - spec/models/spree/calculator/flat_rate_spec.rb
978
- - spec/models/spree/calculator/flexi_rate_spec.rb
979
- - spec/models/spree/calculator/percent_on_line_item_spec.rb
980
- - spec/models/spree/calculator/price_sack_spec.rb
981
- - spec/models/spree/calculator/refunds/default_refund_amount_spec.rb
982
- - spec/models/spree/calculator/shipping.rb
983
- - spec/models/spree/calculator/shipping/flat_percent_item_total_spec.rb
984
- - spec/models/spree/calculator/shipping/flat_rate_spec.rb
985
- - spec/models/spree/calculator/shipping/flexi_rate_spec.rb
986
- - spec/models/spree/calculator/shipping/per_item_spec.rb
987
- - spec/models/spree/calculator/shipping/price_sack_spec.rb
988
- - spec/models/spree/calculator/tiered_flat_rate_spec.rb
989
- - spec/models/spree/calculator/tiered_percent_spec.rb
990
- - spec/models/spree/calculator_spec.rb
991
- - spec/models/spree/classification_spec.rb
992
- - spec/models/spree/concerns/display_money_spec.rb
993
- - spec/models/spree/concerns/user_methods_spec.rb
994
- - spec/models/spree/concerns/vat_price_calculation_spec.rb
995
- - spec/models/spree/country_spec.rb
996
- - spec/models/spree/credit_card_spec.rb
997
- - spec/models/spree/customer_return_spec.rb
998
- - spec/models/spree/exchange_spec.rb
999
- - spec/models/spree/gateway/bogus_simple.rb
1000
- - spec/models/spree/gateway/bogus_spec.rb
1001
- - spec/models/spree/gateway_spec.rb
1002
- - spec/models/spree/image_spec.rb
1003
- - spec/models/spree/inventory_unit_spec.rb
1004
- - spec/models/spree/line_item_spec.rb
1005
- - spec/models/spree/option_type_spec.rb
1006
- - spec/models/spree/option_value_spec.rb
1007
- - spec/models/spree/order/address_spec.rb
1008
- - spec/models/spree/order/adjustments_spec.rb
1009
- - spec/models/spree/order/callbacks_spec.rb
1010
- - spec/models/spree/order/checkout_spec.rb
1011
- - spec/models/spree/order/currency_updater_spec.rb
1012
- - spec/models/spree/order/finalizing_spec.rb
1013
- - spec/models/spree/order/helpers_spec.rb
1014
- - spec/models/spree/order/payment_spec.rb
1015
- - spec/models/spree/order/risk_assessment_spec.rb
1016
- - spec/models/spree/order/shipments_spec.rb
1017
- - spec/models/spree/order/state_machine_spec.rb
1018
- - spec/models/spree/order/store_credit_spec.rb
1019
- - spec/models/spree/order/tax_spec.rb
1020
- - spec/models/spree/order/totals_spec.rb
1021
- - spec/models/spree/order/updating_spec.rb
1022
- - spec/models/spree/order/validations_spec.rb
1023
- - spec/models/spree/order_contents_spec.rb
1024
- - spec/models/spree/order_inventory_spec.rb
1025
- - spec/models/spree/order_merger_spec.rb
1026
- - spec/models/spree/order_spec.rb
1027
- - spec/models/spree/order_updater_spec.rb
1028
- - spec/models/spree/payment/gateway_options_spec.rb
1029
- - spec/models/spree/payment/store_credit_spec.rb
1030
- - spec/models/spree/payment_method/store_credit_spec.rb
1031
- - spec/models/spree/payment_method_spec.rb
1032
- - spec/models/spree/payment_spec.rb
1033
- - spec/models/spree/preference_spec.rb
1034
- - spec/models/spree/preferences/configuration_spec.rb
1035
- - spec/models/spree/preferences/preferable_spec.rb
1036
- - spec/models/spree/preferences/scoped_store_spec.rb
1037
- - spec/models/spree/preferences/store_spec.rb
1038
- - spec/models/spree/price_spec.rb
1039
- - spec/models/spree/product/scopes_spec.rb
1040
- - spec/models/spree/product_duplicator_spec.rb
1041
- - spec/models/spree/product_filter_spec.rb
1042
- - spec/models/spree/product_option_type_spec.rb
1043
- - spec/models/spree/product_promotion_rule_spec.rb
1044
- - spec/models/spree/product_property_spec.rb
1045
- - spec/models/spree/product_spec.rb
1046
- - spec/models/spree/promotion/actions/create_adjustment_spec.rb
1047
- - spec/models/spree/promotion/actions/create_item_adjustments_spec.rb
1048
- - spec/models/spree/promotion/actions/create_line_items_spec.rb
1049
- - spec/models/spree/promotion/actions/free_shipping_spec.rb
1050
- - spec/models/spree/promotion/rules/first_order_spec.rb
1051
- - spec/models/spree/promotion/rules/item_total_spec.rb
1052
- - spec/models/spree/promotion/rules/one_use_per_user_spec.rb
1053
- - spec/models/spree/promotion/rules/option_value_spec.rb
1054
- - spec/models/spree/promotion/rules/product_spec.rb
1055
- - spec/models/spree/promotion/rules/taxon_spec.rb
1056
- - spec/models/spree/promotion/rules/user_logged_in_spec.rb
1057
- - spec/models/spree/promotion/rules/user_spec.rb
1058
- - spec/models/spree/promotion_action_spec.rb
1059
- - spec/models/spree/promotion_category_spec.rb
1060
- - spec/models/spree/promotion_handler/cart_spec.rb
1061
- - spec/models/spree/promotion_handler/coupon_spec.rb
1062
- - spec/models/spree/promotion_handler/free_shipping_spec.rb
1063
- - spec/models/spree/promotion_handler/page_spec.rb
1064
- - spec/models/spree/promotion_rule_spec.rb
1065
- - spec/models/spree/promotion_rule_taxon_spec.rb
1066
- - spec/models/spree/promotion_rule_user_spec.rb
1067
- - spec/models/spree/promotion_spec.rb
1068
- - spec/models/spree/property_prototype_spec.rb
1069
- - spec/models/spree/property_spec.rb
1070
- - spec/models/spree/prototype_spec.rb
1071
- - spec/models/spree/prototype_taxon_spec.rb
1072
- - spec/models/spree/refund_reason_spec.rb
1073
- - spec/models/spree/refund_spec.rb
1074
- - spec/models/spree/reimbursement/credit_spec.rb
1075
- - spec/models/spree/reimbursement/reimbursement_type_engine_spec.rb
1076
- - spec/models/spree/reimbursement/reimbursement_type_validator_spec.rb
1077
- - spec/models/spree/reimbursement_performer_spec.rb
1078
- - spec/models/spree/reimbursement_spec.rb
1079
- - spec/models/spree/reimbursement_tax_calculator_spec.rb
1080
- - spec/models/spree/reimbursement_type/credit_spec.rb
1081
- - spec/models/spree/reimbursement_type/exchange_spec.rb
1082
- - spec/models/spree/reimbursement_type/original_payment_spec.rb
1083
- - spec/models/spree/reimbursement_type/store_credit_spec.rb
1084
- - spec/models/spree/return_authorization_reason_spec.rb
1085
- - spec/models/spree/return_authorization_spec.rb
1086
- - spec/models/spree/return_item/eligibility_validator/default_spec.rb
1087
- - spec/models/spree/return_item/eligibility_validator/inventory_shipped_spec.rb
1088
- - spec/models/spree/return_item/eligibility_validator/no_reimbursements_spec.rb
1089
- - spec/models/spree/return_item/eligibility_validator/order_completed_spec.rb
1090
- - spec/models/spree/return_item/eligibility_validator/rma_required_spec.rb
1091
- - spec/models/spree/return_item/eligibility_validator/time_since_purchase_spec.rb
1092
- - spec/models/spree/return_item/exchange_variant_eligibility/same_option_value_spec.rb
1093
- - spec/models/spree/return_item/exchange_variant_eligibility/same_product_spec.rb
1094
- - spec/models/spree/return_item_spec.rb
1095
- - spec/models/spree/returns_calculator_spec.rb
1096
- - spec/models/spree/role_spec.rb
1097
- - spec/models/spree/shipment_spec.rb
1098
- - spec/models/spree/shipping_calculator_spec.rb
1099
- - spec/models/spree/shipping_category_spec.rb
1100
- - spec/models/spree/shipping_method_spec.rb
1101
- - spec/models/spree/shipping_rate_spec.rb
1102
- - spec/models/spree/state_spec.rb
1103
- - spec/models/spree/stock/availability_validator_spec.rb
1104
- - spec/models/spree/stock/content_item_spec.rb
1105
- - spec/models/spree/stock/coordinator_spec.rb
1106
- - spec/models/spree/stock/differentiator_spec.rb
1107
- - spec/models/spree/stock/estimator_spec.rb
1108
- - spec/models/spree/stock/inventory_unit_builder_spec.rb
1109
- - spec/models/spree/stock/package_spec.rb
1110
- - spec/models/spree/stock/packer_spec.rb
1111
- - spec/models/spree/stock/prioritizer_spec.rb
1112
- - spec/models/spree/stock/quantifier_spec.rb
1113
- - spec/models/spree/stock/splitter/backordered_spec.rb
1114
- - spec/models/spree/stock/splitter/base_spec.rb
1115
- - spec/models/spree/stock/splitter/shipping_category_spec.rb
1116
- - spec/models/spree/stock/splitter/weight_spec.rb
1117
- - spec/models/spree/stock_item_spec.rb
1118
- - spec/models/spree/stock_location_spec.rb
1119
- - spec/models/spree/stock_movement_spec.rb
1120
- - spec/models/spree/stock_transfer_spec.rb
1121
- - spec/models/spree/store_credit_event_spec.rb
1122
- - spec/models/spree/store_credit_spec.rb
1123
- - spec/models/spree/store_spec.rb
1124
- - spec/models/spree/tax_category_spec.rb
1125
- - spec/models/spree/tax_rate_spec.rb
1126
- - spec/models/spree/taxon_spec.rb
1127
- - spec/models/spree/taxonomy_spec.rb
1128
- - spec/models/spree/tracker_spec.rb
1129
- - spec/models/spree/user_spec.rb
1130
- - spec/models/spree/variant_spec.rb
1131
- - spec/models/spree/zone_member_spec.rb
1132
- - spec/models/spree/zone_spec.rb
1133
- - spec/spec_helper.rb
1134
- - spec/support/big_decimal.rb
1135
- - spec/support/concerns/adjustment_source.rb
1136
- - spec/support/concerns/default_price.rb
1137
- - spec/support/rake.rb
1138
- - spec/support/test_gateway.rb
1139
- - spec/validators/db_maximum_length_validator_spec.rb
1140
943
  - spree_core.gemspec
1141
944
  - vendor/assets/javascripts/jquery-migrate-1.0.0.js
1142
945
  - vendor/assets/javascripts/jquery.payment.js
@@ -1163,7 +966,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1163
966
  version: 1.8.23
1164
967
  requirements: []
1165
968
  rubyforge_project:
1166
- rubygems_version: 2.6.10
969
+ rubygems_version: 2.6.11
1167
970
  signing_key:
1168
971
  specification_version: 4
1169
972
  summary: The bare bones necessary for Spree.
@@ -1,22 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <!-- shameless -->
4
- <head>
5
- <title>Jason Ronallo</title>
6
- </head>
7
-
8
- <body>
9
- <span itemscope itemtype="http://schema.org/Person"
10
- itemid="http://ronallo.com#me">
11
- <a itemprop="url" href="http://twitter.com/ronallo">
12
- <span itemprop="name">Jason Ronallo</span>
13
- </a> is the
14
- <span itemprop="jobTitle">Associate Head of Digital Library Initiatives</span> at
15
- <span itemprop="affiliation" itemscope itemtype="http://schema.org/Library" itemid="http://lib.ncsu.edu">
16
- <span itemprop="name">
17
- <a itemprop="url" href="http://www.lib.ncsu.edu">NCSU Libraries</a>
18
- </span>
19
- </span>
20
- </span>
21
- </body>
22
- </html>