simple-config 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/simple-config.rb +11 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a30b31e157076c6655917339477c6823c5d4b1d
|
4
|
+
data.tar.gz: d48488ba801176c9bc289571dd6b2fa3b7eb91f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ec92cf76e7d1a5b23d0369767466eddcb3dd4769951278e58dcb39f53559cea56d0834a5f7c01bbece9a2a38c01dcb09157cac4ac74caa71b5502c812f002bc
|
7
|
+
data.tar.gz: 3cecc09558c5ecbe53070a3298a34530d59c00d4f314f3204c78de65a6afde67a6baaf0f6fe76b854fde492979fa1764e0dd23f1b1b45e181e5f5ed15998f204
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/simple-config.rb
CHANGED
@@ -6,6 +6,16 @@ require 'line-tree'
|
|
6
6
|
require 'rxfhelper'
|
7
7
|
|
8
8
|
|
9
|
+
#!/usr/bin/env ruby
|
10
|
+
|
11
|
+
# file: simple-config.rb
|
12
|
+
|
13
|
+
require 'line-tree'
|
14
|
+
require 'requestor'
|
15
|
+
|
16
|
+
eval Requestor.read('http://rorbuilder.info/r/ruby'){|x| x.require 'rxfhelper'}
|
17
|
+
|
18
|
+
|
9
19
|
class SimpleConfig
|
10
20
|
|
11
21
|
attr_reader :to_h, :to_s
|
@@ -42,7 +52,7 @@ class SimpleConfig
|
|
42
52
|
|
43
53
|
else
|
44
54
|
|
45
|
-
value, name = s.split(':',2).reverse
|
55
|
+
value, name = s.split(': ',2).reverse
|
46
56
|
name ||= 'description'
|
47
57
|
|
48
58
|
[name.to_sym, value.to_s.strip]
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|