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 +4 -4
- data/config/routes.rb +3 -5
- data/db/migrate/20190218210506_create_br_railties_federal_units.rb +3 -1
- data/db/migrate/20190221200607_create_br_railties_municipalities.rb +3 -1
- data/db/migrate/20190226015936_add_ibge_code_to_br_railties_federal_units.rb +3 -1
- data/db/migrate/20190227152340_add_ibge_code_to_br_railties_municipalities.rb +3 -1
- data/lib/br_railties/version.rb +1 -1
- metadata +23 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2333444684874096dabab1c7d96591b4d097fa8cd070f7b5ef36edcd6d220366
|
4
|
+
data.tar.gz: 2a4888235a0af776b62a544364f7e1f85b2ec6b01a49a800007aba847472e6da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
5
|
-
resources(:
|
6
|
-
|
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 <
|
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 <
|
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 <
|
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 <
|
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
|
data/lib/br_railties/version.rb
CHANGED
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.
|
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:
|
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.
|
121
|
+
rubygems_version: 3.1.6
|
102
122
|
signing_key:
|
103
123
|
specification_version: 4
|
104
124
|
summary: Brazilian resources for Rails.
|