sting 0.0.1 → 0.0.2

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: b49679687ec00b7a17c8f767e1eb810e5f9d6cc79408fc249ade2d71d378572c
4
- data.tar.gz: f0b8dfc0fe4fa36a446b0b312955a29e63600fb773a3e3d572ce1d7b81947100
3
+ metadata.gz: 9b65a6d87b0bcbc6b08a54e64881dc3965fcaa59f74c6a1b5a13278338be842b
4
+ data.tar.gz: d6df449a3a2c7dc7d8dd9607d1174b8dc62dd1248ca6cfe21c27d8faad338d3b
5
5
  SHA512:
6
- metadata.gz: 41cdb27ad0f4e5d68a31f6e4461b04c93e736a729ef305df14026720257a51f340ac62bbb562ba1ae4d128a90595c10568875eef653f063f44b8e5a6f24f28c8
7
- data.tar.gz: 5c71f9499ec63e9389b70f5896f3e44cfad3a3e5da01f4f57b5ce3a8fe47256c743229d383221606ef71cab6d7b67e58bf577b4181d999d49181d41d576220d2
6
+ metadata.gz: 7232b49a897bb4831d8de5ca96af63ff3bb302b34aa3ee18251103c21f2d298056ef177cd51f17e4f6e022df70041604567a1ffe9171d102ea715b7cf32f1e0e
7
+ data.tar.gz: 28a54062e6ee9e7b34d8882e6a7c600382e5927ffdd6a50f4b86a730d524fe455ee6c8254c39c8128fe90d5e096ee767a7978e9048b2aa6fdf80f163b812a19f
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Sting - Minimal Settings Library
2
2
  ==================================================
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/sting.svg)](https://badge.fury.io/rb/sting)
5
+ [![Build Status](https://travis-ci.com/DannyBen/sting.svg?branch=master)](https://travis-ci.com/DannyBen/sting)
6
+ [![Maintainability](https://api.codeclimate.com/v1/badges/c8afe395a8f2cf290fec/maintainability)](https://codeclimate.com/github/DannyBen/sting/maintainability)
7
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/c8afe395a8f2cf290fec/test_coverage)](https://codeclimate.com/github/DannyBen/sting/test_coverage)
8
+
4
9
  ---
5
10
 
6
11
  Sting is a minimal, lightweight, multi-YAML settings library.
@@ -6,8 +6,8 @@ class Sting
6
6
  def <<(path)
7
7
  path = "#{path}.yml" unless path =~ /\.ya?ml$/
8
8
  content = File.read path
9
- content = YAML.load(ERB.new(content).result).to_hash
10
- settings.merge! content
9
+ content = YAML.load(ERB.new(content).result)
10
+ settings.merge! content if content
11
11
  end
12
12
 
13
13
  def [](key)
@@ -1,3 +1,3 @@
1
1
  class Sting
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-26 00:00:00.000000000 Z
11
+ date: 2018-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug