configer 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/example/sample.rb +17 -0
- data/lib/configer.rb +1 -5
- data/lib/configer/data.rb +5 -3
- metadata +3 -3
- data/Gemfile.lock +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e72459d74ed683e0d0529b0c53522e9fbc51f77
|
4
|
+
data.tar.gz: 36aa9b4fc7e64b85f23596d0646dd60ca30e5afb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab0982f807eb9f37915d1ca10f18e97b40174eaa20a10b66de4abf8baea51a3888c4e4eb16e751012cef2181a0a3e08d67d75fdc5ccd67c009422b9c36517ce
|
7
|
+
data.tar.gz: ae1060fa007af42b1fd08adf4c5ddb2acc039f0b7b7ed5debe37befaa788dddb619cf641a912aae9a1067ad95f255711dce1e60c9e940f3ac958789484f9ecc3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.5
|
data/example/sample.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
require 'hashie'
|
3
|
+
|
4
|
+
%W[ data ].each do |name_tag|
|
5
|
+
require File.expand_path File.join File.dirname(__FILE__),'..','lib','configer',name_tag
|
6
|
+
end
|
7
|
+
|
8
|
+
var = Configer.new(
|
9
|
+
{
|
10
|
+
capacity: {
|
11
|
+
max: 9000
|
12
|
+
}
|
13
|
+
}
|
14
|
+
)
|
15
|
+
|
16
|
+
puts var
|
17
|
+
# puts var.public_methods
|
data/lib/configer.rb
CHANGED
data/lib/configer/data.rb
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
|
2
2
|
module Configer
|
3
3
|
|
4
|
-
|
4
|
+
class Object < ::Hashie::Mash
|
5
|
+
end
|
6
|
+
|
5
7
|
module Data
|
6
8
|
def self.config_hash
|
7
|
-
@@config ||=
|
9
|
+
@@config ||= Object.new
|
8
10
|
end
|
9
11
|
end
|
10
12
|
|
11
13
|
class << self
|
12
14
|
|
13
15
|
def new *args
|
14
|
-
self::
|
16
|
+
self::Object.new(*args)
|
15
17
|
end
|
16
18
|
|
17
19
|
alias :init :new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -62,11 +62,11 @@ extra_rdoc_files: []
|
|
62
62
|
files:
|
63
63
|
- ".gitignore"
|
64
64
|
- Gemfile
|
65
|
-
- Gemfile.lock
|
66
65
|
- README.md
|
67
66
|
- Rakefile
|
68
67
|
- VERSION
|
69
68
|
- configer.gemspec
|
69
|
+
- example/sample.rb
|
70
70
|
- lib/configer.rb
|
71
71
|
- lib/configer/data.rb
|
72
72
|
- lib/configer/ext.rb
|