just_inform 0.0.2 → 0.0.3

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: a9d8c59057f16fd2e11ac1cc01088f690f1e508b
4
- data.tar.gz: e7d8c5d339a28f4cc640f02eecd0ca0a5338f30f
3
+ metadata.gz: 6732a6879d4fa07981dda1279cd5c6ca6ec56865
4
+ data.tar.gz: 03899e01bf0ccfcc3f243782034f87f3bf1f6250
5
5
  SHA512:
6
- metadata.gz: 6a0a174207bb7e1148180622225bcdba1ea821e54a127ef27e64bd3a1122eb00b06705ba2ccfdd4bb9d816815074b1152a68998be5da0e2feb9c4b2b8baaaa70
7
- data.tar.gz: 8e812e6e68700d18d64bbd11ccb44ffe800d46a69249d3e8d27cefccbbe965a9e079ada9d2b63d19ca8c773f62b11bd1fa617efe79d2008b3becb8b1e4f1d2e1
6
+ metadata.gz: 40a7e871fa737fdee87b2cc2b2aa656989f2178660f7ee734a7d8b6fcbfc9647395a4a3e956c5264bdf4f6586ea67c2c3317a3792139b9314d18ea8f8a854bf2
7
+ data.tar.gz: 42daa8e84137d644bf7327120c6ec1552ad69309df7c7fa544c4d5cd2b4a7ab4fc8a37bc045ad008ccd2bea18d91890ee62b130a96e2d4d598d5d37d14a29914
@@ -16,7 +16,11 @@ module JustInform
16
16
  private
17
17
 
18
18
  def self.current_file?
19
- true if File.exists?(File.join 'data', self.current_filename)
19
+ dir = 'data'
20
+ unless File.directory?(dir)
21
+ FileUtils.mkdir_p(dir)
22
+ end
23
+ true if File.exists?(File.join dir, self.current_filename)
20
24
  end
21
25
 
22
26
  def self.current_filename
@@ -1,3 +1,3 @@
1
1
  module JustInform
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just_inform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Grevich