bergamasco 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d366e22815b8d717e90a4939ec552ed49b21f784
4
- data.tar.gz: 3336cc66bfdf33a51d7ba3fdebda5932586446cd
3
+ metadata.gz: 6fbacb25b302f8c6c8e2340e4f41556df70d831e
4
+ data.tar.gz: 7b4bfd91c319082d24479e7d946cca90bca038f5
5
5
  SHA512:
6
- metadata.gz: e538ea066a4542ec91d11a461c3a8b33a621e71b8c499c9eb6eed29e517308c93a0828133b4173ad621e96adbd1256301ef7299722be0f35701353894285a445
7
- data.tar.gz: fe7cabeaa4fb34769ff36d1d70743c777de89cc536ac795bf23e72b6d4e42558fafc16141d414bfb4967a1d62835d1281516b4edc6029f31684dcf353326364f
6
+ metadata.gz: 770d19c32783783fefd5d9813075e0909d59c1b36eef6e18cb4d82dc8a9cab5ea28bc478b6c9457aa3260fc23104e7d6afd920f639e621a888a386ce66b1457f
7
+ data.tar.gz: 0b35e1f4104bbfd50b8cf8524ce9d0f750f5e0a99c2c1fde88fdda139b01673ff2b0cde890e23d00ef205dacdbfb8ed520a374757c86eeaccc69b77d6fd11b50
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bergamasco (0.1.3)
4
+ bergamasco (0.1.4)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  builder (~> 3.2, >= 3.2.2)
7
7
  commonmarker (~> 0.14.0)
@@ -24,17 +24,17 @@ module Bergamasco
24
24
  end
25
25
 
26
26
  def self.read_yaml(filepath)
27
- file = IO.read(filepath)
28
- SafeYAML.load(file)
29
- end
30
-
31
- def self.write_yaml(filepath, content)
32
27
  unless File.exist?(filepath)
33
28
  parentdir = Pathname.new(filepath).parent
34
29
  FileUtils.mkdir_p parentdir
35
30
  FileUtils.touch filepath
36
31
  end
37
32
 
33
+ file = IO.read(filepath)
34
+ SafeYAML.load(file)
35
+ end
36
+
37
+ def self.write_yaml(filepath, content)
38
38
  IO.write(filepath, content.to_yaml)
39
39
  end
40
40
 
@@ -1,3 +1,3 @@
1
1
  module Bergamasco
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bergamasco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner