comff 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/comff/rails.rb +23 -0
  3. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81febd188a0b78041e46865bd468b8c4171c0cd155b860a0aed6a8c4dbb3bfa2
4
- data.tar.gz: 1e776c415139797c02e09e3ab8495fb67701cf6fd6272b17c955e6ee105d1abe
3
+ metadata.gz: c561e05343a3a5fea9bb725b92ddf00b50933c60f56a897e72cf2ee67ed2b132
4
+ data.tar.gz: 322796d9e527676cddcffc61d13a2db2520be50b51ef709b5aa6c7279fdeffbe
5
5
  SHA512:
6
- metadata.gz: e9fa38c550dbf1b57e792d5cf54b5267aca7e516b1fc8ad9f3c9e1590864f67db1d1c442889606d08564e1648a21fac16679834fa3b4ef17252b545bf8f39b74
7
- data.tar.gz: 62ed95ef28cd91d2376631e9152814e6a9141a589ebe5f207e7f73f005cc1f85e7262e03f35cf27a81a391e71c8f5f15bc0676f89e2ae9dcfc0fd6bbb9b58406
6
+ metadata.gz: 95134c5711ef98fc5495384617cc0ce37b35eaaccf3f493835a8e8e58f74f010ed2ce06ca5c907f1bb6b986c240b20d017aac45f9dd5773e0c46e4abd1256800
7
+ data.tar.gz: 9fb185c677fc596c961123e000490a95c6b83362f3576e954753e80e902270a19c2fc0c2cda69a6e488c3a8c181ad3d3b076c348352fdb5670ac87535182b447
@@ -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.0
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: 2021-07-14 00:00:00.000000000 Z
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.2.23
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: []