ppl 1.21.0 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ppl/application/configuration.rb +8 -5
- data/ppl.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79637d676d43f3ea665175757a75c223a905ca14
|
4
|
+
data.tar.gz: 0d15db490e218c10fadce8645bdf1742e4b13fed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b7a614e6263f4a84369c40739f798dccb6450734fe21499f6a61d39b6ff2f98c81628e0feb2c5ddb71660d4624d535bc13c62123c7d1c59d16cc8d7e2a021a7
|
7
|
+
data.tar.gz: 31f74366a975ee52ca1210644df881da618df5a2d0bdd577df63cc65b0b18038bf5a27ea2462474090ba08ca6a2953e00d3f9228ade37d6a30cba96b7b7cff2d
|
@@ -56,14 +56,17 @@ class Ppl::Application::Configuration
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def user_configuration
|
59
|
-
|
60
|
-
|
59
|
+
unless @user_config.nil?
|
60
|
+
return @user_config
|
61
|
+
end
|
62
|
+
filename = File.expand_path(USER_CONFIG)
|
63
|
+
@user_config = {}
|
61
64
|
if File.exists?(filename)
|
62
|
-
|
65
|
+
@user_config = IniFile::load(filename).to_h
|
63
66
|
elsif File.exists?(xdg_path)
|
64
|
-
|
67
|
+
@user_config = IniFile::load(xdg_path).to_h
|
65
68
|
end
|
66
|
-
return
|
69
|
+
return @user_config
|
67
70
|
end
|
68
71
|
|
69
72
|
def repository_configuration
|
data/ppl.gemspec
CHANGED