br_railties 0.4.0 → 0.4.5
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 +14 -0
- data/db/migrate/20190221200607_create_br_railties_municipalities.rb +17 -0
- data/db/migrate/20190226015936_add_ibge_code_to_br_railties_federal_units.rb +9 -0
- data/db/migrate/20190227152340_add_ibge_code_to_br_railties_municipalities.rb +9 -0
- data/lib/br_railties/version.rb +1 -1
- metadata +23 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93703969e08b8a37c766d599d74535ad52acbe988b8ee79f2f907f67475e713c
|
4
|
+
data.tar.gz: 34633c300e9b3a884545a0d195f33bdf628d000642f685ea14ed7c9185494ec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 195f69d0524e01908719766173c7ff854bd0631ad9e24ab9751c847b8d9ff43831f88b096e078650c32a798b3e80d50bd2487997f04fa2beeb23e076b3c0a381
|
7
|
+
data.tar.gz: 3eb41db699fe22cad5aa349ee1ed5515bb4b9e9bde64313fc4054e20d2189a9bb1286aca290d4dbabb1e3cb95a3aaf4e2478121005bc32ca9482833a9c5a52cc
|
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
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateBrRailtiesFederalUnits < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
6
|
+
def change
|
7
|
+
create_table :br_railties_federal_units do |t|
|
8
|
+
t.string :acronym
|
9
|
+
t.string :name
|
10
|
+
|
11
|
+
t.timestamps null: false
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateBrRailtiesMunicipalities < (
|
4
|
+
Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
|
5
|
+
)
|
6
|
+
def change
|
7
|
+
create_table :br_railties_municipalities do |t|
|
8
|
+
t.string :name
|
9
|
+
t.references :federal_unit, index: true
|
10
|
+
|
11
|
+
t.timestamps null: false
|
12
|
+
end
|
13
|
+
|
14
|
+
add_foreign_key :br_railties_municipalities, :br_railties_federal_units,
|
15
|
+
column: :federal_unit_id
|
16
|
+
end
|
17
|
+
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.5
|
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-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_scaffold
|
@@ -30,20 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.
|
34
|
-
- - "<"
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 5.0.0
|
33
|
+
version: 4.2.11.3
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
38
|
- - ">="
|
42
39
|
- !ruby/object:Gem::Version
|
43
|
-
version: 4.
|
44
|
-
- - "<"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 5.0.0
|
40
|
+
version: 4.2.11.3
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: recordselect
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,6 +52,20 @@ dependencies:
|
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
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.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.2'
|
61
69
|
description:
|
62
70
|
email:
|
63
71
|
executables: []
|
@@ -74,6 +82,10 @@ files:
|
|
74
82
|
- app/models/br_railties/federal_unit.rb
|
75
83
|
- app/models/br_railties/municipality.rb
|
76
84
|
- config/routes.rb
|
85
|
+
- db/migrate/20190218210506_create_br_railties_federal_units.rb
|
86
|
+
- db/migrate/20190221200607_create_br_railties_municipalities.rb
|
87
|
+
- db/migrate/20190226015936_add_ibge_code_to_br_railties_federal_units.rb
|
88
|
+
- db/migrate/20190227152340_add_ibge_code_to_br_railties_municipalities.rb
|
77
89
|
- lib/br_railties.rb
|
78
90
|
- lib/br_railties/engine.rb
|
79
91
|
- lib/br_railties/ibge/import/federal_units.rb
|
@@ -100,8 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
112
|
- !ruby/object:Gem::Version
|
101
113
|
version: '0'
|
102
114
|
requirements: []
|
103
|
-
|
104
|
-
rubygems_version: 2.7.7
|
115
|
+
rubygems_version: 3.0.9
|
105
116
|
signing_key:
|
106
117
|
specification_version: 4
|
107
118
|
summary: Brazilian resources for Rails.
|