-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Spree i18n namespace. - Changed to hash syntax. - Now it uses Spree::ShippingCalculator - Updated spec syntax.
- Loading branch information
Showing
13 changed files
with
185 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
--- | ||
en: | ||
price_table: Prices (space seperated) | ||
weight_table: Weights (space seperated) | ||
postal_service: Postal Service | ||
max_item_weight: Max weight of one item | ||
max_item_width: Max width of one item | ||
max_item_length: Max length of one item | ||
handling_fee: Handling fee | ||
handling_max: "Amount, over which handling fee won't be applied" | ||
min_price: Minimum total of the order | ||
default_weight: Default weight | ||
spree: | ||
price_table: Prices (space seperated) | ||
weight_table: Weights (space seperated) | ||
postal_service: Postal Service | ||
max_item_weight: Max weight of one item | ||
max_item_width: Max width of one item | ||
max_item_length: Max length of one item | ||
handling_fee: Handling fee | ||
handling_max: "Amount, over which handling fee won't be applied" | ||
min_price: Minimum price | ||
default_weight: Default weight | ||
max_price: Maximum price |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
--- | ||
pt: | ||
price_table: Preços (separados por espaços) | ||
weight_table: Pesos (separados por espaços) | ||
postal_service: Serviço Postal | ||
max_item_weight: Peso máximo por item | ||
max_item_width: Peso máxima por item | ||
max_item_length: Comprimento máximo por item | ||
handling_fee: Taxa de tratamento | ||
handling_max: Valor a partir do qual a taxa de tratamento não é aplicada | ||
min_price: Preço mínimo | ||
default_weight: Peso por omissão | ||
spree: | ||
price_table: Preços (separados por espaços) | ||
weight_table: Pesos (separados por espaços) | ||
postal_service: Serviço Postal | ||
max_item_weight: Peso máximo por item | ||
max_item_width: Peso máxima por item | ||
max_item_length: Comprimento máximo por item | ||
handling_fee: Taxa de tratamento | ||
handling_max: Valor a partir do qual a taxa de tratamento não é aplicada | ||
min_price: Preço mínimo | ||
default_weight: Peso por omissão | ||
max_price: Preço máximo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
--- | ||
sv: | ||
price_table: Priser (mellanrums separerade) | ||
weight_table: Vikter (mellanrums separerade) | ||
postal_service: Post Service | ||
max_item_weight: Max vikt på ett objekt | ||
max_item_width: Max bredd på ett objekt | ||
max_item_length: Max längd på ett objekt | ||
handling_fee: Hantering avgift | ||
handling_max: "Belopp, över vilken expeditionsavgift inte skall tillämpas" | ||
min_price: Minsta belopp | ||
default_weight: Förvald vikt | ||
spree: | ||
price_table: Priser (mellanrums separerade) | ||
weight_table: Vikter (mellanrums separerade) | ||
postal_service: Post Service | ||
max_item_weight: Max vikt på ett objekt | ||
max_item_width: Max bredd på ett objekt | ||
max_item_length: Max längd på ett objekt | ||
handling_fee: Hantering avgift | ||
handling_max: "Belopp, över vilken expeditionsavgift inte skall tillämpas" | ||
min_price: Minsta belopp | ||
default_weight: Förvald vikt | ||
max_price: Största belopp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
require 'spree/core' | ||
require 'spree_core' | ||
require 'spree_postal_service/engine' | ||
require 'spree_postal_service/version' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
module SpreePostalService | ||
class Engine < Rails::Engine | ||
isolate_namespace Spree | ||
engine_name 'spree_postal_service' | ||
|
||
config.autoload_paths += %W(#{config.root}/lib) | ||
|
||
initializer 'spree.register.calculators' do |app| | ||
require 'spree/calculator/postal_service' | ||
|
||
app.config.spree.calculators.shipping_methods << Spree::Calculator::PostalService | ||
require 'spree/calculator/shipping/postal_service' | ||
app.config.spree.calculators.shipping_methods << Spree::Calculator::Shipping::PostalService | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ def self.version | |
|
||
module VERSION | ||
MAJOR = 2 | ||
MINOR = 0 | ||
MINOR = 1 | ||
TINY = 0 | ||
PRE = nil | ||
|
||
|
Oops, something went wrong.