solidus_brazilian_adaptations 1.2.0 → 1.3.1

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: 9ff635d59f7ac5c6ce7d606826c16f731472bd16b573271bc34db25f4726188d
4
- data.tar.gz: a53560bf8a3c24cf4432bd3863b92997c2aa134478dca344be6175b969174b92
3
+ metadata.gz: e244b39352bd31737c6f98cad4212fa8d9838526f14cdc38de03acc9a1326f64
4
+ data.tar.gz: c651d55f254cbf448453c3a472f1441141cb3bfb1cabf91a37cc156f184264c9
5
5
  SHA512:
6
- metadata.gz: 2d4b71d58628edc0a031ca0c155687fd4e4f31c3d51e09118335564646ac0dcd6101f0846cdd7b0ea2871a9d5215e1f8ef06f6fb80a46f659312489bccfd7adf
7
- data.tar.gz: 3aaba786cdcd0baf078249e450af83c9f5c262f8abef519a2d15e1fe532b0dd0ee380c059690b257139b91b5aac45fc64591071c857940537fba7075c20996d8
6
+ metadata.gz: 50231ab6079e79ecbb348e440fc832a41b739f0509f0918325c9dfdc3ddbfb06b5f9782ae05d3e4f02cdcfc0986e364dd099e2c060efde3bf3036fb4da4a52c2
7
+ data.tar.gz: e388d3b97635ba967c960c8bf7eea91ddaf8ecd0f248cdcb4984de760a98916fbac309a65c264050640e02ba5b03ed0e8ccc08e855998ba81b0f1755d0f1ba38
@@ -0,0 +1,6 @@
1
+ class ChangeTypeMinAndMaxDeliveryTime < ActiveRecord::Migration[7.1]
2
+ def change
3
+ change_column :spree_shipping_rates, :min_delivery_time, :datetime
4
+ change_column :spree_shipping_rates, :max_delivery_time, :datetime
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ class AddExpiresInAndEstimateProseToRates < ActiveRecord::Migration[7.1]
2
+ def change
3
+ add_column :spree_shipping_rates, :estimate_prose, :text
4
+ add_column :spree_shipping_rates, :expires_in, :datetime
5
+ end
6
+ end
@@ -1,4 +1,4 @@
1
- if Rails.env.development?
1
+ if Rails.env.development? || Rails.env.test?
2
2
  Spree::PaymentMethod::Check.create!(
3
3
  name: "TecPay",
4
4
  available_to_users: true,
@@ -4,7 +4,7 @@ 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
- if Rails.env.development?
7
+ if Rails.env.development? || Rails.env.test?
8
8
  Spree::ShippingMethod.create!(
9
9
  name: "Coruja",
10
10
  available_to_all: true,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBrazilianAdaptations
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.1"
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.2.0
4
+ version: 1.3.1
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-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-16 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