configura 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/configura.rb +3 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/configura.rb
CHANGED
@@ -17,6 +17,8 @@ class Configura
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
attr_reader :file
|
21
|
+
|
20
22
|
def initialize()
|
21
23
|
@file = "#{ENV['HOME']}/.configura"
|
22
24
|
ensure_file_exists
|
@@ -24,7 +26,7 @@ class Configura
|
|
24
26
|
load
|
25
27
|
end
|
26
28
|
|
27
|
-
def ensure_file_exists
|
29
|
+
def ensure_file_exists
|
28
30
|
unless File.exists? file
|
29
31
|
@config = {}
|
30
32
|
save
|