solidus_brazilian_adaptations 1.0.7 → 1.0.9

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: a76efff4ad9d953e3b825eb176e237621450b260742c756eefa2d4f0af0619dd
4
- data.tar.gz: a6b045f77cc4be284a6070fb9b65d02571f1511190b74b63bc9b0be64d62cb74
3
+ metadata.gz: 024c984fd50d29668e5e063b62d1544e49d4118e99c5621105ff6390cee10e0b
4
+ data.tar.gz: 0b0930fc5cc096f53ba6c857496fad01f1476f518be0b3dec65443a67761cf5f
5
5
  SHA512:
6
- metadata.gz: 959e7bb2737a3f8a90d93f5c30c0ca35195ec03876e3c2574f3a90998e651d006b9224eac771cb4cb4823203e871fa4f202209be81a0371662cbb940b8e0c783
7
- data.tar.gz: 61fdc3b8035422d5379d84117aa6f372053e83d069108c4fcb75f36df1fd92c5ccba43c510967fff0f59b2077fca2e0626470fb3f1c79df83956e142047779eb
6
+ metadata.gz: 50a8188573bc2ebe7a85f1ad02284a01836b278f91276891146038791047a0a3ae550cd6de4e281db7a7df8e2a73976b0f233883c9a86cf024d8d374485227f5
7
+ data.tar.gz: 97d1a1504f00201d7399e26c420a6d2b30f3de7f3c631a84f5c3fa4647aa4da32a140b972e26fdd48e0d3fd636be4243c4eac2fa5aa4d0fbe768c5cd7bcfd76b
data/README.md CHANGED
@@ -21,6 +21,25 @@ bin/rails generate solidus_brazilian_adaptations:install
21
21
 
22
22
  ## Usage
23
23
 
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`
32
+ ```ruby
33
+ config.i18n.available_locales = ['pt-BR']
34
+ config.i18n.default_locale = 'pt-BR'
35
+ ```
36
+ E para interface admin, no initializer do spree
37
+ ```ruby
38
+ Spree::Backend::Config.configure do |config|
39
+ config.locale = 'pt-BR'
40
+ end
41
+ ```
42
+
24
43
  ### Configurações
25
44
  A partir do initializer da gem é possivel configurar se será permitido efetuar compras utilizando CNPJ. Por padrão é essa opção é `true`.
26
45
 
@@ -0,0 +1,59 @@
1
+
2
+ pt-BR:
3
+ activerecord:
4
+ models:
5
+ spree/calculator/tiered_flat_rate:
6
+ one: 'Taxa Fixa por Níveis'
7
+ other: 'Taxa Fixa por Níveis'
8
+ spree/calculator/flexi_rate:
9
+ one: 'Taxa Flexível'
10
+ other: 'Taxa Flexível'
11
+ spree:
12
+ shipment_details: Entrega via %{shipping_method}
13
+ please_enter_reasonable_quantity: "Insira uma quantidade razoável"
14
+ coupon_code_applied: O Código do cupom foi acrescentado ao seu pedido
15
+ name_contains: "Nome"
16
+ minimize_menu: "Minimizar Menu"
17
+ discount_rules: "Regras da Promoção"
18
+ adjustment_type: "Tipo de Ajuste"
19
+ character_limit: "Limite de 255 caracteres"
20
+ admin:
21
+ promotion_status:
22
+ active: "Ativo"
23
+ variants:
24
+ form:
25
+ options: "Opções"
26
+ properties: "Propriedades"
27
+ prices:
28
+ master_variant_table:
29
+ master_variant: "Variante Principal"
30
+ table:
31
+ variant_pricing: "Preço das Variantes"
32
+ order:
33
+ events:
34
+ approve: "Aprovar"
35
+ cancel: "Cancelar"
36
+ users:
37
+ edit:
38
+ api_access: "Acesso API"
39
+ key: "Chave API"
40
+ no_key: "Sem chaves API"
41
+ clear_key: "Excluir chave API"
42
+ generate_key: "Gerar chave API"
43
+ regenerate_key: "Atualizar chave API"
44
+ adjustment_labels:
45
+ line_item: "%{promotion} (%{promotion_name})"
46
+ order: "%{promotion} (%{promotion_name})"
47
+ tax_rates:
48
+ flat_fee: "%{name}"
49
+ sales_tax: "%{name}"
50
+ sales_tax_with_rate: "%{name} %{amount}"
51
+ vat: "%{name} (Incluído no preço)"
52
+ vat_with_rate: "%{name} %{amount} (Incluído no preço)"
53
+ hints:
54
+ spree/promotion:
55
+ promo_code_will_be_disabled: "Selecionando esta opção, os códigos promocionais serão desabilitados para esta promoção, pois todas as suas regras/ações serão aplicadas automaticamente a todos os pedidos."
56
+ devise:
57
+ sessions:
58
+ spree_user:
59
+ signed_out: "Logout com sucesso"
@@ -1,5 +1,5 @@
1
1
  class AddTaxIdToSpreeOrders < ActiveRecord::Migration[7.0]
2
2
  def change
3
- add_column :spree_orders, :tax_id, :string, default: "", if_not_exists: true
3
+ add_column :spree_orders, :tax_id, :string, if_not_exists: true
4
4
  end
5
5
  end
@@ -0,0 +1,6 @@
1
+ class AddDeliveryTimeToSpreeShippingRate < ActiveRecord::Migration[7.0]
2
+ def change
3
+ add_column :spree_shipping_rates, :min_delivery_time, :integer, if_not_exists: true
4
+ add_column :spree_shipping_rates, :max_delivery_time, :integer, if_not_exists: true
5
+ end
6
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBrazilianAdaptations
4
- VERSION = "1.0.7"
4
+ VERSION = "1.0.9"
5
5
  end
@@ -31,6 +31,9 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "solidus_support", "~> 0.5"
32
32
  spec.add_dependency "cpf_cnpj"
33
33
  spec.add_dependency "codigo_postal"
34
+ spec.add_dependency "solidus_i18n"
35
+ spec.add_dependency "rails-i18n"
36
+ spec.add_dependency "kaminari-i18n"
34
37
 
35
38
  spec.add_development_dependency "solidus_dev_support", "~> 2.7"
36
39
  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.0.7
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ulysses-bull
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-25 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -72,6 +72,48 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: solidus_i18n
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rails-i18n
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: kaminari-i18n
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
75
117
  - !ruby/object:Gem::Dependency
76
118
  name: solidus_dev_support
77
119
  requirement: !ruby/object:Gem::Requirement
@@ -114,9 +156,11 @@ files:
114
156
  - bin/sandbox
115
157
  - bin/setup
116
158
  - config/locales/en.yml
159
+ - config/locales/pt-BR.yml
117
160
  - config/routes.rb
118
161
  - db/migrate/20230911133000_add_tax_id_to_spree_orders.rb
119
162
  - db/migrate/20230911133157_add_number_district_to_addresses.rb
163
+ - db/migrate/20231107142354_add_delivery_time_to_spree_shipping_rate.rb
120
164
  - db/seeds.rb
121
165
  - db/spree_br/countries.rb
122
166
  - db/spree_br/payment.rb