eras 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 5ea5a1820713a7a44d95272e55d11a8e1f9f323ca49d95511a2f537f30228e25
4
- data.tar.gz: 07cb49d373ac72ba369f79ab88bc478a024df6719bf59ec0ab0da6f842e28349
3
+ metadata.gz: d4e3eeb2e7c365fad93adc1a5cf7f7e739acd3f23d245f3913c31e3a25b030e5
4
+ data.tar.gz: 36ab6447cad0d67d78bd49e69c883028e9e3ce02aab726738602aaaaa2b1de1c
5
5
  SHA512:
6
- metadata.gz: d4e84b57628364b9c69225a95898c61ba64e40ce12b9d184a84d5f88ea01afb3eb37e174224af80f2410235be1a2ef455db214d7e94d28a86040cffea9cd4f03
7
- data.tar.gz: 1be6a0fc7ae3b0809e023d47071617d466033accd33bf371693f356ad13f4c68197ac75e7ea068e241a6f70ee1931e21cdb7c5ef3564aa261ee773e28c18d472
6
+ metadata.gz: fc8b6b6df2d98965c6d9ceb70a23ba3ec32a1ddd72f3700781cf0360d9fa083942d343c1425cb8850f6d9ac84c298d3a401bfd1667c52ba90066558c34abc4a6
7
+ data.tar.gz: b803b60dbfb3c78b13abfb7566bc80cf4d6417043ae1a8eeb31add513c30fce197a208118defa4f68ab0d3093927a9f27e615827ee0963cadfefffdfb02730b8
@@ -20,6 +20,9 @@ module Eras
20
20
  []
21
21
  end
22
22
 
23
+ # Why is this necessary? I thought File.open would create the file if it didn't exist.
24
+ File.create(@path) unless File.exist?(@path)
25
+
23
26
  File.open(@path, "w") do |f|
24
27
  errors = existing_errors
25
28
  errors.unshift(data)
data/lib/eras/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eras
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bobby McDonald
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-08 00:00:00.000000000 Z
11
+ date: 2022-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails