comff 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/comff/rails.rb +23 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c561e05343a3a5fea9bb725b92ddf00b50933c60f56a897e72cf2ee67ed2b132
|
4
|
+
data.tar.gz: 322796d9e527676cddcffc61d13a2db2520be50b51ef709b5aa6c7279fdeffbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95134c5711ef98fc5495384617cc0ce37b35eaaccf3f493835a8e8e58f74f010ed2ce06ca5c907f1bb6b986c240b20d017aac45f9dd5773e0c46e4abd1256800
|
7
|
+
data.tar.gz: 9fb185c677fc596c961123e000490a95c6b83362f3576e954753e80e902270a19c2fc0c2cda69a6e488c3a8c181ad3d3b076c348352fdb5670ac87535182b447
|
data/lib/comff/rails.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'comff'
|
2
|
+
|
3
|
+
class ComffRailtie < Rails::Railtie
|
4
|
+
def load
|
5
|
+
load_comffig
|
6
|
+
end
|
7
|
+
|
8
|
+
def overload
|
9
|
+
load_comffig
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.load
|
13
|
+
instance.load
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def load_comffig
|
19
|
+
Comff.load_global(File.read(File.join(Rails.root, "config/conf.#{Rails.env}.yml")))
|
20
|
+
end
|
21
|
+
|
22
|
+
config.before_configuration { load }
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André D. Piske
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ''
|
14
14
|
email: andrepiske@gmail.com
|
@@ -17,11 +17,12 @@ extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/comff.rb
|
20
|
+
- lib/comff/rails.rb
|
20
21
|
homepage: https://github.com/andrepiske/comff
|
21
22
|
licenses:
|
22
23
|
- MIT
|
23
24
|
metadata: {}
|
24
|
-
post_install_message:
|
25
|
+
post_install_message:
|
25
26
|
rdoc_options: []
|
26
27
|
require_paths:
|
27
28
|
- lib
|
@@ -36,8 +37,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
37
|
- !ruby/object:Gem::Version
|
37
38
|
version: '0'
|
38
39
|
requirements: []
|
39
|
-
rubygems_version: 3.
|
40
|
-
signing_key:
|
40
|
+
rubygems_version: 3.4.12
|
41
|
+
signing_key:
|
41
42
|
specification_version: 4
|
42
43
|
summary: Configuration loader
|
43
44
|
test_files: []
|