eventify 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eventify/configuration.rb +2 -0
- data/lib/eventify/version.rb +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: c63d0d9cbc7f993843600d90d40223b637c713dd
|
4
|
+
data.tar.gz: cf89587660f384abf6408320118b05d8181d8452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e89bf490dede5ffccb6ae5f14a10763364322d7ca1bfcbc1f3314f2a18044ac9d5215d0103d72d98a4d9473517e1ee2ffc7479ff4828af947d7d3b91bfc42a
|
7
|
+
data.tar.gz: c041c725f0fa5524d69002854a867fe6415e855366e683b1c8c9d8ddab34b9fe49dcff42f44fc9e181a1c553b1e27bb075ca9174248060afa2e0f0547d6b7410
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "yaml"
|
2
|
+
require "fileutils"
|
2
3
|
|
3
4
|
class Eventify::Configuration
|
4
5
|
PATH = File.expand_path(File.join(ENV["HOME"], "/.eventify/config.yaml"))
|
@@ -8,6 +9,7 @@ class Eventify::Configuration
|
|
8
9
|
end
|
9
10
|
|
10
11
|
def save
|
12
|
+
FileUtils.mkdir_p File.dirname(PATH)
|
11
13
|
File.open(PATH, "w") { |f| f.write YAML.dump(@configuration) }
|
12
14
|
end
|
13
15
|
|
data/lib/eventify/version.rb
CHANGED