spree_correios 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,10 +9,6 @@ module Spree
|
|
9
9
|
|
10
10
|
attr_reader :delivery_time
|
11
11
|
|
12
|
-
def compute(object)
|
13
|
-
compute_delivery_price_and_time(object)
|
14
|
-
end
|
15
|
-
|
16
12
|
def compute(object)
|
17
13
|
return unless object.present? and object.line_items.present?
|
18
14
|
order = object.is_a?(Spree::Order) ? object : object.order
|
@@ -5,7 +5,7 @@ module SpreeCorreios
|
|
5
5
|
config.autoload_paths += %W(#{config.root}/lib)
|
6
6
|
|
7
7
|
initializer "spree.register.correios_calculator", after: "spree.register.calculators" do |app|
|
8
|
-
app.config.spree.calculators.shipping_methods += [Spree::Calculator::SEDEX, Spree::Calculator::PAC]
|
8
|
+
app.config.spree.calculators.shipping_methods += [Spree::Calculator::SEDEX, Spree::Calculator::PAC, Spree::Calculator::SEDEX10]
|
9
9
|
end
|
10
10
|
|
11
11
|
# use rspec for tests
|
data/spree_correios.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_correios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- app/models/spree/calculator/correios_base_calculator.rb
|
143
143
|
- app/models/spree/calculator/pac.rb
|
144
144
|
- app/models/spree/calculator/sedex.rb
|
145
|
+
- app/models/spree/calculator/sedex10.rb
|
145
146
|
- config/locales/pt-br.yml
|
146
147
|
- config/routes.rb
|
147
148
|
- lib/generators/spree_correios/install/install_generator.rb
|
@@ -175,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
176
|
requirements:
|
176
177
|
- none
|
177
178
|
rubyforge_project:
|
178
|
-
rubygems_version: 1.8.
|
179
|
+
rubygems_version: 1.8.23
|
179
180
|
signing_key:
|
180
181
|
specification_version: 3
|
181
182
|
summary: A spree extensions to add Brazil's Correio calculators
|