solidus_brazilian_adaptations 1.1.9 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0364161cf5d5b92240fb1b688648390e7d51fbb158ffdcb9e049e0404ac86635
4
- data.tar.gz: e639fcbad438a9a4000ccbecd0c6bdd0755890def6b7efa1b5cfb1f4ad9bdbb7
3
+ metadata.gz: 9ff635d59f7ac5c6ce7d606826c16f731472bd16b573271bc34db25f4726188d
4
+ data.tar.gz: a53560bf8a3c24cf4432bd3863b92997c2aa134478dca344be6175b969174b92
5
5
  SHA512:
6
- metadata.gz: d3442c2465cdaabd2518546ded403bac4240a4ad3e10b4ec9dc8cbfe67048c6f4fe38ea43aee0a77b45c90b39ead286a4533acb620d9551f950453ea861c259a
7
- data.tar.gz: 110e569b87f184a449cb4eb78da47f6d6edf739e57583020b970959da6f491dba3f147f306398a50c0526285782a942c27bb4bfbd6e48674d8bb77ead6dad5ad
6
+ metadata.gz: 2d4b71d58628edc0a031ca0c155687fd4e4f31c3d51e09118335564646ac0dcd6101f0846cdd7b0ea2871a9d5215e1f8ef06f6fb80a46f659312489bccfd7adf
7
+ data.tar.gz: 3aaba786cdcd0baf078249e450af83c9f5c262f8abef519a2d15e1fe532b0dd0ee380c059690b257139b91b5aac45fc64591071c857940537fba7075c20996d8
data/db/seeds.rb CHANGED
@@ -2,8 +2,6 @@ require "thor"
2
2
  shell = Thor::Base.shell.new
3
3
 
4
4
  %w[
5
- stores
6
- store_credit
7
5
  countries
8
6
  return_reasons
9
7
  states
@@ -1,4 +1,7 @@
1
- Spree::PaymentMethod::Check.create!(
2
- name: "Boleto",
3
- available_to_users: true
4
- )
1
+ if Rails.env.development?
2
+ Spree::PaymentMethod::Check.create!(
3
+ name: "TecPay",
4
+ available_to_users: true,
5
+ stores: [Spree::Store.default]
6
+ )
7
+ end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- Spree::RefundReason.find_or_create_by!(name: "Return processing", mutable: false)
3
+ Spree::RefundReason.find_or_create_by!(name: "Devolução em processo", mutable: false)
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- Spree::ReturnReason.find_or_create_by(name: "Better price available")
4
- Spree::ReturnReason.find_or_create_by(name: "Missed estimated delivery date")
5
- Spree::ReturnReason.find_or_create_by(name: "Missing parts or accessories")
6
- Spree::ReturnReason.find_or_create_by(name: "Damaged/Defective")
7
- Spree::ReturnReason.find_or_create_by(name: "Different from what was ordered")
8
- Spree::ReturnReason.find_or_create_by(name: "Different from description")
9
- Spree::ReturnReason.find_or_create_by(name: "No longer needed/wanted")
10
- Spree::ReturnReason.find_or_create_by(name: "Accidental order")
11
- Spree::ReturnReason.find_or_create_by(name: "Unauthorized purchase")
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 mais interesse")
10
+ Spree::ReturnReason.find_or_create_by(name: "Compra acidental")
11
+ Spree::ReturnReason.find_or_create_by(name: "Compra sem autorização")
@@ -1,17 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- category = Spree::ShippingCategory.find_or_create_by(name: "Default")
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
- Spree::ShippingMethod.create!(
8
- name: "Coruja",
9
- available_to_all: true,
10
- code: "CRJ",
11
- shipping_categories: [category],
12
- calculator: Spree::Calculator::Shipping::FlatRate.create!(
13
- preferred_amount: 20.0,
14
- preferred_currency: "BRL"
15
- ),
16
- zones: [todo_brasil]
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Spree::StockLocation.create_with(backorderable_default: false)
4
- .find_or_create_by!(name: "default")
4
+ .find_or_create_by!(name: "Padrão")
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Removemos do array do seeds por enquanto
3
4
  Spree::PaymentMethod.create_with(
4
5
  name: "Store Credit",
5
6
  description: "Store credit",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBrazilianAdaptations
4
- VERSION = "1.1.9"
4
+ VERSION = "1.2.0"
5
5
  end
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.1.9
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ulysses-bull
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-17 00:00:00.000000000 Z
11
+ date: 2024-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -128,7 +128,7 @@ dependencies:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: '2.7'
131
- description:
131
+ description:
132
132
  email: contato7bulloleo@gmail.com
133
133
  executables: []
134
134
  extensions: []
@@ -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
@@ -187,7 +186,7 @@ metadata:
187
186
  homepage_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations#readme
188
187
  source_code_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations
189
188
  changelog_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations/blob/master/CHANGELOG.md
190
- post_install_message:
189
+ post_install_message:
191
190
  rdoc_options: []
192
191
  require_paths:
193
192
  - lib
@@ -205,8 +204,8 @@ 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.3
209
- signing_key:
207
+ rubygems_version: 3.5.11
208
+ signing_key:
210
209
  specification_version: 4
211
210
  summary: ''
212
211
  test_files: []
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- unless Spree::Store.where(code: "sample-store").exists?
4
- Spree::Store.create!(
5
- name: "Sample Store",
6
- code: "sample-store",
7
- url: "example.com",
8
- mail_from_address: "store@example.com"
9
- )
10
- end