easy_config 0.0.3 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -9
- data/CHANGELOG.md +20 -0
- data/Gemfile +4 -1
- data/Gemfile.lock +19 -5
- data/README.md +25 -9
- data/Rakefile +2 -4
- data/easy_config.gemspec +3 -1
- data/lib/easy_config/config_file.rb +24 -7
- data/lib/easy_config/path_resolver.rb +15 -12
- data/lib/easy_config/setup.rb +47 -0
- data/lib/easy_config/version.rb +1 -1
- data/lib/easy_config.rb +8 -48
- data/spec/easy_config/config_file_spec.rb +12 -2
- data/spec/easy_config/path_resolver_spec.rb +17 -26
- data/spec/easy_config_spec.rb +5 -1
- data/spec/fixtures/redis.yml +1 -0
- data/spec/spec_helper.rb +5 -0
- metadata +83 -93
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 37a54051f2c3e78f2e00d2dcdbc8450b8724c14e
|
4
|
+
data.tar.gz: 334f91afdccd24f82a66895aa2876bf911f83b25
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5a50a18e368ca181999c1a52c3305485f86f1db287f2aa55394b32c3c4070f6c5f5794ef549e2e303af6bd07ca24d4370d385dbc8fd70009d0439a6b1ef0df79
|
7
|
+
data.tar.gz: 884fc56924af3dd73d9afc3c5a3a2c0a7eab17befc0c5a5cf71f395b13234e246dd3811d8f05e7b3ae952633cd07129869b4761716416b5cd77a99cb38621e9f
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.3
|
data/.travis.yml
CHANGED
@@ -1,13 +1,9 @@
|
|
1
1
|
language: ruby
|
2
|
-
script: rspec
|
3
2
|
rvm:
|
4
|
-
- 1.
|
5
|
-
-
|
3
|
+
- 2.1.3
|
4
|
+
- 2.0.0
|
6
5
|
- 1.9.3
|
7
|
-
- jruby-18mode
|
8
|
-
- jruby-19mode
|
9
|
-
- rbx-18mode
|
10
|
-
- rbx-19mode
|
11
|
-
- ruby-head
|
12
|
-
- jruby-head
|
13
6
|
- ree
|
7
|
+
addons:
|
8
|
+
code_climate:
|
9
|
+
repo_token: 0b115a677691f1e1382af37e5047e640fdfcefae321d410478ba9ec401f131bb
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
## 0.9.0 - 2014-10-23
|
2
|
+
|
3
|
+
* Support to ERB inside yaml config file (#2)
|
4
|
+
* Allow multiple config paths (#3)
|
5
|
+
* Add license info (MIT)
|
6
|
+
|
7
|
+
## 0.0.3 - 2012-08-16
|
8
|
+
|
9
|
+
* Allow to set custom environment
|
10
|
+
|
11
|
+
## 0.0.2 - 2012-08-15
|
12
|
+
|
13
|
+
* Reload methods on reset!
|
14
|
+
* Raises error when configuration isn't available
|
15
|
+
* Add support to custom config path
|
16
|
+
* Raises error when config path is unknown
|
17
|
+
|
18
|
+
## 0.0.1 - 2012-03-17
|
19
|
+
|
20
|
+
* First version
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,15 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
easy_config (0.0
|
5
|
-
|
4
|
+
easy_config (0.9.0)
|
5
|
+
erubis
|
6
|
+
methodize (~> 0.2)
|
6
7
|
|
7
8
|
GEM
|
8
|
-
remote:
|
9
|
+
remote: https://rubygems.org/
|
9
10
|
specs:
|
11
|
+
codeclimate-test-reporter (0.4.1)
|
12
|
+
simplecov (>= 0.7.1, < 1.0.0)
|
10
13
|
diff-lcs (1.1.3)
|
11
|
-
|
12
|
-
|
14
|
+
docile (1.1.5)
|
15
|
+
erubis (2.7.0)
|
16
|
+
json (1.8.1)
|
17
|
+
methodize (0.3.1)
|
18
|
+
multi_json (1.10.1)
|
19
|
+
rake (10.3.2)
|
13
20
|
rspec (2.9.0)
|
14
21
|
rspec-core (~> 2.9.0)
|
15
22
|
rspec-expectations (~> 2.9.0)
|
@@ -18,12 +25,19 @@ GEM
|
|
18
25
|
rspec-expectations (2.9.0)
|
19
26
|
diff-lcs (~> 1.1.3)
|
20
27
|
rspec-mocks (2.9.0)
|
28
|
+
simplecov (0.9.1)
|
29
|
+
docile (~> 1.1.0)
|
30
|
+
multi_json (~> 1.0)
|
31
|
+
simplecov-html (~> 0.8.0)
|
32
|
+
simplecov-html (0.8.0)
|
21
33
|
|
22
34
|
PLATFORMS
|
23
35
|
ruby
|
24
36
|
|
25
37
|
DEPENDENCIES
|
26
38
|
bundler (>= 1.0.0)
|
39
|
+
codeclimate-test-reporter
|
27
40
|
easy_config!
|
41
|
+
json
|
28
42
|
rake
|
29
43
|
rspec (~> 2.9.0)
|
data/README.md
CHANGED
@@ -1,17 +1,24 @@
|
|
1
1
|
# Easy config
|
2
2
|
Rails and Rack applications configuration made easy.
|
3
3
|
|
4
|
-
[![Build Status](https://secure.travis-ci.org/felipecvo/easy_config.png?branch=master)](http://travis-ci.org/felipecvo/
|
4
|
+
[![Build Status](https://secure.travis-ci.org/felipecvo/easy_config.png?branch=master)](http://travis-ci.org/felipecvo/easy\_config)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/felipecvo/easy_config/badges/gpa.svg)](https://codeclimate.com/github/felipecvo/easy_config)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/felipecvo/easy_config/badges/coverage.svg)](https://codeclimate.com/github/felipecvo/easy_config)
|
7
|
+
[![Dependency Status](https://gemnasium.com/felipecvo/easy_config.svg)](https://gemnasium.com/felipecvo/easy_config)
|
5
8
|
|
6
|
-
|
9
|
+
## Installation
|
7
10
|
|
8
|
-
|
11
|
+
[![Gem Version](https://badge.fury.io/rb/easy_config.svg)](http://badge.fury.io/rb/easy_config)
|
12
|
+
|
13
|
+
`gem install easy_config`
|
9
14
|
|
10
15
|
or in your Gemfile
|
11
16
|
|
12
|
-
`gem "
|
17
|
+
`gem "easy_config"`
|
18
|
+
|
19
|
+
See [Changelog](CHANGELOG.md).
|
13
20
|
|
14
|
-
|
21
|
+
## How it works
|
15
22
|
|
16
23
|
EasyConfig allows you to access your config files easily. All you have to do is
|
17
24
|
to put your files in config dir and be a valid YAML file (with .yml as extension).
|
@@ -19,16 +26,25 @@ to put your files in config dir and be a valid YAML file (with .yml as extension
|
|
19
26
|
If you desire you can split your configurations by environment. Easy config treats it
|
20
27
|
automatically.
|
21
28
|
|
22
|
-
|
29
|
+
### Example
|
23
30
|
|
24
31
|
We can access database.yml file as:
|
25
32
|
|
26
33
|
`EasyConfig.database.adapter`
|
27
34
|
|
28
|
-
And if you have your our custom config file named
|
35
|
+
And if you have your our custom config file named my\_customs.yml:
|
29
36
|
|
30
37
|
`EasyConfig.my_customs.custom_var`
|
31
38
|
|
32
|
-
|
39
|
+
## Supported rubies
|
40
|
+
|
41
|
+
* 2.1
|
42
|
+
* 2.0
|
43
|
+
* 1.9.3
|
44
|
+
* ree
|
45
|
+
|
46
|
+
## License
|
47
|
+
|
48
|
+
[The MIT License](http://opensource.org/licenses/MIT)
|
33
49
|
|
34
|
-
|
50
|
+
Copyright (c) 2012-2014 Felipe Oliveira <[http://felipecvo.github.io/](http://felipecvo.github.io/)>
|
data/Rakefile
CHANGED
data/easy_config.gemspec
CHANGED
@@ -3,6 +3,7 @@ require File.expand_path("../lib/easy_config/version", __FILE__)
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'easy_config'
|
5
5
|
s.version = EasyConfig::VERSION
|
6
|
+
s.licenses = ['MIT']
|
6
7
|
s.date = '2012-03-17'
|
7
8
|
s.summary = "Easy config, Rails and Rack application's configuration made easy."
|
8
9
|
s.description = s.summary
|
@@ -16,7 +17,8 @@ Gem::Specification.new do |s|
|
|
16
17
|
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
17
18
|
s.require_path = 'lib'
|
18
19
|
|
19
|
-
s.add_dependency "methodize", "~> 0.2
|
20
|
+
s.add_dependency "methodize", "~> 0.2"
|
21
|
+
s.add_dependency "erubis"
|
20
22
|
|
21
23
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
22
24
|
s.add_development_dependency "rspec", "~> 2.9.0"
|
@@ -11,20 +11,37 @@ class EasyConfig::ConfigFile
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def create_configuration
|
14
|
-
yaml =
|
14
|
+
yaml = yaml_data
|
15
15
|
|
16
16
|
yaml = yaml[EasyConfig::Env.current] if EasyConfig::Env.has_environment?(yaml)
|
17
17
|
|
18
18
|
EasyConfig::Configuration.new(yaml)
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
def yaml_data
|
22
|
+
input = File.read(@path)
|
23
|
+
eruby = ERB.new(input)
|
24
|
+
YAML.load(eruby.result)
|
25
25
|
end
|
26
26
|
|
27
|
-
|
28
|
-
|
27
|
+
class << self
|
28
|
+
def all
|
29
|
+
@all ||= load_all
|
30
|
+
end
|
31
|
+
|
32
|
+
def reset!
|
33
|
+
@all = nil
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
def load_all
|
38
|
+
all = []
|
39
|
+
EasyConfig::PathResolver.config_paths.each do |config_path|
|
40
|
+
Dir.glob(File.join(config_path, '*.yml')).each do |yaml_file|
|
41
|
+
all << EasyConfig::ConfigFile.new(yaml_file)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
all
|
45
|
+
end
|
29
46
|
end
|
30
47
|
end
|
@@ -1,17 +1,20 @@
|
|
1
1
|
module EasyConfig::PathResolver
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
class << self
|
3
|
+
def config_paths
|
4
|
+
@config_paths ||= [default_config_path].compact
|
5
|
+
end
|
6
|
+
|
7
|
+
def clear!
|
8
|
+
@config_paths = nil
|
9
|
+
end
|
5
10
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
else
|
14
|
-
raise EasyConfig::UnknownConfigPath.new
|
11
|
+
private
|
12
|
+
def default_config_path
|
13
|
+
if defined?(Rails)
|
14
|
+
File.join(Rails.root, 'config')
|
15
|
+
elsif defined?(Sinatra)
|
16
|
+
File.join(Sinatra::Application.root, 'config')
|
17
|
+
end
|
15
18
|
end
|
16
19
|
end
|
17
20
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module EasyConfig
|
2
|
+
module Setup
|
3
|
+
def method_missing(name)
|
4
|
+
unless @loaded
|
5
|
+
setup_config
|
6
|
+
self.send name
|
7
|
+
else
|
8
|
+
raise ConfigurationNotFound.new("Configuration for '#{name}' was not found.")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def setup_config
|
13
|
+
EasyConfig::ConfigFile.all.each do |f|
|
14
|
+
add_config_method(f)
|
15
|
+
end
|
16
|
+
@loaded = true
|
17
|
+
end
|
18
|
+
|
19
|
+
def add_config_method(config)
|
20
|
+
(class << self; self; end).instance_eval do
|
21
|
+
define_method config.name do
|
22
|
+
config.configuration
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def config_path=(path)
|
28
|
+
EasyConfig::PathResolver.clear!
|
29
|
+
EasyConfig::PathResolver.config_paths << path
|
30
|
+
self.reset!
|
31
|
+
end
|
32
|
+
|
33
|
+
def reset!
|
34
|
+
EasyConfig::ConfigFile.reset!
|
35
|
+
@loaded = false
|
36
|
+
setup_config
|
37
|
+
end
|
38
|
+
|
39
|
+
def environment
|
40
|
+
EasyConfig::Env.current
|
41
|
+
end
|
42
|
+
|
43
|
+
def environment=(env)
|
44
|
+
EasyConfig::Env.set(env)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/lib/easy_config/version.rb
CHANGED
data/lib/easy_config.rb
CHANGED
@@ -1,52 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
class UnknownConfigPath < ArgumentError; end
|
4
|
-
|
5
|
-
def self.method_missing(name)
|
6
|
-
unless @loaded
|
7
|
-
setup_config
|
8
|
-
self.send name
|
9
|
-
else
|
10
|
-
raise ConfigurationNotFound.new("Configuration for '#{name}' was not found.")
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.setup_config
|
15
|
-
EasyConfig::ConfigFile.all.each do |f|
|
16
|
-
add_config_method(f)
|
17
|
-
end
|
18
|
-
@loaded = true
|
19
|
-
end
|
20
|
-
|
21
|
-
def self.add_config_method(config)
|
22
|
-
(class << self; self; end).instance_eval do
|
23
|
-
define_method config.name do
|
24
|
-
config.configuration
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.config_path=(path)
|
30
|
-
EasyConfig::PathResolver.config_path = path
|
31
|
-
self.reset!
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.reset!
|
35
|
-
EasyConfig::ConfigFile.reset!
|
36
|
-
@loaded = false
|
37
|
-
setup_config
|
38
|
-
end
|
39
|
-
|
40
|
-
def self.environment
|
41
|
-
EasyConfig::Env.current
|
42
|
-
end
|
43
|
-
|
44
|
-
def self.environment=(env)
|
45
|
-
EasyConfig::Env.set(env)
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
1
|
+
require 'yaml'
|
2
|
+
require 'easy_config/setup'
|
49
3
|
require 'easy_config/config_file'
|
50
4
|
require 'easy_config/configuration'
|
51
5
|
require 'easy_config/env'
|
52
6
|
require 'easy_config/path_resolver'
|
7
|
+
|
8
|
+
module EasyConfig
|
9
|
+
class ConfigurationNotFound < NoMethodError; end
|
10
|
+
|
11
|
+
extend Setup
|
12
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe EasyConfig::ConfigFile do
|
4
|
-
before { EasyConfig::PathResolver.
|
5
|
-
after { EasyConfig::PathResolver.
|
4
|
+
before { EasyConfig::PathResolver.config_paths << './spec/fixtures' }
|
5
|
+
after { EasyConfig::PathResolver.clear! }
|
6
6
|
|
7
7
|
context "all files" do
|
8
8
|
subject { EasyConfig::ConfigFile.all }
|
@@ -29,4 +29,14 @@ describe EasyConfig::ConfigFile do
|
|
29
29
|
its('configuration.host') { should eq 'localhost' }
|
30
30
|
its('configuration.port') { should eq 4567 }
|
31
31
|
end
|
32
|
+
|
33
|
+
context "ERB support" do
|
34
|
+
before do
|
35
|
+
ENV['redis_password'] = 'sTrOnGpAssWorD'
|
36
|
+
EasyConfig.reset!
|
37
|
+
end
|
38
|
+
|
39
|
+
subject { EasyConfig::ConfigFile.all.find { |c| c.name == :redis } }
|
40
|
+
its('configuration.password') { should eq 'sTrOnGpAssWorD' }
|
41
|
+
end
|
32
42
|
end
|
@@ -1,42 +1,33 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe EasyConfig::PathResolver do
|
4
|
-
context "#
|
5
|
-
|
4
|
+
context "#config_paths" do
|
5
|
+
before { EasyConfig::PathResolver.clear! }
|
6
|
+
|
7
|
+
context "include Rails config dir" do
|
6
8
|
before { module ::Rails; def self.root; "./"; end; end }
|
7
9
|
after { Object.send(:remove_const, :Rails) }
|
8
|
-
subject { EasyConfig::PathResolver.
|
9
|
-
it { should
|
10
|
+
subject { EasyConfig::PathResolver.config_paths }
|
11
|
+
it { should include("./config") }
|
10
12
|
end
|
11
13
|
|
12
|
-
context "
|
14
|
+
context "include Sinatra config dir" do
|
13
15
|
before { module ::Sinatra; module Application; def self.root; "/sinatra/"; end; end; end }
|
14
16
|
after { Object.send(:remove_const, :Sinatra) }
|
15
|
-
subject { EasyConfig::PathResolver.
|
16
|
-
it { should
|
17
|
-
end
|
18
|
-
|
19
|
-
context "allow custom config path" do
|
20
|
-
before { EasyConfig::PathResolver.config_path = './my_custom_path/' }
|
21
|
-
subject { EasyConfig::PathResolver.config_path }
|
22
|
-
it { should eq "./my_custom_path/*.yml" }
|
17
|
+
subject { EasyConfig::PathResolver.config_paths }
|
18
|
+
it { should include "/sinatra/config" }
|
23
19
|
end
|
24
20
|
|
25
|
-
context "
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
module ::Rails; def self.root; "./"; end; end
|
30
|
-
EasyConfig::PathResolver.config_path
|
31
|
-
}
|
32
|
-
after { Object.send(:remove_const, :Rails) }
|
33
|
-
it { should eq "./config/*.yml" }
|
21
|
+
context "empty set" do
|
22
|
+
it "doesn't raise exception" do
|
23
|
+
EasyConfig::PathResolver.config_paths.size.should eq 0
|
24
|
+
end
|
34
25
|
end
|
35
26
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
27
|
+
it "allows multiple paths" do
|
28
|
+
EasyConfig::PathResolver.config_paths << './spec/config'
|
29
|
+
EasyConfig::PathResolver.config_paths << './config'
|
30
|
+
EasyConfig::PathResolver.config_paths.size.should eq 2
|
40
31
|
end
|
41
32
|
end
|
42
33
|
end
|
data/spec/easy_config_spec.rb
CHANGED
@@ -34,7 +34,11 @@ describe EasyConfig do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
context "set custom environment" do
|
37
|
-
before
|
37
|
+
before do
|
38
|
+
@env = EasyConfig.environment
|
39
|
+
EasyConfig.environment = "test"
|
40
|
+
end
|
41
|
+
after { EasyConfig.environment = @env }
|
38
42
|
subject { EasyConfig.environment }
|
39
43
|
it { should eq "test" }
|
40
44
|
end
|
data/spec/fixtures/redis.yml
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,95 +1,96 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_config
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
version: 0.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Felipe Oliveira
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2012-03-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: methodize
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.2'
|
20
|
+
type: :runtime
|
22
21
|
prerelease: false
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: erubis
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: bundler
|
38
35
|
prerelease: false
|
39
|
-
|
40
|
-
|
41
|
-
requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
42
38
|
- - ">="
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
49
47
|
version: 1.0.0
|
50
48
|
type: :development
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: rspec
|
54
49
|
prerelease: false
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
65
61
|
version: 2.9.0
|
66
62
|
type: :development
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: rake
|
70
63
|
prerelease: false
|
71
|
-
|
72
|
-
|
73
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.9.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
74
73
|
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
version: "0"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
80
76
|
type: :development
|
81
|
-
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
82
83
|
description: Easy config, Rails and Rack application's configuration made easy.
|
83
84
|
email: felipecvo@gmail.com
|
84
85
|
executables: []
|
85
|
-
|
86
86
|
extensions: []
|
87
|
-
|
88
87
|
extra_rdoc_files: []
|
89
|
-
|
90
|
-
|
91
|
-
- .
|
92
|
-
- .
|
88
|
+
files:
|
89
|
+
- ".gitignore"
|
90
|
+
- ".rspec"
|
91
|
+
- ".ruby-version"
|
92
|
+
- ".travis.yml"
|
93
|
+
- CHANGELOG.md
|
93
94
|
- Gemfile
|
94
95
|
- Gemfile.lock
|
95
96
|
- README.md
|
@@ -100,6 +101,7 @@ files:
|
|
100
101
|
- lib/easy_config/configuration.rb
|
101
102
|
- lib/easy_config/env.rb
|
102
103
|
- lib/easy_config/path_resolver.rb
|
104
|
+
- lib/easy_config/setup.rb
|
103
105
|
- lib/easy_config/version.rb
|
104
106
|
- spec/easy_config/config_file_spec.rb
|
105
107
|
- spec/easy_config/configuration_spec.rb
|
@@ -111,39 +113,27 @@ files:
|
|
111
113
|
- spec/fixtures/redis.yml
|
112
114
|
- spec/spec_helper.rb
|
113
115
|
homepage: http://rubygems.org/gems/easy_config
|
114
|
-
licenses:
|
115
|
-
|
116
|
+
licenses:
|
117
|
+
- MIT
|
118
|
+
metadata: {}
|
116
119
|
post_install_message:
|
117
120
|
rdoc_options: []
|
118
|
-
|
119
|
-
require_paths:
|
121
|
+
require_paths:
|
120
122
|
- lib
|
121
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
-
|
123
|
-
requirements:
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
124
125
|
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
version: "0"
|
130
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
|
-
requirements:
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
133
130
|
- - ">="
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
hash: 23
|
136
|
-
segments:
|
137
|
-
- 1
|
138
|
-
- 3
|
139
|
-
- 6
|
131
|
+
- !ruby/object:Gem::Version
|
140
132
|
version: 1.3.6
|
141
133
|
requirements: []
|
142
|
-
|
143
134
|
rubyforge_project:
|
144
|
-
rubygems_version:
|
135
|
+
rubygems_version: 2.2.2
|
145
136
|
signing_key:
|
146
|
-
specification_version:
|
137
|
+
specification_version: 4
|
147
138
|
summary: Easy config, Rails and Rack application's configuration made easy.
|
148
139
|
test_files: []
|
149
|
-
|