app_config 2.5.1 → 2.5.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62d72217da9a3fbbe6260bd257b8313a719d43ef
4
- data.tar.gz: 4757b4141b9a35a2e37635efe89dd2169face9a5
3
+ metadata.gz: a323043cb8697dfa26863f65b97358206535d95e
4
+ data.tar.gz: 6e6f4b410ec63573165f17d9d47a31db16c64d44
5
5
  SHA512:
6
- metadata.gz: 078db2405909074be48797902c859a6f713bc724ab7400a3bdc4277dd999442f136b085ca2fb22d6c7824377be7033914a4c55ba5c6394e59e35ae35f447ceba
7
- data.tar.gz: 80da1bc827d584cb700b0b10b6c361c072306bf42c6c40523a8c07248015ed5373d527980d297d88b432fe66514640f61ac5c7f14519d417a1e1ed146eecb328
6
+ metadata.gz: 1c0fee908ea5d1135fe4c89b077049de152c3a18c91195b250969d1623ef33a748984c7017e2483ef0b7f7a1ed5295e11efdb2e2680f3b7be11fa106c728f683
7
+ data.tar.gz: bec56c30fabcc825578db5ee0453aee560bd37534271a2690ea098a9a53d5ccf0a5917fda69d52c3962e1be4dfd06651b7e02cc7600650d8807580c012d0dc3b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_config (2.5.1)
4
+ app_config (2.5.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -30,7 +30,7 @@ module AppConfig
30
30
  elsif @@options[:sqlite]
31
31
  @@storage = AppConfig::Storage::SQLite.new(@@options.delete(:sqlite))
32
32
  else
33
- @@storage = AppConfig::Storage::Base.new
33
+ @@storage = AppConfig::Storage::Base.new(@@options)
34
34
  end
35
35
 
36
36
  yield @@storage if block_given?
@@ -2,8 +2,8 @@ module AppConfig
2
2
  module Storage
3
3
  class Base
4
4
 
5
- def initialize
6
- @data = Storage::ConfigData.new
5
+ def initialize(options = nil)
6
+ @data = Storage::ConfigData.new(options)
7
7
  end
8
8
 
9
9
  def to_hash
@@ -1,3 +1,3 @@
1
1
  module AppConfig
2
- VERSION = '2.5.1'
2
+ VERSION = '2.5.3'
3
3
  end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe AppConfig::Storage::Base do
4
+
5
+ it 'accepts hash as default data' do
6
+ config_for(default: 'data')
7
+ AppConfig.default.should == 'data'
8
+ end
9
+
10
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-13 00:00:00.000000000 Z
11
+ date: 2014-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson_ext
@@ -178,6 +178,7 @@ files:
178
178
  - lib/app_config/storage/sqlite.rb
179
179
  - lib/app_config/storage/yaml.rb
180
180
  - lib/app_config/version.rb
181
+ - spec/app_config/storage/base_spec.rb
181
182
  - spec/app_config/storage/config_data_spec.rb
182
183
  - spec/app_config/storage/mongo_spec.rb
183
184
  - spec/app_config/storage/mysql_spec.rb