cfgstore 2.2.8 → 2.2.9

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/app-config.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c797f16240a8dc25a6ea0aea48c7c4a40125f1de221d121ef9cb00b4a485ed9c
4
- data.tar.gz: fe0b79cc30fd18cb8db96eb7386e303362b47806e84f295bc9923205f4f5206b
3
+ metadata.gz: '0656565178e6cc686e83f6b32790c0a85fcd4e3c85cc4228989c792532a1e3b1'
4
+ data.tar.gz: 3deec51ba51ee1cd0614316fe4e2c71a421cc7107e350e7b2264c59f0a2af2da
5
5
  SHA512:
6
- metadata.gz: 6099f710167e47a398786bd343b3279a046e3b686a224c182735179844b815ac319a8d6434da6094cb5b6e93b5d3c45f5bc777b79cd96aa286a716c2fd5002da
7
- data.tar.gz: fe98b93f2379c5f180455358bff9f00a0e095379335cb9e208379c9c9b8019c11264f21c611a0fbb09aaa3a6edb17d7e41d1617474b49656a4b1a9e2a8fcc35c
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 || Pathname( __FILE__ ).dirname ).expand_path.to_s
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.8
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.3
55
+ rubygems_version: 3.1.4
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: Loads and serves configs.