frecon 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frecon/base/variables.rb +1 -1
- data/lib/frecon/configuration_file.rb +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46e1375208040c83cd27fad335f41bbec51b6562
|
4
|
+
data.tar.gz: 1a6cc224d6ce24d4208ed2f744033d0307246b46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 376a1c6e74c0956c3ebd328cc63d61abc15d65b5d78ed5fa91f5d2c9b8c3a7defa9984056e51cc961bae3102fcdf20aadcddd081e3e6393383a7e3c821854aa4
|
7
|
+
data.tar.gz: 74fcec5e821e0171aaae07a0589e7c9f006933c21df25b37af7677888ab760c83d06450421a38431c5430817ebea21102471857737dd85b88b74c3796476112c
|
@@ -55,7 +55,14 @@ module FReCon
|
|
55
55
|
# Public: Create a new ConfigurationFile corresponding to the default
|
56
56
|
# user configuration location.
|
57
57
|
def self.user
|
58
|
-
self.new(File.join(
|
58
|
+
self.new(File.join(config_directory, "frecon.yml"))
|
59
|
+
end
|
60
|
+
|
61
|
+
protected
|
62
|
+
|
63
|
+
# Public: Returns the User's config home directory.
|
64
|
+
def self.config_directory
|
65
|
+
ENV['XDG_CONFIG_HOME'] || File.join(Dir.home, '.config')
|
59
66
|
end
|
60
67
|
end
|
61
68
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frecon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Craig
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-09-
|
16
|
+
date: 2015-09-19 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: sinatra
|