br_railties 0.4.3 → 0.4.7

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: 2017be09e01ef2b3bb00e68c07f6945f831f850c17c8c73490881f203ccb9488
4
- data.tar.gz: a722daedd5253ff3fa1df8df092677b343d918736eb25e555ba2680f2321e949
3
+ metadata.gz: 52a3005b661fb28b2f02f0687822e986a8706eae8959dd29a4d886bd51588fdd
4
+ data.tar.gz: cee425a2735ee4bb18d14580f8640e64a40cbf245509776d9e0764021af9ea1a
5
5
  SHA512:
6
- metadata.gz: 912e69d99334e5a1ba36c5dec6c9ec5fd8d8d6704d66c09612b955dad334353ae3da72f02bb2fd0b161be0b452f9d0354a343a23bda15d0e9706b1462d689c81
7
- data.tar.gz: 229b7b77e8ddca7c2c680c47fbc9d8217617087f13b3e905d9900ff2ff5018170d753e5ce2de12eb782b31cd497a9b08f96d9da87441de987ce536505974e9e5
6
+ metadata.gz: '08f084497087321d5bb9ee0782352f1e0d6cd5d537825fdfffe4f6234cbb7d39617253ae016391c61bd757d66b4d07385749bdabf2e53ed91ee33b139dbd7ef6'
7
+ data.tar.gz: 143728edecc409a7d85207e16f760dfc01b98379a84c3b523853808d55d6fabee7ca6afbb5c092984617e3460a50091a02f8c3fffb313ff12bd79dd971bcde5f
@@ -1 +1 @@
1
- //= require active_scaffold
1
+ //= require eac_active_scaffold
@@ -1 +1 @@
1
- @import 'active_scaffold';
1
+ @import 'eac_active_scaffold';
data/config/routes.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  BrRailties::Engine.routes.draw do
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 }
4
+ resources(:federal_units, concerns: active_scaffold)
5
+ resources(:municipalities, concerns: active_scaffold) { record_select_routes }
7
6
  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,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'eac_active_scaffold'
4
+
3
5
  module BrRailties
4
6
  class Engine < ::Rails::Engine
5
7
  isolate_namespace BrRailties
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrRailties
4
- VERSION = '0.4.3'
4
+ VERSION = '0.4.7'
5
5
  end
data/lib/br_railties.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'recordselect'
4
- require 'active_scaffold'
5
4
 
6
5
  require 'br_railties/engine'
7
6
  require 'br_railties/ibge/import/federal_units'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_railties
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.7
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-10-03 00:00:00.000000000 Z
11
+ date: 2021-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: active_scaffold
14
+ name: eac_active_scaffold
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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.