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 +4 -4
- data/README.md +5 -0
- data/lib/sting.rb +2 -2
- data/lib/sting/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b65a6d87b0bcbc6b08a54e64881dc3965fcaa59f74c6a1b5a13278338be842b
|
4
|
+
data.tar.gz: d6df449a3a2c7dc7d8dd9607d1174b8dc62dd1248ca6cfe21c27d8faad338d3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/sting.rb
CHANGED
@@ -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)
|
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)
|
data/lib/sting/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|