br_railties 0.4.2 → 0.4.6

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: 5be5cd3559547e02e00ab068bf3083c0ac8cb6f950bcb63a8ada2b9d5492e11f
4
- data.tar.gz: 5ea9fa40f1fe8c98bf355609a661c2976dbbf1cb157f6662d082efe91b364c41
3
+ metadata.gz: 2333444684874096dabab1c7d96591b4d097fa8cd070f7b5ef36edcd6d220366
4
+ data.tar.gz: 2a4888235a0af776b62a544364f7e1f85b2ec6b01a49a800007aba847472e6da
5
5
  SHA512:
6
- metadata.gz: f2bb6236338094b192b307598b8ef0cba15cfb59ed05470f86372cd3d69a23970fab28ba5e59c6eeaec8d451a0ec2c9367e2da8b327a31c464d2ae9b69dde3ca
7
- data.tar.gz: adef2f1e076f5c2ffbe73f718dbf26ac13a9b9b1f5d3bdae668b888aa9ff5981d98c9329ec3133932ba34d74362f2c415707631218cd9d3bf95530a18dd2c5fd
6
+ metadata.gz: 7ec887e352efed74e8b10fcb010c7bad6ab30acd9645a2b25e360d83efb2539956e74f0c1cc5c3dcc7258d1f5dc57c0e95bbc9ce9b352724b9767f4c8bdc69a5
7
+ data.tar.gz: 7342228396d34a69dc0e3bcf102be94ecb348a9846e6a509b7f95b8930b7beb280270350afdb338de76dd614e5ef780d2e3fdb458f1e1264d227000b2b4d8988
data/config/routes.rb CHANGED
@@ -1,9 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  BrRailties::Engine.routes.draw do
4
- resources(:federal_units) { as_routes }
5
- resources(:municipalities) do
6
- as_routes
7
- record_select_routes
8
- end
4
+ concern :active_scaffold, ActiveScaffold::Routing::Basic.new(association: true)
5
+ resources(:federal_units, concerns: :active_scaffold)
6
+ resources(:municipalities, concerns: :active_scaffold) { record_select_routes }
9
7
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class CreateBrRailtiesFederalUnits < ActiveRecord::Migration
3
+ class CreateBrRailtiesFederalUnits < (
4
+ Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  create_table :br_railties_federal_units do |t|
6
8
  t.string :acronym
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class CreateBrRailtiesMunicipalities < ActiveRecord::Migration
3
+ class CreateBrRailtiesMunicipalities < (
4
+ Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  create_table :br_railties_municipalities do |t|
6
8
  t.string :name
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddIbgeCodeToBrRailtiesFederalUnits < ActiveRecord::Migration
3
+ class AddIbgeCodeToBrRailtiesFederalUnits < (
4
+ Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  add_column :br_railties_federal_units, :ibge_code, :integer
6
8
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddIbgeCodeToBrRailtiesMunicipalities < ActiveRecord::Migration
3
+ class AddIbgeCodeToBrRailtiesMunicipalities < (
4
+ Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  add_column :br_railties_municipalities, :ibge_code, :integer
6
8
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrRailties
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_railties
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-13 00:00:00.000000000 Z
11
+ date: 2021-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_scaffold
@@ -52,6 +52,26 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: eac_ruby_gem_support
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.3'
62
+ - - "~>"
63
+ - !ruby/object:Gem::Version
64
+ version: 0.3.1
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '0.3'
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.3.1
55
75
  description:
56
76
  email:
57
77
  executables: []
@@ -98,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
118
  - !ruby/object:Gem::Version
99
119
  version: '0'
100
120
  requirements: []
101
- rubygems_version: 3.0.8
121
+ rubygems_version: 3.1.6
102
122
  signing_key:
103
123
  specification_version: 4
104
124
  summary: Brazilian resources for Rails.