elasticonf 1.1.0 → 1.1.1
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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/elasticonf.gemspec +2 -2
- data/lib/elasticonf/config.rb +1 -1
- data/lib/elasticonf/loader.rb +1 -1
- data/lib/elasticonf/version.rb +2 -2
- data/lib/elasticonf.rb +1 -1
- data/spec/lib/elasticonf/config_spec.rb +1 -1
- data/spec/lib/elasticonf/loader_spec.rb +2 -2
- data/spec/lib/elasticonf_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f233c7e1229bd482ba38097c1ca0392e3e8c953f
|
4
|
+
data.tar.gz: f6df8ca5062bce74621fbfee46a8dde000fd8c62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 910fdb9917f56c7130c45068423cb0ff3c36951a67e10bd345ab75ddbde50742ecb0909f35d6a2c92a6712e985b3d229bd71dc55fb3442636fc2d9f95bc5dd62
|
7
|
+
data.tar.gz: 4bf229c0680d0b3d1c9d7feda2fe695c8c7860b2b31fd1824d71c014ec00a008f5509d201e4a9af9274f9e62cce81c71ae9c4d1ef9afce8df3561fcafc4adfb6
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Elasticonf [](https://travis-ci.org/rezwyi/elasticonf) [](https://gemnasium.com/rezwyi/elasticonf) [](https://coveralls.io/r/rezwyi/elasticonf)
|
2
2
|
==========
|
3
3
|
|
4
4
|
Powerfull and flexible application config solution worked in any ruby program. No clases definition, no dependencies. It just works!
|
@@ -33,7 +33,7 @@ Run this commands in terminal:
|
|
33
33
|
|
34
34
|
## Versioning
|
35
35
|
|
36
|
-
|
36
|
+
Elasticonf uses RubyGems Rational Versioning Policy.
|
37
37
|
|
38
38
|
## Copyright
|
39
39
|
|
data/elasticonf.gemspec
CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.summary = 'Powerfull and flexible application config solution worked in any ruby program'
|
6
6
|
s.description = s.summary
|
7
7
|
|
8
|
-
s.version =
|
8
|
+
s.version = Elasticonf::VERSION
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
|
11
11
|
s.authors = ['Sergey Rezvanov']
|
@@ -22,6 +22,6 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_dependency 'hashie', '~> 3.1'
|
23
23
|
|
24
24
|
s.add_development_dependency 'rake', '~> 10.3'
|
25
|
-
s.add_development_dependency 'rspec', '~> 2.14'
|
25
|
+
s.add_development_dependency 'rspec', '~> 2.14.0'
|
26
26
|
s.add_development_dependency 'yard', '~> 0.8'
|
27
27
|
end
|
data/lib/elasticonf/config.rb
CHANGED
data/lib/elasticonf/loader.rb
CHANGED
data/lib/elasticonf/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = '1.1.
|
1
|
+
module Elasticonf
|
2
|
+
VERSION = '1.1.1'
|
3
3
|
end
|
data/lib/elasticonf.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe Elasticonf::Loader do
|
4
4
|
subject do
|
5
|
-
file =
|
5
|
+
file = Elasticonf.root.join('spec', 'fixtures', 'config.yml')
|
6
6
|
described_class[YAML.load_file(file)]
|
7
7
|
end
|
8
8
|
|
data/spec/lib/elasticonf_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe Elasticonf do
|
4
4
|
it { should be_a(Module) }
|
5
5
|
|
6
6
|
describe '#root' do
|
@@ -11,7 +11,7 @@ describe ElastiConf do
|
|
11
11
|
|
12
12
|
describe '#config' do
|
13
13
|
it 'should instantiate ElastiConf::Config' do
|
14
|
-
expect(subject.config.class).to eql(
|
14
|
+
expect(subject.config.class).to eql(Elasticonf::Config)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -187,7 +187,7 @@ describe ElastiConf do
|
|
187
187
|
end
|
188
188
|
|
189
189
|
describe '#configure_and_load!' do
|
190
|
-
before {
|
190
|
+
before { Elasticonf.stub(:load!).and_return(true) }
|
191
191
|
|
192
192
|
let(:config_block) do
|
193
193
|
Proc.new do |config|
|
data/spec/spec_helper.rb
CHANGED
@@ -6,12 +6,10 @@ Bundler.require :default
|
|
6
6
|
require 'coveralls'
|
7
7
|
Coveralls.wear!
|
8
8
|
|
9
|
-
require 'elasticonf'
|
10
|
-
|
11
9
|
RSpec.configure do |config|
|
12
10
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
13
11
|
config.run_all_when_everything_filtered = true
|
14
12
|
|
15
13
|
# After each test spec rollback configuration to its default state
|
16
|
-
config.after(:each) {
|
14
|
+
config.after(:each) { Elasticonf.config.reset_config! }
|
17
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticonf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Rezvanov
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.14.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.14.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|