tinyconfig 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWNjYTc2NjdhZGYzMzJkODIwY2Y3YzYyNWMwZmMyZmU2YTU3MWYyNw==
4
+ NTY1NjAzNzYxN2M1OTM4MmM0ZWFjYWU5YzQyNzZiNThjNDg3MmQxNA==
5
5
  data.tar.gz: !binary |-
6
- ZjAzNWQzYjcxNTkwNjIyODljOWU1MTBiZmRjMTEzZTNiNzUyM2U3Yw==
7
- !binary "U0hBNTEy":
6
+ MGYwYjA1NmJlM2YxYmUwNjU4YjVlZjZhMjRlODU5NzIwMWY0ZDgyZg==
7
+ SHA512:
8
8
  metadata.gz: !binary |-
9
- NGI1N2ZiZjgxZTk4OTRkOWM4NjQzODJiMjhhZDM3ZTM4ZTQzYmRjZGMzNzIz
10
- NThiYzAyN2I1NDg1NjY4NTY4ZTcwOGJjNTRjNTczMjBmMDU2NGJjOWM3ODIx
11
- ZTc3MDA3MGEyZmY1MTY1ZWIyNDdjMDAwMjM4MjlmOTFkZjQ3OWQ=
9
+ MGI0NGM3MGNiNDk2OTE1NGE5M2MxM2Y1M2Y0OWE1ZDA4OTYwODBiYzFmZDhk
10
+ OTBkMzZlYTNjNWU0NDc5MDJjM2NlNzBlZmI4ZTVjMDQ3Njg2MzkzYTg4MGM2
11
+ OWI0MzhlNzUxNDFhNWI4YjJkN2JkMzc2ZmFjZDU5YTIxMDQ2ZDY=
12
12
  data.tar.gz: !binary |-
13
- OTI3OWMzYmRmYjA4MjExOWE0Nzc1MTVjNTljZTk5OTlmM2UxYTc2N2Q0NGY3
14
- MWUyZGQ2NGUzNzc1NzRhNWVlNTVjMTlkZjYzM2YzODhkNTkyMDUwMDhmN2Nm
15
- MzQ4MDZkMGZlNGM4NDQ5NTMxMDRlY2M4OTczYTQxMWU4ODI5MjA=
13
+ Y2ZjZDU3YmI1MGE4MTlkMjM5ODJhYzI2N2Q5ZTgzMGE0N2EzN2E5ZTgxNmJj
14
+ NTQwM2JkOWJmYTBlZjc3ZGIzNGE3YjY1MjIxMjIwMjY2OWNlMmEzY2YyMThl
15
+ MmFkYWU3YWQ4MWUyZTJlMTE1NzBkNzhiZDczZDRmZDMwYTY1MWY=
@@ -1,6 +1,18 @@
1
- # Changes
1
+ Changes
2
+ =======
2
3
 
3
- ## 0.0.1
4
+ 0.1.1
5
+ -----
6
+
7
+ * `TinyConfig#config` accepts a string
8
+
9
+ 0.1.0
10
+ -----
11
+
12
+ * Loading folders
13
+
14
+ 0.0.1
15
+ -----
4
16
 
5
17
  * Initial release
6
18
  * Created on Tuesday, 2013-07-23
@@ -46,8 +46,8 @@ class TinyConfig < BasicObject
46
46
  @_values = {}
47
47
  end
48
48
 
49
- def configure(&block)
50
- self.instance_eval(&block)
49
+ def configure(*args, &block)
50
+ self.instance_eval(*args, &block)
51
51
  end
52
52
 
53
53
  def load(glob)
@@ -1,3 +1,3 @@
1
1
  class TinyConfig < BasicObject
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -26,6 +26,11 @@ describe TinyConfig do
26
26
 
27
27
  expect { cfg.opt == 23 }
28
28
  end
29
+
30
+ it "also accepts a string" do
31
+ cfg.configure "opt 23"
32
+ expect { cfg.opt == 23 }
33
+ end
29
34
  end
30
35
 
31
36
  describe "#load" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinyconfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Pasternacki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-28 00:00:00.000000000 Z
11
+ date: 2014-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.0.5
167
+ rubygems_version: 2.1.11
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Library for defining Ruby-based configuration files