br_railties 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +5 -0
- data/README.rdoc +3 -0
- data/app/assets/javascripts/br_railties.js +1 -0
- data/app/assets/stylesheets/br_railties.scss +1 -0
- data/app/controllers/br_railties/federal_units_controller.rb +4 -0
- data/app/models/br_railties/federal_unit.rb +8 -0
- data/config/routes.rb +7 -0
- data/lib/br_railties/engine.rb +15 -0
- data/lib/br_railties/version.rb +5 -0
- data/lib/br_railties.rb +9 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5b583901687c0ec84be9f7c61822c1e1f14c0ef8e3100b9e84fd763524d52fbc
|
4
|
+
data.tar.gz: b90b9c760edd0570e43a02c7172c9d1951f1e1dbca928dfd2f7642af9df6a6a1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bdd2871248733bc819bac56e5c96663717810e76065c9b0ed4de005f1d5e68edb41727a919d1596e4fe12bea1e8c783ab6c48b24942743206f04129759bb9c8d
|
7
|
+
data.tar.gz: c1a65cc3084a24b31327e8aa2626e204736d6b750ceff1633f97ed53ddfe0e704a73981299131718c5c3cbbf637d22facb8f18baa333de559100f0d597ceb26f
|
data/Gemfile
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
//= require active_scaffold
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'active_scaffold';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class BrRailties::FederalUnit < ActiveRecord::Base
|
2
|
+
validates :acronym, presence: true, uniqueness: { :case_sensitive => false }, length: { in: 2..2 }
|
3
|
+
validates :name, presence: true, uniqueness: { :case_sensitive => false }
|
4
|
+
|
5
|
+
def acronym=(value)
|
6
|
+
self[:acronym] = value.to_s.upcase
|
7
|
+
end
|
8
|
+
end
|
data/config/routes.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BrRailties
|
4
|
+
class Engine < ::Rails::Engine
|
5
|
+
isolate_namespace BrRailties
|
6
|
+
|
7
|
+
initializer :append_migrations do |app|
|
8
|
+
unless app.root.to_s.match root.to_s
|
9
|
+
config.paths['db/migrate'].expanded.each do |expanded_path|
|
10
|
+
app.config.paths['db/migrate'] << expanded_path
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/br_railties.rb
ADDED
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: br_railties
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Esquilo Azul Company
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: active_scaffold
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: railties
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- Gemfile
|
48
|
+
- README.rdoc
|
49
|
+
- app/assets/javascripts/br_railties.js
|
50
|
+
- app/assets/stylesheets/br_railties.scss
|
51
|
+
- app/controllers/br_railties/federal_units_controller.rb
|
52
|
+
- app/models/br_railties/federal_unit.rb
|
53
|
+
- config/routes.rb
|
54
|
+
- lib/br_railties.rb
|
55
|
+
- lib/br_railties/engine.rb
|
56
|
+
- lib/br_railties/version.rb
|
57
|
+
homepage: https://github.com/esquilo-azul/br_railties
|
58
|
+
licenses:
|
59
|
+
- MIT
|
60
|
+
metadata:
|
61
|
+
source_code_uri: https://github.com/esquilo-azul/br_railties
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 2.7.7
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: Brazilian resources for Rails.
|
82
|
+
test_files: []
|