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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e117c6f42821127c068f7f36c047ba0fc061756377ab1582851b1c05833b1e31
4
- data.tar.gz: dd2a3c5fae949385c47cdd01ae2acafb88894a887dae1fdbf4ed1682d9801646
3
+ metadata.gz: 93703969e08b8a37c766d599d74535ad52acbe988b8ee79f2f907f67475e713c
4
+ data.tar.gz: 34633c300e9b3a884545a0d195f33bdf628d000642f685ea14ed7c9185494ec7
5
5
  SHA512:
6
- metadata.gz: 4f62c2ec35b893ddcee2092137575ea62094b4f6f1427744c0c764734e3f1ad879ae11f3f37b957e81d96e4140cadbe92e1f7dcd866d3fd711e66594d1b13c80
7
- data.tar.gz: 48b5951dbd1a1ce3676e1ff2885f864f06722ce2e7c6255415edaccdd5b0cc72a050b58fd89ffa0fe0dd71d7c2bfa1462296d98fac7f3657fc9e001b197a5419
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
- 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
@@ -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
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddIbgeCodeToBrRailtiesFederalUnits < (
4
+ Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
5
+ )
6
+ def change
7
+ add_column :br_railties_federal_units, :ibge_code, :integer
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddIbgeCodeToBrRailtiesMunicipalities < (
4
+ Rails.version < '5' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
5
+ )
6
+ def change
7
+ add_column :br_railties_municipalities, :ibge_code, :integer
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrRailties
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.5'
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.0
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: 2019-03-20 00:00:00.000000000 Z
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.0.0
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.0.0
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
- rubyforge_project:
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.