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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe5b0deed07158181640c30e898fe8aa6f22f8dd
4
- data.tar.gz: 8a4c1b0a2789b586a84d2e874efab60f5713fa7b
3
+ metadata.gz: 46e1375208040c83cd27fad335f41bbec51b6562
4
+ data.tar.gz: 1a6cc224d6ce24d4208ed2f744033d0307246b46
5
5
  SHA512:
6
- metadata.gz: f5cf97572f0f45ecdc00925a0e55fb0795e9c012eb2a243ea9d7c63db191f3a40b6e700774371cfd458fee16cd2b62ab62d91cf981e30583c25dee843d1b5589
7
- data.tar.gz: 39065a4beb3879c44476a748c0a67a279b122c40a35516fe5d18d21121cea70fbe39dd99151207d7f853afcca1a3b6bed54f640e0fe2f79b01a2dfde1a20f13a
6
+ metadata.gz: 376a1c6e74c0956c3ebd328cc63d61abc15d65b5d78ed5fa91f5d2c9b8c3a7defa9984056e51cc961bae3102fcdf20aadcddd081e3e6393383a7e3c821854aa4
7
+ data.tar.gz: 74fcec5e821e0171aaae07a0589e7c9f006933c21df25b37af7677888ab760c83d06450421a38431c5430817ebea21102471857737dd85b88b74c3796476112c
@@ -10,7 +10,7 @@
10
10
  # Public: The FReCon API module.
11
11
  module FReCon
12
12
  # Public: A String representing the current version of FReCon.
13
- VERSION = "1.0.0"
13
+ VERSION = "1.1.0"
14
14
 
15
15
  @environment_variable = :development
16
16
 
@@ -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(Dir.home, ".config", "frecon.yml"))
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.0.0
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-01 00:00:00.000000000 Z
16
+ date: 2015-09-19 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: sinatra