solidus_brazilian_adaptations 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7353d6d7cee81a985a34663ecfb79ff0a01fbde6b4884550a88a41ecfb711140
4
- data.tar.gz: '0491996acd7fee9b15074131f119533cf3242a6a86a82e5b4ab857d91c8d186d'
3
+ metadata.gz: dfbe3b042995053e81774fc74885a6541a9f63608bb202d67e9f92118c8769dc
4
+ data.tar.gz: 159458f2decde1a17469b4c764beb7e372824e41f104cf3d3933f4b569a7fea4
5
5
  SHA512:
6
- metadata.gz: c60c9eff83264754a111bfe33fb8162b1edefd1915579d3e681550040a9859b990dc0f64df1bbfdeb74a2f7f27597db224a72caef14dd3b42ce7e1a7169e7c64
7
- data.tar.gz: 13c0840ec456c0381643815d36e203dae200ec62bb4bc3cdf4dc821565157da07f0500bfa233bfc7df004614717bcc8ea79b9f616a50ceb5eb1ad9983e5591ae
6
+ metadata.gz: c5c70013e306e0e3eaa9ff625b156ce5c8758d5e9e9d8dcdf7c175fc8fc6eeb5774752169f6e1c10a8b046cccf6d0d9bc5eca01d43116ee5f186812296d4bbb0
7
+ data.tar.gz: d465cf1082f6374ee47e233630c17be06a907578fc3558c86f2e45886e525b093054931f5b6af9555c3148329e8a5da2395d0d17894c0c9eace1deb04c510943
data/README.md CHANGED
@@ -22,23 +22,47 @@ bin/rails generate solidus_brazilian_adaptations:install
22
22
  ## Usage
23
23
 
24
24
  ### Tradução e moeda padrão
25
- Editar `config/initializers/spree.rb` adicionando as seguintes configurações
26
- ```ruby
27
- config.currency = "BRL"
28
- # Preenche automaticamente o campo de pais que vamos remover do formulário de endereço:
29
- config.default_country_iso = "BR"
30
- ```
31
- Incluir no `config/application.rb`
25
+ Editar `config/initializers/spree.rb` adicionando as seguintes configurações:
26
+
27
+ Mudar moeda e país padrão:
32
28
  ```ruby
33
- config.i18n.available_locales = ['pt-BR']
34
- config.i18n.default_locale = 'pt-BR'
29
+ Spree.config do |config|
30
+ # ...
31
+
32
+ # Define BRL como moeda padrão
33
+ config.currency = "BRL"
34
+ # Preenche automaticamente o campo de pais que vamos remover do formulário de endereço:
35
+ config.default_country_iso = "BR"
36
+
37
+ # ...
38
+ end
35
39
  ```
36
- E para interface admin, no initializer do spree
40
+ Mudar idioma da interface do admin:
37
41
  ```ruby
38
42
  Spree::Backend::Config.configure do |config|
43
+ # ...
44
+
39
45
  config.locale = 'pt-BR'
46
+
47
+ # ...
40
48
  end
41
49
  ```
50
+ Incluir no `config/application.rb` para definir os locales disponiveis:
51
+ ```ruby
52
+ module SuaLoja
53
+ class Application < Rails::Application
54
+ # ...
55
+
56
+ config.i18n.available_locales = ['pt-BR']
57
+ config.i18n.default_locale = 'pt-BR'
58
+
59
+ # ...
60
+ end
61
+ end
62
+ ```
63
+
64
+ ### Seeds
65
+ Substituir `Spree::Core::Engine.load_seed` por `SolidusBrazilianAdaptations::Engine.load_seed` em `db/seeds.rb` para utilizar o seeds da gem.
42
66
 
43
67
  ### Configurações
44
68
  A partir do initializer da gem é possivel configurar se será permitido efetuar compras utilizando CNPJ. Por padrão é essa opção é `true`.
@@ -9,6 +9,8 @@ pt-BR:
9
9
  one: Taxa Flexível
10
10
  other: Taxa Flexível
11
11
  spree:
12
+ inventory_states:
13
+ backordered: sem estoque
12
14
  address: Endereço
13
15
  shipment_details: "Entrega via %{shipping_method}"
14
16
  please_enter_reasonable_quantity: Insira uma quantidade razoável
@@ -18,6 +20,10 @@ pt-BR:
18
20
  discount_rules: Regras da Promoção
19
21
  adjustment_type: Tipo de Ajuste
20
22
  character_limit: Limite de 255 caracteres
23
+ shipment_states:
24
+ backorder: Sem estoque
25
+ payment_states:
26
+ checkout: checkout
21
27
  admin:
22
28
  promotion_status:
23
29
  active: Ativo
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBrazilianAdaptations
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
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.1
4
+ version: 1.1.2
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: 2023-11-08 00:00:00.000000000 Z
11
+ date: 2023-12-08 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: []
@@ -187,7 +187,7 @@ metadata:
187
187
  homepage_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations#readme
188
188
  source_code_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations
189
189
  changelog_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations/blob/master/CHANGELOG.md
190
- post_install_message:
190
+ post_install_message:
191
191
  rdoc_options: []
192
192
  require_paths:
193
193
  - lib
@@ -205,8 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.4.19
209
- signing_key:
208
+ rubygems_version: 3.4.20
209
+ signing_key:
210
210
  specification_version: 4
211
211
  summary: ''
212
212
  test_files: []