sb-config 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dc6657315d301f7debb157655cb01ae9bca71c0dd1a727ed9f5dddeef480c28
4
- data.tar.gz: 170d9b431ca873f892c867602adf473c2186587a5220f707da718b3226680975
3
+ metadata.gz: d876d71d3dc85ee154e4f9eb2bec7a6dfc6db1c9baa23001fc69991beeaca753
4
+ data.tar.gz: 102b5c5d17837aa2a850136cba14094bdad4e15c2d24692c0e08a3c654297aba
5
5
  SHA512:
6
- metadata.gz: a62c856428581c0b4299abe61357a799372f33d56a96731e884cc57944bcefdceeb79b8b0c71da46e30d0d25e91613473002d90b3a8328748e9bcf6dffc0c1e2
7
- data.tar.gz: eb3fb361e4cf897d9694608fd46c2dbd4d190a529ff6d47808eda4a822e2de017bdda02088bd49ee3e00016d298f84331d36e259a89932da13917c97dc8d5087
6
+ metadata.gz: 4c154fbb8c56dff17aa6a082773954f27f5ad398353164249e95f3dcd44fa502f1fe71d9f5cf8da565edec47cf03b5e207ba6d04ac775a6f23c0f9f647141e64
7
+ data.tar.gz: cc5242e263af5a67dac76643ed9ba868cd2603af0cae486edf20900ecda6f025937d19ce21bf1258d2464f6b43dbefa90eddceed884e983e72fdb6dec788863d
@@ -20,8 +20,9 @@ module Sb
20
20
  wd = Dir.pwd
21
21
 
22
22
  f1 = File.join wd, 'config/config.json'
23
- f2 = "~/.sb/config/config.json"
24
- f3 = ENV['SB_CONFIG_PATH'] || ''
23
+ f2 = File.expand_path "~/.sb/config/config.json"
24
+ f3 = ENV['SB_CONFIG_PATH']
25
+ f3 = f3 ? File.expand_path(f3) : ''
25
26
  files = [f1, f2, f3]
26
27
  files.each do |f|
27
28
  if File.exists?(f)
@@ -1,5 +1,5 @@
1
1
  module Sb
2
2
  module Config
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sb-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - iodevel