app_config 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/Rakefile +1 -1
- data/lib/app_config.rb +1 -1
- data/lib/app_config/storage/base.rb +1 -1
- data/lib/app_config/storage/yaml.rb +0 -4
- data/spec/app_config_spec.rb +10 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
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 = ['
|
22
|
+
t.files = ['lib/**/*.rb']
|
23
23
|
t.options = [
|
24
24
|
'--output-dir', 'doc/api',
|
25
25
|
'--markup', 'markdown'
|
data/lib/app_config.rb
CHANGED
data/spec/app_config_spec.rb
CHANGED
@@ -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 ==
|
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.
|
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-
|
12
|
+
date: 2012-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bson_ext
|