app_config 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_config (1.0.0)
4
+ app_config (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ task :doc => [ 'doc:clean', 'doc:api' ]
19
19
  namespace :doc do
20
20
  require 'yard'
21
21
  YARD::Rake::YardocTask.new(:api) do |t|
22
- t.files = ['README.rdoc', 'lib/**/*.rb']
22
+ t.files = ['lib/**/*.rb']
23
23
  t.options = [
24
24
  '--output-dir', 'doc/api',
25
25
  '--markup', 'markdown'
@@ -1,7 +1,7 @@
1
1
  require 'core_ext/hashish'
2
2
 
3
3
  module AppConfig
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
 
6
6
  autoload :Error, 'app_config/error'
7
7
  autoload :Storage, 'app_config/storage'
@@ -7,7 +7,7 @@ module AppConfig
7
7
  end
8
8
 
9
9
  def to_hash
10
- @data.to_hash
10
+ Hashish.new(@data.to_hash)
11
11
  end
12
12
 
13
13
  end # Base
@@ -29,10 +29,6 @@ module AppConfig
29
29
  @data.empty?
30
30
  end
31
31
 
32
- def to_hash
33
- @data.to_hash
34
- end
35
-
36
32
  end # YAML
37
33
  end # Storage
38
34
  end # AppConfig
@@ -20,7 +20,7 @@ describe AppConfig do
20
20
 
21
21
  it 'should have to_hash' do
22
22
  config_for_yaml
23
- AppConfig.to_hash.class.should == Hash
23
+ AppConfig.to_hash.class.should == Hashish
24
24
  end
25
25
 
26
26
  it 'should reset @@storage' do
@@ -63,4 +63,13 @@ describe AppConfig do
63
63
  AppConfig[:name][:first].should == 'Dale'
64
64
  end
65
65
 
66
+ it 'returns a Hashish on setup' do
67
+ AppConfig.reset!
68
+ config = AppConfig.setup do |c|
69
+ c[:name] = 'Dale'
70
+ c[:nick] = 'Oshuma'
71
+ end
72
+ config.should be_instance_of(Hashish)
73
+ end
74
+
66
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-08 00:00:00.000000000 Z
12
+ date: 2012-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bson_ext