spree_delivery_time_range 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +35 -0
- data/Rakefile +1 -0
- data/app/controllers/spree/admin/delivery_time_ranges_controller.rb +7 -0
- data/app/models/order_decorator.rb +7 -0
- data/app/models/spree/delivery_time_range.rb +26 -0
- data/app/overrides/admin/orders/admin_orders_delivery_time_column.rb +11 -0
- data/app/overrides/admin/shared/admin_order_information.rb +5 -0
- data/app/overrides/checkout/delivery_time.rb +5 -0
- data/app/overrides/orders/delivery_time_details.rb +5 -0
- data/app/overrides/spree/admin/delivery_time_range_admin_configurations_menu.rb +5 -0
- data/app/views/spree/admin/delivery_time_ranges/_form.html.erb +25 -0
- data/app/views/spree/admin/delivery_time_ranges/edit.html.erb +21 -0
- data/app/views/spree/admin/delivery_time_ranges/index.html.erb +39 -0
- data/app/views/spree/admin/delivery_time_ranges/new.html.erb +21 -0
- data/app/views/spree/admin/orders/_delivery_time_cell.html.erb +5 -0
- data/app/views/spree/admin/orders/_delivery_time_header.html.erb +1 -0
- data/app/views/spree/admin/shared/_admin_order_information_delivery_time.html.erb +6 -0
- data/app/views/spree/checkout/_delivery_time.html.erb +7 -0
- data/app/views/spree/orders/_order_delivery_time_details.html.erb +8 -0
- data/config/locales/spree_delivery_time.en.yml +35 -0
- data/config/locales/spree_delivery_time.es.yml +35 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20131215165714_add_delivery_time_to_orders.rb +9 -0
- data/db/migrate/20131215224902_create_delivery_time_ranges.rb +16 -0
- data/lib/generators/spree_delivery_time_range/install/install_generator.rb +29 -0
- data/lib/spree_delivery_time_range.rb +2 -0
- data/lib/spree_delivery_time_range/engine.rb +17 -0
- data/lib/spree_delivery_time_range/version.rb +3 -0
- data/script/rails +7 -0
- data/spree_delivery_time_range.gemspec +23 -0
- metadata +106 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9fd06736d28eeba9deb1987a995bbe4433b79a6b
|
4
|
+
data.tar.gz: f921a49f9e66709b893a42a7d22ea4228b2f9c89
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 93bafcd3663b65476efe29d8c4e5a6699ace064666f9a6fb1e2755d217fa14e9b637b3cde824a3a3dfa06aecc4cbdc16f1a9394eb5ac2f66124d2b0718215253
|
7
|
+
data.tar.gz: 70b8b16fd9e5d249f5be171ec6b56e7d20a1499abcf96eaef0b5202d3c1f0d73079f02b0e0b4631d6de260e9111305fef20e3b7da78223ebb0ca35ee024c032b
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Agustin Anfuso
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Spree Delivery Time Range
|
2
|
+
|
3
|
+
[![Code Climate](https://codeclimate.com/github/aanfuso/spree_delivery_time_range.png)](https://codeclimate.com/github/aanfuso/spree_delivery_time_range)
|
4
|
+
|
5
|
+
Based on [Spree Delivery Time](https://github.com/aanfuso/spree_delivery_time).
|
6
|
+
|
7
|
+
It allows admins to define time ranges for orders delivery instead of let users define it by themselves like on spree_delivery_time.
|
8
|
+
|
9
|
+
The users can select a range of time, defined by the admin, during the checkout process to chose when they want to receive their order.
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
gem 'spree_delivery_time_range'
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install spree_delivery_time_range
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
$ rails g spree_delivery_time_range:install
|
28
|
+
|
29
|
+
to install and run the migrations. This migration simply
|
30
|
+
adds delivery_time column to Spree::Order and a new table to persist
|
31
|
+
time ranges defined by the admin.
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Code improvements are welcome!
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Spree
|
2
|
+
class DeliveryTimeRange < ActiveRecord::Base
|
3
|
+
validates :name, :start_delivery_time, :end_delivery_time, presence: true
|
4
|
+
validate :time_range
|
5
|
+
|
6
|
+
scope :visible, where(visible: true)
|
7
|
+
|
8
|
+
attr_accessible :name, :start_delivery_time, :end_delivery_time, :visible
|
9
|
+
|
10
|
+
def delivery_time
|
11
|
+
"#{ start_delivery_time.strftime("%H:%M") } - #{ end_delivery_time.strftime("%H:%M") }"
|
12
|
+
end
|
13
|
+
|
14
|
+
def delivery_time_description
|
15
|
+
"#{ name } - #{ delivery_time }"
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
def time_range
|
20
|
+
if start_delivery_time > end_delivery_time
|
21
|
+
errors.add(:start_delivery_time, :less_than, count: :end_delivery_time)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Deface::Override.new(virtual_path: "spree/admin/orders/index",
|
2
|
+
name: "add_delivery_time_table_header",
|
3
|
+
insert_top: "[data-hook='admin_orders_index_headers']",
|
4
|
+
partial: "spree/admin/orders/delivery_time_header",
|
5
|
+
disabled: false)
|
6
|
+
|
7
|
+
Deface::Override.new(virtual_path: "spree/admin/orders/index",
|
8
|
+
name: "add_delivery_time_table_row_cell",
|
9
|
+
insert_top: "[data-hook='admin_orders_index_rows']",
|
10
|
+
partial: "spree/admin/orders/delivery_time_cell",
|
11
|
+
disabled: false)
|
@@ -0,0 +1,5 @@
|
|
1
|
+
Deface::Override.new(virtual_path: "spree/admin/shared/_configuration_menu",
|
2
|
+
name: "delivery_time_range_admin_configurations_menu",
|
3
|
+
insert_bottom: "[data-hook='admin_configurations_sidebar_menu']",
|
4
|
+
text: "<%= configurations_sidebar_menu_item t('spree.admin.menu.delivery_time_ranges'), admin_delivery_time_ranges_url %>",
|
5
|
+
disabled: false)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<div data-hook="admin_relivery_time_ranges_form_fields" class="row">
|
2
|
+
<div class="alpha six columns">
|
3
|
+
<div data-hook="name" class="field">
|
4
|
+
<%= f.label t(:name) %><br />
|
5
|
+
<%= f.text_field :name, class: 'fullwidth' %>
|
6
|
+
</div>
|
7
|
+
<div data-hook="visible" class="field checkbox">
|
8
|
+
<label>
|
9
|
+
<%= f.check_box :visible %>
|
10
|
+
<%= t(:visible) %><br />
|
11
|
+
<label>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="omega six columns">
|
16
|
+
<div data-hook="start_delivery_time_range" class="field">
|
17
|
+
<%= f.label t('activerecord.attributes.start_delivery_time') %><br />
|
18
|
+
<%= f.time_select :start_delivery_time %>
|
19
|
+
</div>
|
20
|
+
<div data-hook="end_delivery_time_range" class="field">
|
21
|
+
<%= f.label t('activerecord.attributes.end_delivery_time') %><br />
|
22
|
+
<%= f.time_select :end_delivery_time %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<%= render partial: 'spree/admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= t('spree.admin.editing_time_range')%>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<%= button_link_to t('spree.admin.back_to_time_ranges'), spree.admin_delivery_time_ranges_path, icon: 'icon-arrow-left' %>
|
10
|
+
</li>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%= render 'spree/shared/error_messages', target: @delivery_time_range %>
|
14
|
+
|
15
|
+
<%= form_for [:admin, @delivery_time_range] do |f| %>
|
16
|
+
<fieldset class="no-border-top">
|
17
|
+
<%= render partial: "form", locals: { f: f } %>
|
18
|
+
<div class="clear"></div>
|
19
|
+
<%= render partial: "spree/admin/shared/edit_resource_links" %>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<%= render partial: 'spree/admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= t('spree.admin.listing_time_ranges') %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<%= button_link_to t('spree.admin.new_time_range'), new_object_url, icon: 'icon-plus' %>
|
10
|
+
</li>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<table class="index">
|
14
|
+
<thead>
|
15
|
+
<tr>
|
16
|
+
<th><%= t(:name) %></th>
|
17
|
+
<th><%= t(:delivery_time) %></th>
|
18
|
+
<th><%= t(:visible) %></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
<tbody>
|
22
|
+
<% @delivery_time_ranges.each do |time_range|%>
|
23
|
+
<tr id="<%= dom_id time_range %>">
|
24
|
+
<td class="align-center">
|
25
|
+
<%= link_to time_range.name, edit_admin_delivery_time_range_path(time_range) %>
|
26
|
+
</td>
|
27
|
+
<td class="align-center">
|
28
|
+
<%= time_range.delivery_time %>
|
29
|
+
</td>
|
30
|
+
<td class="align-center">
|
31
|
+
<%= content_tag(:i, '', class: 'icon-ok green') if time_range.visible %>
|
32
|
+
</td>
|
33
|
+
<td class="actions">
|
34
|
+
<%= link_to_edit time_range, no_text: true %>
|
35
|
+
<%= link_to_delete time_range, no_text: true %>
|
36
|
+
</tr>
|
37
|
+
<% end %>
|
38
|
+
</tbody>
|
39
|
+
</table>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<%= render partial: 'spree/admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= t('spree.admin.new_time_range')%>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<%= button_link_to t('spree.admin.back_to_time_ranges'), spree.admin_delivery_time_ranges_path, icon: 'icon-arrow-left' %>
|
10
|
+
</li>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%= render 'spree/shared/error_messages', target: @delivery_time_range %>
|
14
|
+
|
15
|
+
<%= form_for [:admin, @delivery_time_range] do |f| %>
|
16
|
+
<fieldset class="no-border-top">
|
17
|
+
<%= render partial: "form", locals: { f: f } %>
|
18
|
+
<div class="clear"></div>
|
19
|
+
<%= render partial: "spree/admin/shared/new_resource_links" %>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<th><%= t(:delivery_time) %></th>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
en:
|
2
|
+
activerecord:
|
3
|
+
attributes:
|
4
|
+
spree/delivery_time_range:
|
5
|
+
name: Name
|
6
|
+
start_delivery_time: Start delivery time
|
7
|
+
end_delivery_time: End delivery time
|
8
|
+
spree/order:
|
9
|
+
delivery_time: Delivery Time
|
10
|
+
start_delivery_time: Start delivery time
|
11
|
+
end_delivery_time: End delivery time
|
12
|
+
start_delivery_time: Start delivery time
|
13
|
+
end_delivery_time: End delivery time
|
14
|
+
errors:
|
15
|
+
models:
|
16
|
+
spree/order:
|
17
|
+
attributes:
|
18
|
+
start_delivery_time:
|
19
|
+
en: must be before end delivery time
|
20
|
+
helpers:
|
21
|
+
label:
|
22
|
+
order:
|
23
|
+
start_delivery_time: Start delivery time
|
24
|
+
end_delivery_time: End delivery time
|
25
|
+
spree:
|
26
|
+
admin:
|
27
|
+
menu:
|
28
|
+
delivery_time_ranges: Delivery time ranges
|
29
|
+
new_time_range: New delivery time range
|
30
|
+
editing_time_range: Edit delivery time range
|
31
|
+
listing_time_ranges: Delivery time ranges
|
32
|
+
back_to_time_ranges: Back to delivery time ranges
|
33
|
+
spree_delivery_time:
|
34
|
+
title: Delivery Time Gap
|
35
|
+
delivery_time: Delivery Time
|
@@ -0,0 +1,35 @@
|
|
1
|
+
es:
|
2
|
+
activerecord:
|
3
|
+
attributes:
|
4
|
+
spree/delivery_time_range:
|
5
|
+
name: Nombre
|
6
|
+
end_delivery_time: Horario final de entrega
|
7
|
+
start_delivery_time: Horario inicial de entrega
|
8
|
+
spree/order:
|
9
|
+
delivery_time: Horario de entrega
|
10
|
+
start_delivery_time: Horario inicial de entrega
|
11
|
+
end_delivery_time: Horario final de entrega
|
12
|
+
start_delivery_time: Horario inicial de entrega
|
13
|
+
end_delivery_time: Horario final de entrega
|
14
|
+
errors:
|
15
|
+
models:
|
16
|
+
spree/order:
|
17
|
+
attributes:
|
18
|
+
start_delivery_time:
|
19
|
+
es: debe ser antes del horario de entrega final
|
20
|
+
helpers:
|
21
|
+
label:
|
22
|
+
order:
|
23
|
+
start_delivery_time: Horario inicial de entrega
|
24
|
+
end_delivery_time: Horario final de entrega
|
25
|
+
spree:
|
26
|
+
admin:
|
27
|
+
menu:
|
28
|
+
delivery_time_ranges: Franjas horarias de entrega
|
29
|
+
new_time_range: Nueva franja horaria de entrega
|
30
|
+
editing_time_range: Editar franja horaria de entrega
|
31
|
+
listing_time_ranges: Franjas horarias de entrega
|
32
|
+
back_to_time_ranges: Volver a franjas horarias de entrega
|
33
|
+
spree_delivery_time:
|
34
|
+
title: Franja horaria de entrega
|
35
|
+
delivery_time: Horario de entrega
|
data/config/routes.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
class CreateDeliveryTimeRanges < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
create_table :spree_delivery_time_ranges do |t|
|
4
|
+
t.string :name
|
5
|
+
t.time :start_delivery_time
|
6
|
+
t.time :end_delivery_time
|
7
|
+
t.boolean :visible, default: false
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def down
|
14
|
+
drop_table :spree_delivery_time_ranges
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module SpreeDeliveryTimeRange
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
|
5
|
+
def add_javascripts
|
6
|
+
append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_core\n"
|
7
|
+
append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_core\n"
|
8
|
+
end
|
9
|
+
|
10
|
+
def add_stylesheets
|
11
|
+
inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_core\n", before: /\*\//, verbose: true
|
12
|
+
inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_core\n", before: /\*\//, verbose: true
|
13
|
+
end
|
14
|
+
|
15
|
+
def add_migrations
|
16
|
+
run 'bundle exec rake railties:install:migrations FROM=spree_delivery_time_range'
|
17
|
+
end
|
18
|
+
|
19
|
+
def run_migrations
|
20
|
+
res = ask 'Would you like to run the migrations now? [Y/n]'
|
21
|
+
if res == '' || res.downcase == 'y'
|
22
|
+
run 'bundle exec rake db:migrate'
|
23
|
+
else
|
24
|
+
puts 'Skipping rake db:migrate, don\'t forget to run it!'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module SpreeDeliveryTimeRange
|
2
|
+
class Engine < Rails::Engine
|
3
|
+
require 'spree/core'
|
4
|
+
isolate_namespace Spree
|
5
|
+
engine_name 'spree_delivery_time_range'
|
6
|
+
|
7
|
+
config.autoload_paths += %W(#{config.root}/lib)
|
8
|
+
|
9
|
+
def self.activate
|
10
|
+
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
|
11
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
config.to_prepare &method(:activate).to_proc
|
16
|
+
end
|
17
|
+
end
|
data/script/rails
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
2
|
+
|
3
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
4
|
+
ENGINE_PATH = File.expand_path('../../lib/spree_delivery_time_range/engine', __FILE__)
|
5
|
+
|
6
|
+
require 'rails/all'
|
7
|
+
require 'rails/engine/commands'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'spree_delivery_time_range/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "spree_delivery_time_range"
|
8
|
+
spec.version = SpreeDeliveryTimeRange::VERSION
|
9
|
+
spec.authors = ["Agustin Anfuso"]
|
10
|
+
spec.email = ["anfusoagustin89@gmail.com"]
|
11
|
+
spec.description = %q{Allows admin to define time ranges for orders delivery so users can select when they want their orders to be delivered, during the checkout process.}
|
12
|
+
spec.summary = %q{Define time ranges for orders.}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spree_delivery_time_range
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Agustin Anfuso
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Allows admin to define time ranges for orders delivery so users can select
|
42
|
+
when they want their orders to be delivered, during the checkout process.
|
43
|
+
email:
|
44
|
+
- anfusoagustin89@gmail.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- .gitignore
|
50
|
+
- Gemfile
|
51
|
+
- LICENSE.txt
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- app/controllers/spree/admin/delivery_time_ranges_controller.rb
|
55
|
+
- app/models/order_decorator.rb
|
56
|
+
- app/models/spree/delivery_time_range.rb
|
57
|
+
- app/overrides/admin/orders/admin_orders_delivery_time_column.rb
|
58
|
+
- app/overrides/admin/shared/admin_order_information.rb
|
59
|
+
- app/overrides/checkout/delivery_time.rb
|
60
|
+
- app/overrides/orders/delivery_time_details.rb
|
61
|
+
- app/overrides/spree/admin/delivery_time_range_admin_configurations_menu.rb
|
62
|
+
- app/views/spree/admin/delivery_time_ranges/_form.html.erb
|
63
|
+
- app/views/spree/admin/delivery_time_ranges/edit.html.erb
|
64
|
+
- app/views/spree/admin/delivery_time_ranges/index.html.erb
|
65
|
+
- app/views/spree/admin/delivery_time_ranges/new.html.erb
|
66
|
+
- app/views/spree/admin/orders/_delivery_time_cell.html.erb
|
67
|
+
- app/views/spree/admin/orders/_delivery_time_header.html.erb
|
68
|
+
- app/views/spree/admin/shared/_admin_order_information_delivery_time.html.erb
|
69
|
+
- app/views/spree/checkout/_delivery_time.html.erb
|
70
|
+
- app/views/spree/orders/_order_delivery_time_details.html.erb
|
71
|
+
- config/locales/spree_delivery_time.en.yml
|
72
|
+
- config/locales/spree_delivery_time.es.yml
|
73
|
+
- config/routes.rb
|
74
|
+
- db/migrate/20131215165714_add_delivery_time_to_orders.rb
|
75
|
+
- db/migrate/20131215224902_create_delivery_time_ranges.rb
|
76
|
+
- lib/generators/spree_delivery_time_range/install/install_generator.rb
|
77
|
+
- lib/spree_delivery_time_range.rb
|
78
|
+
- lib/spree_delivery_time_range/engine.rb
|
79
|
+
- lib/spree_delivery_time_range/version.rb
|
80
|
+
- script/rails
|
81
|
+
- spree_delivery_time_range.gemspec
|
82
|
+
homepage: ''
|
83
|
+
licenses:
|
84
|
+
- MIT
|
85
|
+
metadata: {}
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
requirements: []
|
101
|
+
rubyforge_project:
|
102
|
+
rubygems_version: 2.0.14
|
103
|
+
signing_key:
|
104
|
+
specification_version: 4
|
105
|
+
summary: Define time ranges for orders.
|
106
|
+
test_files: []
|