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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 455b06dcbbe9e28ef665fc1c5ad65f79ed6ced50
4
- data.tar.gz: c90933d1fb6c930b164eecf71dddba0ed1af2002
3
+ metadata.gz: 0a30b31e157076c6655917339477c6823c5d4b1d
4
+ data.tar.gz: d48488ba801176c9bc289571dd6b2fa3b7eb91f4
5
5
  SHA512:
6
- metadata.gz: c7438a59cec3cb93be72eae3040d121ce3a6fe7da6e8cf7988cc390db21ea8d7b12c32b30231b4f48f6ff53db270b2bf3840e2225965e37d2348d1725f6efa3d
7
- data.tar.gz: 89e64605b16cfffedbc833d7265d9a093b6352cfe0fe56f72ec5c83f8b8353b30ec4742afb9e727b65040b5e558a14798111f1b361d528b5dc61abbb58b719de
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file