solidus_brazilian_adaptations 1.1.10 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20241010184807_change_type_min_and_max_delivery_time.rb +6 -0
- data/db/migrate/20241010185247_add_expires_in_and_estimate_prose_to_rates.rb +6 -0
- 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 +5 -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: 453e94718e7a94f84e40cb4829161fb5530085802007838a2d39a3cdb2e78c47
|
4
|
+
data.tar.gz: e03636724d9ebfa1d22a55d9da7fc7c50b7258638d134b764553c80b57dcc12b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c2d5eb85fbb3ed3ac7ff71484f9e7fc576adc6ceaff3850385041ed9753b1de7ac3764ba2bd1a2b09f194ab3c93f3b8291cca2535259d246c97cb1f57a118b9
|
7
|
+
data.tar.gz: 585ad2edd189988609c217cc03da62e3239e8816ab56bb14846157aeec65d994973dff9d263b8c81546d643d2955144a1e2983d5ee8f697efe9b45d14bd929a6
|
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.3.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-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -160,6 +160,8 @@ files:
|
|
160
160
|
- db/migrate/20230911133000_add_tax_id_to_spree_orders.rb
|
161
161
|
- db/migrate/20230911133157_add_number_district_to_addresses.rb
|
162
162
|
- db/migrate/20231107142354_add_delivery_time_to_spree_shipping_rate.rb
|
163
|
+
- db/migrate/20241010184807_change_type_min_and_max_delivery_time.rb
|
164
|
+
- db/migrate/20241010185247_add_expires_in_and_estimate_prose_to_rates.rb
|
163
165
|
- db/seeds.rb
|
164
166
|
- db/spree_br/countries.rb
|
165
167
|
- db/spree_br/payment.rb
|
@@ -170,7 +172,6 @@ files:
|
|
170
172
|
- db/spree_br/states.rb
|
171
173
|
- db/spree_br/stock_locations.rb
|
172
174
|
- db/spree_br/store_credit.rb
|
173
|
-
- db/spree_br/stores.rb
|
174
175
|
- lib/generators/solidus_brazilian_adaptations/install/install_generator.rb
|
175
176
|
- lib/generators/solidus_brazilian_adaptations/install/templates/config/locales/pt-BR.yml
|
176
177
|
- lib/generators/solidus_brazilian_adaptations/install/templates/initializer.rb
|
@@ -205,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
206
|
- !ruby/object:Gem::Version
|
206
207
|
version: '0'
|
207
208
|
requirements: []
|
208
|
-
rubygems_version: 3.5.
|
209
|
+
rubygems_version: 3.5.11
|
209
210
|
signing_key:
|
210
211
|
specification_version: 4
|
211
212
|
summary: ''
|
data/db/spree_br/stores.rb
DELETED