cfgstore 2.2.8 → 2.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app-config.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0656565178e6cc686e83f6b32790c0a85fcd4e3c85cc4228989c792532a1e3b1'
|
4
|
+
data.tar.gz: 3deec51ba51ee1cd0614316fe4e2c71a421cc7107e350e7b2264c59f0a2af2da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aebf4bbda4f0348c1326d10ee2bd224714e24cb3a3e8b5282ba61a3ef9e9ab1feee884cd925baa0b731c72f468be300fa594b18b1b10a87f59760b7a736e816
|
7
|
+
data.tar.gz: 1d91938ec32411345f6b434bf7d906ba243ebe7c5a9413287f61281826263ae1355c9f7da8d1b3f3d27cefc430d81c724237fd303f0066bb2ba3a1dcf6f39c94
|
data/lib/app-config.rb
CHANGED
@@ -18,7 +18,7 @@ module App
|
|
18
18
|
module_function
|
19
19
|
def init( approot: nil, configdir: 'config', filename: 'cfg', env: ( ENV['APP_ENV'] || 'development' ) )
|
20
20
|
raise NoMethodError.new('Config already defined.') if defined?( ::Cfg )
|
21
|
-
root = Pathname( approot ||
|
21
|
+
root = Pathname( approot || __dir__ ).expand_path.to_s.freeze
|
22
22
|
env = env.to_sym.freeze
|
23
23
|
config = {}
|
24
24
|
# Все настройки приложения + роуты
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfgstore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- deemytch
|
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
|
-
rubygems_version: 3.1.
|
55
|
+
rubygems_version: 3.1.4
|
56
56
|
signing_key:
|
57
57
|
specification_version: 4
|
58
58
|
summary: Loads and serves configs.
|