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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a75d205b5d7bff8459d124b21754b10058e5274c
4
- data.tar.gz: 57878273b804e457c93acc0188e9456879eddb15
3
+ metadata.gz: 1e72459d74ed683e0d0529b0c53522e9fbc51f77
4
+ data.tar.gz: 36aa9b4fc7e64b85f23596d0646dd60ca30e5afb
5
5
  SHA512:
6
- metadata.gz: c780e40e5fdbea0718858b50e9c6a5306855e7c7849861c682ac40d3e6c61dd86e8c85b435d2e5815c1a1a18088cadd3a3d42251f5495e069eb2b05565f350e4
7
- data.tar.gz: 736ba13cfd5dc62d83121cd7a4c39de234b839a7580d1610a88f5a1c0208668078be1c664373b96b6d6571b90f02ba8c519df950e696146a443ed6cd71a23d82
6
+ metadata.gz: 8ab0982f807eb9f37915d1ca10f18e97b40174eaa20a10b66de4abf8baea51a3888c4e4eb16e751012cef2181a0a3e08d67d75fdc5ccd67c009422b9c36517ce
7
+ data.tar.gz: ae1060fa007af42b1fd08adf4c5ddb2acc039f0b7b7ed5debe37befaa788dddb619cf641a912aae9a1067ad95f255711dce1e60c9e940f3ac958789484f9ecc3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.4
1
+ 1.1.5
@@ -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
@@ -1,9 +1,5 @@
1
-
2
1
  require 'hashie'
3
-
4
2
  require 'configer/data'
5
3
  require 'configer/json'
6
4
  require 'configer/yaml'
7
- require 'configer/ext'
8
-
9
- # require File.join(File.dirname(__FILE__),"configer","data")
5
+ require 'configer/ext'
@@ -1,17 +1,19 @@
1
1
 
2
2
  module Configer
3
3
 
4
- ConfigObject= Class.new(::Hashie::Mash)
4
+ class Object < ::Hashie::Mash
5
+ end
6
+
5
7
  module Data
6
8
  def self.config_hash
7
- @@config ||= ConfigObject.new
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::ConfigObject.new(*args)
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
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-05-07 00:00:00.000000000 Z
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
@@ -1,19 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- configer (1.1.4)
5
- hashie
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- hashie (2.1.1)
11
- rake (10.3.1)
12
-
13
- PLATFORMS
14
- ruby
15
-
16
- DEPENDENCIES
17
- bundler
18
- configer!
19
- rake