solidus_brazilian_adaptations 1.1.10 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/seeds.rb +0 -2
- data/db/spree_br/payment.rb +7 -4
- data/db/spree_br/refund_reasons.rb +1 -1
- data/db/spree_br/return_reasons.rb +9 -9
- data/db/spree_br/shipping.rb +15 -12
- data/db/spree_br/stock_locations.rb +1 -1
- data/db/spree_br/store_credit.rb +1 -0
- data/lib/solidus_brazilian_adaptations/version.rb +1 -1
- metadata +3 -4
- data/db/spree_br/stores.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ff635d59f7ac5c6ce7d606826c16f731472bd16b573271bc34db25f4726188d
|
4
|
+
data.tar.gz: a53560bf8a3c24cf4432bd3863b92997c2aa134478dca344be6175b969174b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d4b71d58628edc0a031ca0c155687fd4e4f31c3d51e09118335564646ac0dcd6101f0846cdd7b0ea2871a9d5215e1f8ef06f6fb80a46f659312489bccfd7adf
|
7
|
+
data.tar.gz: 3aaba786cdcd0baf078249e450af83c9f5c262f8abef519a2d15e1fe532b0dd0ee380c059690b257139b91b5aac45fc64591071c857940537fba7075c20996d8
|
data/db/seeds.rb
CHANGED
data/db/spree_br/payment.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
4
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
5
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
6
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
7
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
8
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
9
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
10
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
11
|
-
Spree::ReturnReason.find_or_create_by(name: "
|
3
|
+
Spree::ReturnReason.find_or_create_by(name: "Melhor preço disponível")
|
4
|
+
Spree::ReturnReason.find_or_create_by(name: "Atraso na entrega")
|
5
|
+
Spree::ReturnReason.find_or_create_by(name: "Faltando partes/peças")
|
6
|
+
Spree::ReturnReason.find_or_create_by(name: "Danificado/Com defeito")
|
7
|
+
Spree::ReturnReason.find_or_create_by(name: "Diferente do que foi comprado")
|
8
|
+
Spree::ReturnReason.find_or_create_by(name: "Diferente da descrição")
|
9
|
+
Spree::ReturnReason.find_or_create_by(name: "Não há mais interesse")
|
10
|
+
Spree::ReturnReason.find_or_create_by(name: "Compra acidental")
|
11
|
+
Spree::ReturnReason.find_or_create_by(name: "Compra sem autorização")
|
data/db/spree_br/shipping.rb
CHANGED
@@ -1,17 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
category = Spree::ShippingCategory.find_or_create_by(name: "
|
3
|
+
category = Spree::ShippingCategory.find_or_create_by(name: "Padrão")
|
4
4
|
todo_brasil = Spree::Zone.find_or_create_by!(name: "todo_brasil", description: "Todo Brasil")
|
5
5
|
todo_brasil.zone_members.find_or_create_by!(zoneable: Spree::Country.find_by!(iso: "BR"))
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
if Rails.env.development?
|
8
|
+
Spree::ShippingMethod.create!(
|
9
|
+
name: "Coruja",
|
10
|
+
available_to_all: true,
|
11
|
+
code: "CRJ",
|
12
|
+
shipping_categories: [category],
|
13
|
+
calculator: Spree::Calculator::Shipping::FlatRate.create!(
|
14
|
+
preferred_amount: 20.0,
|
15
|
+
preferred_currency: "BRL"
|
16
|
+
),
|
17
|
+
zones: [todo_brasil],
|
18
|
+
stores: [Spree::Store.default]
|
19
|
+
)
|
20
|
+
end
|
data/db/spree_br/store_credit.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_brazilian_adaptations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ulysses-bull
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -170,7 +170,6 @@ files:
|
|
170
170
|
- db/spree_br/states.rb
|
171
171
|
- db/spree_br/stock_locations.rb
|
172
172
|
- db/spree_br/store_credit.rb
|
173
|
-
- db/spree_br/stores.rb
|
174
173
|
- lib/generators/solidus_brazilian_adaptations/install/install_generator.rb
|
175
174
|
- lib/generators/solidus_brazilian_adaptations/install/templates/config/locales/pt-BR.yml
|
176
175
|
- lib/generators/solidus_brazilian_adaptations/install/templates/initializer.rb
|
@@ -205,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
204
|
- !ruby/object:Gem::Version
|
206
205
|
version: '0'
|
207
206
|
requirements: []
|
208
|
-
rubygems_version: 3.5.
|
207
|
+
rubygems_version: 3.5.11
|
209
208
|
signing_key:
|
210
209
|
specification_version: 4
|
211
210
|
summary: ''
|
data/db/spree_br/stores.rb
DELETED