spree_delivery_options 2.2.10 → 2.2.11

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: 4f5a03d996f7cadc0ca14c68db26a316930675b2
4
- data.tar.gz: 937419643b561f2e352ffe2f4d77d00528722f85
3
+ metadata.gz: d6d564ff3ecdb805d0a7aee1a5bbe0dd32a1725f
4
+ data.tar.gz: 9901087a1263c1088c37e86e01c6040f5920ce99
5
5
  SHA512:
6
- metadata.gz: 98a2fb5a4c6423a9f8757fbb068e0192bf77fa3c0470f797c6872d1ee29628673f7d1c906cd3cd8e953b13a654f7bb5ebd074b93f639b3a900841f12b19e7cf2
7
- data.tar.gz: cb798df4efe3417f322e4a4eb89c1d93ad01f520d849832b0a2506f6df34019586e74c437a84cb6396e7dc61c3ca87cd87eaa983b1a21f1c4bb6dad06d947fb3
6
+ metadata.gz: 405bda8d16649dcb7d214ed129c2b641fd225037a81d7e521943447d9aa117c3116168736bbc03cfc3e1b09a24e851c891174e4b51388001541a4ecae5881556
7
+ data.tar.gz: 95fa41aeb994190dee460ba3ae7dbf19e58a58f245ac6f9230407541314f930d871a24a48949f7bdb30472f9853b73d7cbea66f755dd0aea9620a734bcff4b89
@@ -0,0 +1,3 @@
1
+ Spree::CheckoutController.class_eval do
2
+ helper 'spree_delivery_options/base'
3
+ end
@@ -7,7 +7,7 @@
7
7
  .field
8
8
  .selected-delivery-time{data: @order.delivery_time}
9
9
  = form.label :delivery_time, "Delivery Time"
10
- = form.select :delivery_time, JSON.parse(SpreeDeliveryOptions::Config.delivery_time_options)["monday"]
10
+ = form.select :delivery_time, current_delivery_options_for_date(Date.tomorrow)
11
11
 
12
12
  .delivery-time-options{data: SpreeDeliveryOptions::Config.delivery_time_options}
13
13
 
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_delivery_options'
5
- s.version = '2.2.10'
5
+ s.version = '2.2.11'
6
6
  s.summary = 'Adds delivery date and time during checkout'
7
7
  s.description = ''
8
8
  s.required_ruby_version = '>= 2.0.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_delivery_options
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.10
4
+ version: 2.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Trindade
@@ -262,6 +262,7 @@ files:
262
262
  - app/assets/stylesheets/spree/frontend/jquery-ui-1.10.4.custom.css
263
263
  - app/assets/stylesheets/spree/frontend/spree_delivery_options.css
264
264
  - app/controllers/spree/admin/orders/delivery_options_controller.rb
265
+ - app/controllers/spree/checkout_controller_decorator.rb
265
266
  - app/controllers/spree/products_controller_decorator.rb
266
267
  - app/controllers/spree/taxons_controller_decorator.rb
267
268
  - app/helpers/spree/application_helper_decorator.rb