canfig 0.0.4 → 0.0.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: ac2beb0c3075dc310f01561ffded475028a3bbb8
4
- data.tar.gz: 235d02c3dd6a3cb91f65b34780d359f13c602d78
3
+ metadata.gz: 87d7a71f3425215cb0226cd0f6eeabc7912dd552
4
+ data.tar.gz: 378a6def629c7ed263384211bf8361fbe28338a6
5
5
  SHA512:
6
- metadata.gz: 373862b787b95c189ecee41b186a3e8ad64cab9cb64d0985f645e029c1a0ed1cf5b7fac8228bccd060d03e7306d330820432bd1fbe140d0922b24f0a8f4a9575
7
- data.tar.gz: 4a65de2f0f811ac061e26079faaa4144a8dd735532d3f7192db926edf2063489619ecf0b8d903b1666bca818dded1774aa84ffa4a11c2612542e7d80ec0ef13b
6
+ metadata.gz: cbf3b023b2f8853dcbd0d5731baa98f9de2995ece01982da2718fe7919724efb7b4de7d350054330cf0749aaa7a5cd3c362f74db340e42c4521ca993800bbe09
7
+ data.tar.gz: bb8e16f4eaee8db347246e7e45e5abcf16a673c1bb1eacab89b76f930a8eeac3d4abee81c638d208ef061e1b2115286bab8608078f5d09919ef949a3da65c14d
@@ -1,3 +1,3 @@
1
1
  module Canfig
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
data/lib/canfig.rb CHANGED
@@ -8,4 +8,11 @@ require 'canfig/class'
8
8
  require 'canfig/instance'
9
9
 
10
10
  module Canfig
11
+ def self.new(*args, &block)
12
+ Canfig::Config.new *args, &block
13
+ end
14
+
15
+ def self.open(*args, &block)
16
+ Canfig::OpenConfig.new *args, &block
17
+ end
11
18
  end
data/spec/canfig_spec.rb CHANGED
@@ -1,4 +1,15 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  RSpec.describe Canfig do
4
+ describe '.new' do
5
+ it 'returns a configuration object' do
6
+ expect(subject.new).to be_an_instance_of(Canfig::Config)
7
+ end
8
+ end
9
+
10
+ describe '.open' do
11
+ it 'returns an open configuration object' do
12
+ expect(subject.open).to be_an_instance_of(Canfig::OpenConfig)
13
+ end
14
+ end
4
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec