config 0.0.1 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +6 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +23 -0
- data/Appraisals +15 -0
- data/CHANGELOG.md +25 -0
- data/Gemfile +6 -0
- data/LICENSE.md +27 -0
- data/README.md +315 -0
- data/Rakefile +42 -0
- data/config.gemspec +46 -0
- data/gemfiles/rails_3.gemfile +7 -0
- data/gemfiles/rails_4.1.gemfile +7 -0
- data/gemfiles/rails_4.2.gemfile +7 -0
- data/gemfiles/rails_4.gemfile +7 -0
- data/lib/config.rb +64 -0
- data/lib/config/engine.rb +5 -0
- data/lib/config/integration/rails.rb +36 -0
- data/lib/config/integration/sinatra.rb +26 -0
- data/lib/config/options.rb +157 -0
- data/lib/config/rack/reloader.rb +15 -0
- data/lib/config/railtie.rb +9 -0
- data/lib/config/sources/yaml_source.rb +26 -0
- data/lib/config/tasks.rb +59 -0
- data/lib/config/tasks/heroku.rake +8 -0
- data/lib/config/version.rb +3 -0
- data/lib/generators/config/install_generator.rb +32 -0
- data/lib/generators/config/templates/rails_config.rb +3 -0
- data/lib/generators/config/templates/settings.local.yml +0 -0
- data/lib/generators/config/templates/settings.yml +0 -0
- data/lib/generators/config/templates/settings/development.yml +0 -0
- data/lib/generators/config/templates/settings/production.yml +0 -0
- data/lib/generators/config/templates/settings/test.yml +0 -0
- data/spec/app/rails_3/Rakefile +7 -0
- data/spec/app/rails_3/app/assets/javascripts/application.js +13 -0
- data/spec/app/rails_3/app/assets/stylesheets/application.css +13 -0
- data/spec/app/rails_3/app/controllers/application_controller.rb +3 -0
- data/spec/app/rails_3/app/helpers/application_helper.rb +2 -0
- data/spec/app/rails_3/app/models/.gitkeep +0 -0
- data/spec/app/rails_3/app/views/layouts/application.html.erb +14 -0
- data/spec/app/rails_3/bin/bundle +3 -0
- data/spec/app/rails_3/bin/rails +4 -0
- data/spec/app/rails_3/bin/rake +4 -0
- data/spec/app/rails_3/config.ru +4 -0
- data/spec/app/rails_3/config/application.rb +29 -0
- data/spec/app/rails_3/config/boot.rb +5 -0
- data/spec/app/rails_3/config/database.yml +25 -0
- data/spec/app/rails_3/config/environment.rb +5 -0
- data/spec/app/rails_3/config/environments/development.rb +42 -0
- data/spec/app/rails_3/config/environments/production.rb +72 -0
- data/spec/app/rails_3/config/environments/test.rb +42 -0
- data/spec/app/rails_3/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/app/rails_3/config/initializers/inflections.rb +15 -0
- data/spec/app/rails_3/config/initializers/mime_types.rb +5 -0
- data/spec/app/rails_3/config/initializers/secret_token.rb +7 -0
- data/spec/app/rails_3/config/initializers/session_store.rb +8 -0
- data/spec/app/rails_3/config/initializers/wrap_parameters.rb +14 -0
- data/spec/app/rails_3/config/locales/en.yml +5 -0
- data/spec/app/rails_3/config/routes.rb +2 -0
- data/spec/app/rails_3/config/settings.yml +7 -0
- data/spec/app/rails_3/db/.gitkeep +0 -0
- data/spec/app/rails_3/public/404.html +26 -0
- data/spec/app/rails_3/public/422.html +26 -0
- data/spec/app/rails_3/public/500.html +25 -0
- data/spec/app/rails_3/script/rails +6 -0
- data/spec/app/rails_4.1/Rakefile +6 -0
- data/spec/app/rails_4.1/app/assets/javascripts/application.js +13 -0
- data/spec/app/rails_4.1/app/assets/stylesheets/application.css +15 -0
- data/spec/app/rails_4.1/app/controllers/application_controller.rb +5 -0
- data/spec/app/rails_4.1/app/helpers/application_helper.rb +2 -0
- data/spec/app/rails_4.1/app/models/.keep +0 -0
- data/spec/app/rails_4.1/app/views/layouts/application.html.erb +14 -0
- data/spec/app/rails_4.1/bin/bundle +3 -0
- data/spec/app/rails_4.1/bin/rails +4 -0
- data/spec/app/rails_4.1/bin/rake +4 -0
- data/spec/app/rails_4.1/config.ru +4 -0
- data/spec/app/rails_4.1/config/application.rb +27 -0
- data/spec/app/rails_4.1/config/boot.rb +5 -0
- data/spec/app/rails_4.1/config/database.yml +25 -0
- data/spec/app/rails_4.1/config/environment.rb +5 -0
- data/spec/app/rails_4.1/config/environments/development.rb +42 -0
- data/spec/app/rails_4.1/config/environments/production.rb +88 -0
- data/spec/app/rails_4.1/config/environments/test.rb +44 -0
- data/spec/app/rails_4.1/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/app/rails_4.1/config/initializers/cookies_serializer.rb +3 -0
- data/spec/app/rails_4.1/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/app/rails_4.1/config/initializers/inflections.rb +16 -0
- data/spec/app/rails_4.1/config/initializers/mime_types.rb +4 -0
- data/spec/app/rails_4.1/config/initializers/session_store.rb +3 -0
- data/spec/app/rails_4.1/config/initializers/wrap_parameters.rb +14 -0
- data/spec/app/rails_4.1/config/locales/en.yml +23 -0
- data/spec/app/rails_4.1/config/routes.rb +2 -0
- data/spec/app/rails_4.1/config/secrets.yml +22 -0
- data/spec/app/rails_4.1/config/settings.yml +7 -0
- data/spec/app/rails_4.1/db/.keep +0 -0
- data/spec/app/rails_4.1/public/404.html +67 -0
- data/spec/app/rails_4.1/public/422.html +67 -0
- data/spec/app/rails_4.1/public/500.html +66 -0
- data/spec/app/rails_4.2/Rakefile +6 -0
- data/spec/app/rails_4.2/app/assets/images/.keep +0 -0
- data/spec/app/rails_4.2/app/assets/javascripts/application.js +16 -0
- data/spec/app/rails_4.2/app/assets/stylesheets/application.css +15 -0
- data/spec/app/rails_4.2/app/controllers/application_controller.rb +5 -0
- data/spec/app/rails_4.2/app/controllers/concerns/.keep +0 -0
- data/spec/app/rails_4.2/app/helpers/application_helper.rb +2 -0
- data/spec/app/rails_4.2/app/mailers/.keep +0 -0
- data/spec/app/rails_4.2/app/models/.keep +0 -0
- data/spec/app/rails_4.2/app/models/concerns/.keep +0 -0
- data/spec/app/rails_4.2/app/views/layouts/application.html.erb +14 -0
- data/spec/app/rails_4.2/bin/bundle +3 -0
- data/spec/app/rails_4.2/bin/rails +8 -0
- data/spec/app/rails_4.2/bin/rake +8 -0
- data/spec/app/rails_4.2/bin/setup +29 -0
- data/spec/app/rails_4.2/bin/spring +15 -0
- data/spec/app/rails_4.2/config.ru +4 -0
- data/spec/app/rails_4.2/config/application.rb +31 -0
- data/spec/app/rails_4.2/config/boot.rb +3 -0
- data/spec/app/rails_4.2/config/database.yml +25 -0
- data/spec/app/rails_4.2/config/environment.rb +5 -0
- data/spec/app/rails_4.2/config/environments/development.rb +41 -0
- data/spec/app/rails_4.2/config/environments/production.rb +79 -0
- data/spec/app/rails_4.2/config/environments/test.rb +42 -0
- data/spec/app/rails_4.2/config/initializers/assets.rb +11 -0
- data/spec/app/rails_4.2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/app/rails_4.2/config/initializers/cookies_serializer.rb +3 -0
- data/spec/app/rails_4.2/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/app/rails_4.2/config/initializers/inflections.rb +16 -0
- data/spec/app/rails_4.2/config/initializers/mime_types.rb +4 -0
- data/spec/app/rails_4.2/config/initializers/session_store.rb +3 -0
- data/spec/app/rails_4.2/config/initializers/wrap_parameters.rb +14 -0
- data/spec/app/rails_4.2/config/locales/en.yml +23 -0
- data/spec/app/rails_4.2/config/routes.rb +56 -0
- data/spec/app/rails_4.2/config/secrets.yml +22 -0
- data/spec/app/rails_4.2/config/settings.yml +7 -0
- data/spec/app/rails_4.2/db/seeds.rb +7 -0
- data/spec/app/rails_4.2/public/404.html +67 -0
- data/spec/app/rails_4.2/public/422.html +67 -0
- data/spec/app/rails_4.2/public/500.html +66 -0
- data/spec/app/rails_4.2/public/favicon.ico +0 -0
- data/spec/app/rails_4.2/public/robots.txt +5 -0
- data/spec/app/rails_4/Rakefile +6 -0
- data/spec/app/rails_4/app/assets/javascripts/application.js +13 -0
- data/spec/app/rails_4/app/assets/stylesheets/application.css +13 -0
- data/spec/app/rails_4/app/controllers/application_controller.rb +5 -0
- data/spec/app/rails_4/app/helpers/application_helper.rb +2 -0
- data/spec/app/rails_4/app/models/.keep +0 -0
- data/spec/app/rails_4/app/views/layouts/application.html.erb +14 -0
- data/spec/app/rails_4/bin/bundle +3 -0
- data/spec/app/rails_4/bin/rails +4 -0
- data/spec/app/rails_4/bin/rake +4 -0
- data/spec/app/rails_4/config.ru +4 -0
- data/spec/app/rails_4/config/application.rb +27 -0
- data/spec/app/rails_4/config/boot.rb +5 -0
- data/spec/app/rails_4/config/database.yml +25 -0
- data/spec/app/rails_4/config/environment.rb +5 -0
- data/spec/app/rails_4/config/environments/development.rb +34 -0
- data/spec/app/rails_4/config/environments/production.rb +85 -0
- data/spec/app/rails_4/config/environments/test.rb +41 -0
- data/spec/app/rails_4/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/app/rails_4/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/app/rails_4/config/initializers/inflections.rb +16 -0
- data/spec/app/rails_4/config/initializers/mime_types.rb +5 -0
- data/spec/app/rails_4/config/initializers/secret_token.rb +12 -0
- data/spec/app/rails_4/config/initializers/session_store.rb +3 -0
- data/spec/app/rails_4/config/initializers/wrap_parameters.rb +14 -0
- data/spec/app/rails_4/config/locales/en.yml +23 -0
- data/spec/app/rails_4/config/routes.rb +2 -0
- data/spec/app/rails_4/config/settings.yml +7 -0
- data/spec/app/rails_4/db/.keep +0 -0
- data/spec/app/rails_4/public/404.html +58 -0
- data/spec/app/rails_4/public/422.html +58 -0
- data/spec/app/rails_4/public/500.html +57 -0
- data/spec/config_spec.rb +317 -0
- data/spec/fixtures/bool_override/config1.yml +2 -0
- data/spec/fixtures/bool_override/config2.yml +2 -0
- data/spec/fixtures/custom_types/hash.yml +7 -0
- data/spec/fixtures/deep_merge/config1.yml +28 -0
- data/spec/fixtures/deep_merge/config2.yml +28 -0
- data/spec/fixtures/deep_merge2/config1.yml +3 -0
- data/spec/fixtures/deep_merge2/config2.yml +2 -0
- data/spec/fixtures/development.yml +4 -0
- data/spec/fixtures/empty1.yml +0 -0
- data/spec/fixtures/empty2.yml +0 -0
- data/spec/fixtures/env/settings.yml +4 -0
- data/spec/fixtures/malformed.yml +6 -0
- data/spec/fixtures/reserved_keywords.yml +2 -0
- data/spec/fixtures/settings.yml +21 -0
- data/spec/fixtures/settings2.yml +1 -0
- data/spec/fixtures/with_erb.yml +4 -0
- data/spec/options_spec.rb +84 -0
- data/spec/sources/yaml_source_spec.rb +77 -0
- data/spec/spec_helper.rb +54 -0
- data/spec/support/rails_config_helper.rb +22 -0
- data/spec/support/shared_contexts/rake.rb +8 -0
- data/spec/tasks/db_spec.rb +9 -0
- metadata +580 -42
@@ -0,0 +1,28 @@
|
|
1
|
+
size: 1
|
2
|
+
server: google.com
|
3
|
+
inner:
|
4
|
+
something1: "blah1"
|
5
|
+
something2: "blah2"
|
6
|
+
|
7
|
+
inner2:
|
8
|
+
inner2_inner:
|
9
|
+
foo1: "blah1"
|
10
|
+
|
11
|
+
|
12
|
+
arraylist1:
|
13
|
+
- 1
|
14
|
+
- 2
|
15
|
+
- 3
|
16
|
+
|
17
|
+
arraylist2:
|
18
|
+
inner:
|
19
|
+
- 1
|
20
|
+
- 2
|
21
|
+
- 3
|
22
|
+
|
23
|
+
hash_array:
|
24
|
+
- 1
|
25
|
+
- inner:
|
26
|
+
- 1
|
27
|
+
- 2
|
28
|
+
- 3
|
@@ -0,0 +1,28 @@
|
|
1
|
+
server: google.com
|
2
|
+
|
3
|
+
inner:
|
4
|
+
something3: "blah3"
|
5
|
+
|
6
|
+
inner2:
|
7
|
+
inner2_inner:
|
8
|
+
foo2: "blah2"
|
9
|
+
foo3: "blah3"
|
10
|
+
|
11
|
+
arraylist1:
|
12
|
+
- 4
|
13
|
+
- 5
|
14
|
+
- 6
|
15
|
+
|
16
|
+
|
17
|
+
arraylist2:
|
18
|
+
inner:
|
19
|
+
- 4
|
20
|
+
- 5
|
21
|
+
- 6
|
22
|
+
|
23
|
+
hash_array:
|
24
|
+
- 2
|
25
|
+
- inner:
|
26
|
+
- 4
|
27
|
+
- 5
|
28
|
+
- 6
|
File without changes
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
##
|
2
|
+
# Settings for Rails database.yml
|
3
|
+
#
|
4
|
+
databases:
|
5
|
+
development:
|
6
|
+
database: db/development.sqlite3
|
7
|
+
test:
|
8
|
+
database: db/test.sqlite3
|
9
|
+
production:
|
10
|
+
database: db/production.sqlite3
|
11
|
+
##
|
12
|
+
# ...
|
13
|
+
#
|
14
|
+
size: 1
|
15
|
+
server: google.com
|
16
|
+
1: "one"
|
17
|
+
photo_sizes:
|
18
|
+
avatar: [60, 60]
|
19
|
+
root:
|
20
|
+
yahoo.com: 2
|
21
|
+
'google.com': 3
|
@@ -0,0 +1 @@
|
|
1
|
+
another: "something"
|
@@ -0,0 +1,84 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Config::Options do
|
4
|
+
|
5
|
+
context 'when Settings file is using keywords reserved for OpenStruct' do
|
6
|
+
let(:config) do
|
7
|
+
Config.load_files("#{fixture_path}/reserved_keywords.yml")
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should allow to access them via object member notation' do
|
11
|
+
expect(config.select).to eq(123)
|
12
|
+
expect(config.collect).to eq(456)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should allow to access them using [] operator' do
|
16
|
+
expect(config['select']).to eq(123)
|
17
|
+
expect(config['collect']).to eq(456)
|
18
|
+
|
19
|
+
expect(config[:select]).to eq(123)
|
20
|
+
expect(config[:collect]).to eq(456)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
context 'adding sources' do
|
25
|
+
let(:config) do
|
26
|
+
Config.load_files("#{fixture_path}/settings.yml")
|
27
|
+
end
|
28
|
+
|
29
|
+
before do
|
30
|
+
config.add_source!("#{fixture_path}/deep_merge2/config1.yml")
|
31
|
+
config.reload!
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should still have the initial config' do
|
35
|
+
expect(config['size']).to eq(1)
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'should add keys from the added file' do
|
39
|
+
expect(config['tvrage']['service_url']).to eq('http://services.tvrage.com')
|
40
|
+
end
|
41
|
+
|
42
|
+
context 'overwrite' do
|
43
|
+
before do
|
44
|
+
config.add_source!("#{fixture_path}/deep_merge2/config2.yml")
|
45
|
+
config.reload!
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'should overwrite the previous values' do
|
49
|
+
expect(config['tvrage']['service_url']).to eq('http://url2')
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
context 'prepending sources' do
|
55
|
+
let(:config) do
|
56
|
+
Config.load_files("#{fixture_path}/settings.yml")
|
57
|
+
end
|
58
|
+
|
59
|
+
before do
|
60
|
+
config.prepend_source!("#{fixture_path}/deep_merge2/config1.yml")
|
61
|
+
config.reload!
|
62
|
+
end
|
63
|
+
|
64
|
+
it 'should still have the initial config' do
|
65
|
+
expect(config['size']).to eq(1)
|
66
|
+
end
|
67
|
+
|
68
|
+
it 'should add keys from the added file' do
|
69
|
+
expect(config['tvrage']['service_url']).to eq('http://services.tvrage.com')
|
70
|
+
end
|
71
|
+
|
72
|
+
context 'be overwriten' do
|
73
|
+
before do
|
74
|
+
config.prepend_source!("#{fixture_path}/deep_merge2/config2.yml")
|
75
|
+
config.reload!
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'should overwrite the previous values' do
|
79
|
+
expect(config['tvrage']['service_url']).to eq('http://services.tvrage.com')
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Config::Sources
|
4
|
+
describe YAMLSource do
|
5
|
+
it "should take a path as initializer" do
|
6
|
+
source = YAMLSource.new "somepath"
|
7
|
+
expect(source.path).to eq("somepath")
|
8
|
+
end
|
9
|
+
|
10
|
+
context "basic yml file" do
|
11
|
+
let(:source) do
|
12
|
+
YAMLSource.new "#{fixture_path}/development.yml"
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should properly read the settings" do
|
16
|
+
results = source.load
|
17
|
+
expect(results["size"]).to eq(2)
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should properly read nested settings" do
|
21
|
+
results = source.load
|
22
|
+
expect(results["section"]["size"]).to eq(3)
|
23
|
+
expect(results["section"]["servers"]).to be_instance_of(Array)
|
24
|
+
expect(results["section"]["servers"].size).to eq(2)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context "yml file with erb tags" do
|
29
|
+
let(:source) do
|
30
|
+
YAMLSource.new "#{fixture_path}/with_erb.yml"
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should properly evaluate the erb" do
|
34
|
+
results = source.load
|
35
|
+
expect(results["computed"]).to eq(6)
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should properly evaluate the nested erb settings" do
|
39
|
+
results = source.load
|
40
|
+
expect(results["section"]["computed1"]).to eq(1)
|
41
|
+
expect(results["section"]["computed2"]).to eq(2)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context "missing yml file" do
|
46
|
+
let(:source) do
|
47
|
+
YAMLSource.new "somewhere_that_doesnt_exist.yml"
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should return an empty hash" do
|
51
|
+
results = source.load
|
52
|
+
expect(results).to eq({})
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
context "blank yml file" do
|
57
|
+
let(:source) do
|
58
|
+
YAMLSource.new "#{fixture_path}/empty1.yml"
|
59
|
+
end
|
60
|
+
|
61
|
+
it "should return an empty hash" do
|
62
|
+
results = source.load
|
63
|
+
expect(results).to eq({})
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
context "malformed yml file" do
|
68
|
+
let(:source) do
|
69
|
+
YAMLSource.new "#{fixture_path}/malformed.yml"
|
70
|
+
end
|
71
|
+
|
72
|
+
it "should raise an useful exception" do
|
73
|
+
expect { source.load }.to raise_error(/malformed\.yml/)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= 'test'
|
2
|
+
|
3
|
+
##
|
4
|
+
# Code Climate
|
5
|
+
#
|
6
|
+
if ENV["TRAVIS"]
|
7
|
+
require "codeclimate-test-reporter"
|
8
|
+
CodeClimate::TestReporter.start
|
9
|
+
end
|
10
|
+
|
11
|
+
##
|
12
|
+
# Load Rspec supporting files
|
13
|
+
#
|
14
|
+
Dir['./spec/support/**/*.rb'].each { |f| require f }
|
15
|
+
|
16
|
+
##
|
17
|
+
# Load Rails dummy application based on gemfile name substituted by Appraisal
|
18
|
+
#
|
19
|
+
if ENV["APPRAISAL_INITIALIZED"] || ENV["TRAVIS"]
|
20
|
+
app_name = Pathname.new(ENV['BUNDLE_GEMFILE']).basename.sub('.gemfile', '')
|
21
|
+
else
|
22
|
+
app_name = 'rails_3'
|
23
|
+
end
|
24
|
+
|
25
|
+
require File.expand_path("../../spec/app/#{app_name}/config/environment", __FILE__)
|
26
|
+
|
27
|
+
APP_RAKEFILE = File.expand_path("../../spec/app/#{app_name}/Rakefile", __FILE__)
|
28
|
+
|
29
|
+
##
|
30
|
+
# Load Rspec
|
31
|
+
#
|
32
|
+
require 'rspec/rails'
|
33
|
+
|
34
|
+
# Configure
|
35
|
+
RSpec.configure do |config|
|
36
|
+
config.fixture_path = File.join(File.dirname(__FILE__), "/fixtures")
|
37
|
+
|
38
|
+
# Turn the deprecation warnings into errors, giving you the full backtrace
|
39
|
+
config.raise_errors_for_deprecations!
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
##
|
44
|
+
# Print some debug info
|
45
|
+
#
|
46
|
+
puts
|
47
|
+
puts "Gemfile: #{ENV['BUNDLE_GEMFILE']}"
|
48
|
+
puts "Rails version:"
|
49
|
+
|
50
|
+
Gem.loaded_specs.each { |name, spec|
|
51
|
+
puts "\t#{name}-#{spec.version}" if %w{rails activesupport sqlite3 rspec-rails}.include?(name)
|
52
|
+
}
|
53
|
+
|
54
|
+
puts
|
@@ -0,0 +1,22 @@
|
|
1
|
+
##
|
2
|
+
# Config Rspec Helpers
|
3
|
+
#
|
4
|
+
|
5
|
+
# Loads ENV vars from a yaml file
|
6
|
+
def load_env(filename)
|
7
|
+
if filename and File.exists?(filename.to_s)
|
8
|
+
result = YAML.load(ERB.new(IO.read(filename.to_s)).result)
|
9
|
+
end
|
10
|
+
result.each { |key, value| ENV[key.to_s] = value.to_s } unless result.nil?
|
11
|
+
end
|
12
|
+
|
13
|
+
# Checks if (default) Config const is already available
|
14
|
+
def config_available?
|
15
|
+
where = caller[0].split(':')[0].gsub(File.expand_path(File.dirname(__FILE__)), '')
|
16
|
+
|
17
|
+
if defined?(::Settings)
|
18
|
+
puts "Config available in #{where}"
|
19
|
+
else
|
20
|
+
raise "Config not available in #{where}"
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,55 +1,593 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: config
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.beta1
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
-
|
6
|
+
authors:
|
7
|
+
- Jacques Crocker
|
8
|
+
- Fred Wu
|
9
|
+
- Piotr Kuczynski
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
date: 2015-08-05 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activesupport
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '3.0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: deep_merge
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 1.0.0
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.0.0
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: bundler
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 1.10.5
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.10.5
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rake
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rdoc
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: pry
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: appraisal
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 2.0.2
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 2.0.2
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rails
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 4.2.3
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 4.2.3
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rspec
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 3.3.0
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 3.3.0
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: rspec-rails
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - "~>"
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: 3.3.3
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 3.3.3
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: test-unit
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - "~>"
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 3.1.3
|
162
|
+
type: :development
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - "~>"
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 3.1.3
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: sqlite3
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - ">="
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
type: :development
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: rubocop
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
type: :development
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
197
|
+
description: Easiest way to add multi-environment yaml settings to Rails, Sinatra,
|
198
|
+
Pandrino and other ruby projects.
|
199
|
+
email:
|
200
|
+
- railsjedi@gmail.com
|
201
|
+
- ifredwu@gmail.com
|
202
|
+
- piotr.kuczynski@gmail.com
|
18
203
|
executables: []
|
19
|
-
|
20
204
|
extensions: []
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
205
|
+
extra_rdoc_files:
|
206
|
+
- README.md
|
207
|
+
files:
|
208
|
+
- ".codeclimate.yml"
|
209
|
+
- ".gitignore"
|
210
|
+
- ".rspec"
|
211
|
+
- ".ruby-gemset"
|
212
|
+
- ".ruby-version"
|
213
|
+
- ".travis.yml"
|
214
|
+
- Appraisals
|
215
|
+
- CHANGELOG.md
|
216
|
+
- Gemfile
|
217
|
+
- LICENSE.md
|
218
|
+
- README.md
|
219
|
+
- Rakefile
|
220
|
+
- config.gemspec
|
221
|
+
- gemfiles/rails_3.gemfile
|
222
|
+
- gemfiles/rails_4.1.gemfile
|
223
|
+
- gemfiles/rails_4.2.gemfile
|
224
|
+
- gemfiles/rails_4.gemfile
|
225
|
+
- lib/config.rb
|
226
|
+
- lib/config/engine.rb
|
227
|
+
- lib/config/integration/rails.rb
|
228
|
+
- lib/config/integration/sinatra.rb
|
229
|
+
- lib/config/options.rb
|
230
|
+
- lib/config/rack/reloader.rb
|
231
|
+
- lib/config/railtie.rb
|
232
|
+
- lib/config/sources/yaml_source.rb
|
233
|
+
- lib/config/tasks.rb
|
234
|
+
- lib/config/tasks/heroku.rake
|
235
|
+
- lib/config/version.rb
|
236
|
+
- lib/generators/config/install_generator.rb
|
237
|
+
- lib/generators/config/templates/rails_config.rb
|
238
|
+
- lib/generators/config/templates/settings.local.yml
|
239
|
+
- lib/generators/config/templates/settings.yml
|
240
|
+
- lib/generators/config/templates/settings/development.yml
|
241
|
+
- lib/generators/config/templates/settings/production.yml
|
242
|
+
- lib/generators/config/templates/settings/test.yml
|
243
|
+
- spec/app/rails_3/Rakefile
|
244
|
+
- spec/app/rails_3/app/assets/javascripts/application.js
|
245
|
+
- spec/app/rails_3/app/assets/stylesheets/application.css
|
246
|
+
- spec/app/rails_3/app/controllers/application_controller.rb
|
247
|
+
- spec/app/rails_3/app/helpers/application_helper.rb
|
248
|
+
- spec/app/rails_3/app/models/.gitkeep
|
249
|
+
- spec/app/rails_3/app/views/layouts/application.html.erb
|
250
|
+
- spec/app/rails_3/bin/bundle
|
251
|
+
- spec/app/rails_3/bin/rails
|
252
|
+
- spec/app/rails_3/bin/rake
|
253
|
+
- spec/app/rails_3/config.ru
|
254
|
+
- spec/app/rails_3/config/application.rb
|
255
|
+
- spec/app/rails_3/config/boot.rb
|
256
|
+
- spec/app/rails_3/config/database.yml
|
257
|
+
- spec/app/rails_3/config/environment.rb
|
258
|
+
- spec/app/rails_3/config/environments/development.rb
|
259
|
+
- spec/app/rails_3/config/environments/production.rb
|
260
|
+
- spec/app/rails_3/config/environments/test.rb
|
261
|
+
- spec/app/rails_3/config/initializers/backtrace_silencers.rb
|
262
|
+
- spec/app/rails_3/config/initializers/inflections.rb
|
263
|
+
- spec/app/rails_3/config/initializers/mime_types.rb
|
264
|
+
- spec/app/rails_3/config/initializers/secret_token.rb
|
265
|
+
- spec/app/rails_3/config/initializers/session_store.rb
|
266
|
+
- spec/app/rails_3/config/initializers/wrap_parameters.rb
|
267
|
+
- spec/app/rails_3/config/locales/en.yml
|
268
|
+
- spec/app/rails_3/config/routes.rb
|
269
|
+
- spec/app/rails_3/config/settings.yml
|
270
|
+
- spec/app/rails_3/db/.gitkeep
|
271
|
+
- spec/app/rails_3/public/404.html
|
272
|
+
- spec/app/rails_3/public/422.html
|
273
|
+
- spec/app/rails_3/public/500.html
|
274
|
+
- spec/app/rails_3/script/rails
|
275
|
+
- spec/app/rails_4.1/Rakefile
|
276
|
+
- spec/app/rails_4.1/app/assets/javascripts/application.js
|
277
|
+
- spec/app/rails_4.1/app/assets/stylesheets/application.css
|
278
|
+
- spec/app/rails_4.1/app/controllers/application_controller.rb
|
279
|
+
- spec/app/rails_4.1/app/helpers/application_helper.rb
|
280
|
+
- spec/app/rails_4.1/app/models/.keep
|
281
|
+
- spec/app/rails_4.1/app/views/layouts/application.html.erb
|
282
|
+
- spec/app/rails_4.1/bin/bundle
|
283
|
+
- spec/app/rails_4.1/bin/rails
|
284
|
+
- spec/app/rails_4.1/bin/rake
|
285
|
+
- spec/app/rails_4.1/config.ru
|
286
|
+
- spec/app/rails_4.1/config/application.rb
|
287
|
+
- spec/app/rails_4.1/config/boot.rb
|
288
|
+
- spec/app/rails_4.1/config/database.yml
|
289
|
+
- spec/app/rails_4.1/config/environment.rb
|
290
|
+
- spec/app/rails_4.1/config/environments/development.rb
|
291
|
+
- spec/app/rails_4.1/config/environments/production.rb
|
292
|
+
- spec/app/rails_4.1/config/environments/test.rb
|
293
|
+
- spec/app/rails_4.1/config/initializers/backtrace_silencers.rb
|
294
|
+
- spec/app/rails_4.1/config/initializers/cookies_serializer.rb
|
295
|
+
- spec/app/rails_4.1/config/initializers/filter_parameter_logging.rb
|
296
|
+
- spec/app/rails_4.1/config/initializers/inflections.rb
|
297
|
+
- spec/app/rails_4.1/config/initializers/mime_types.rb
|
298
|
+
- spec/app/rails_4.1/config/initializers/session_store.rb
|
299
|
+
- spec/app/rails_4.1/config/initializers/wrap_parameters.rb
|
300
|
+
- spec/app/rails_4.1/config/locales/en.yml
|
301
|
+
- spec/app/rails_4.1/config/routes.rb
|
302
|
+
- spec/app/rails_4.1/config/secrets.yml
|
303
|
+
- spec/app/rails_4.1/config/settings.yml
|
304
|
+
- spec/app/rails_4.1/db/.keep
|
305
|
+
- spec/app/rails_4.1/public/404.html
|
306
|
+
- spec/app/rails_4.1/public/422.html
|
307
|
+
- spec/app/rails_4.1/public/500.html
|
308
|
+
- spec/app/rails_4.2/Rakefile
|
309
|
+
- spec/app/rails_4.2/app/assets/images/.keep
|
310
|
+
- spec/app/rails_4.2/app/assets/javascripts/application.js
|
311
|
+
- spec/app/rails_4.2/app/assets/stylesheets/application.css
|
312
|
+
- spec/app/rails_4.2/app/controllers/application_controller.rb
|
313
|
+
- spec/app/rails_4.2/app/controllers/concerns/.keep
|
314
|
+
- spec/app/rails_4.2/app/helpers/application_helper.rb
|
315
|
+
- spec/app/rails_4.2/app/mailers/.keep
|
316
|
+
- spec/app/rails_4.2/app/models/.keep
|
317
|
+
- spec/app/rails_4.2/app/models/concerns/.keep
|
318
|
+
- spec/app/rails_4.2/app/views/layouts/application.html.erb
|
319
|
+
- spec/app/rails_4.2/bin/bundle
|
320
|
+
- spec/app/rails_4.2/bin/rails
|
321
|
+
- spec/app/rails_4.2/bin/rake
|
322
|
+
- spec/app/rails_4.2/bin/setup
|
323
|
+
- spec/app/rails_4.2/bin/spring
|
324
|
+
- spec/app/rails_4.2/config.ru
|
325
|
+
- spec/app/rails_4.2/config/application.rb
|
326
|
+
- spec/app/rails_4.2/config/boot.rb
|
327
|
+
- spec/app/rails_4.2/config/database.yml
|
328
|
+
- spec/app/rails_4.2/config/environment.rb
|
329
|
+
- spec/app/rails_4.2/config/environments/development.rb
|
330
|
+
- spec/app/rails_4.2/config/environments/production.rb
|
331
|
+
- spec/app/rails_4.2/config/environments/test.rb
|
332
|
+
- spec/app/rails_4.2/config/initializers/assets.rb
|
333
|
+
- spec/app/rails_4.2/config/initializers/backtrace_silencers.rb
|
334
|
+
- spec/app/rails_4.2/config/initializers/cookies_serializer.rb
|
335
|
+
- spec/app/rails_4.2/config/initializers/filter_parameter_logging.rb
|
336
|
+
- spec/app/rails_4.2/config/initializers/inflections.rb
|
337
|
+
- spec/app/rails_4.2/config/initializers/mime_types.rb
|
338
|
+
- spec/app/rails_4.2/config/initializers/session_store.rb
|
339
|
+
- spec/app/rails_4.2/config/initializers/wrap_parameters.rb
|
340
|
+
- spec/app/rails_4.2/config/locales/en.yml
|
341
|
+
- spec/app/rails_4.2/config/routes.rb
|
342
|
+
- spec/app/rails_4.2/config/secrets.yml
|
343
|
+
- spec/app/rails_4.2/config/settings.yml
|
344
|
+
- spec/app/rails_4.2/db/seeds.rb
|
345
|
+
- spec/app/rails_4.2/public/404.html
|
346
|
+
- spec/app/rails_4.2/public/422.html
|
347
|
+
- spec/app/rails_4.2/public/500.html
|
348
|
+
- spec/app/rails_4.2/public/favicon.ico
|
349
|
+
- spec/app/rails_4.2/public/robots.txt
|
350
|
+
- spec/app/rails_4/Rakefile
|
351
|
+
- spec/app/rails_4/app/assets/javascripts/application.js
|
352
|
+
- spec/app/rails_4/app/assets/stylesheets/application.css
|
353
|
+
- spec/app/rails_4/app/controllers/application_controller.rb
|
354
|
+
- spec/app/rails_4/app/helpers/application_helper.rb
|
355
|
+
- spec/app/rails_4/app/models/.keep
|
356
|
+
- spec/app/rails_4/app/views/layouts/application.html.erb
|
357
|
+
- spec/app/rails_4/bin/bundle
|
358
|
+
- spec/app/rails_4/bin/rails
|
359
|
+
- spec/app/rails_4/bin/rake
|
360
|
+
- spec/app/rails_4/config.ru
|
361
|
+
- spec/app/rails_4/config/application.rb
|
362
|
+
- spec/app/rails_4/config/boot.rb
|
363
|
+
- spec/app/rails_4/config/database.yml
|
364
|
+
- spec/app/rails_4/config/environment.rb
|
365
|
+
- spec/app/rails_4/config/environments/development.rb
|
366
|
+
- spec/app/rails_4/config/environments/production.rb
|
367
|
+
- spec/app/rails_4/config/environments/test.rb
|
368
|
+
- spec/app/rails_4/config/initializers/backtrace_silencers.rb
|
369
|
+
- spec/app/rails_4/config/initializers/filter_parameter_logging.rb
|
370
|
+
- spec/app/rails_4/config/initializers/inflections.rb
|
371
|
+
- spec/app/rails_4/config/initializers/mime_types.rb
|
372
|
+
- spec/app/rails_4/config/initializers/secret_token.rb
|
373
|
+
- spec/app/rails_4/config/initializers/session_store.rb
|
374
|
+
- spec/app/rails_4/config/initializers/wrap_parameters.rb
|
375
|
+
- spec/app/rails_4/config/locales/en.yml
|
376
|
+
- spec/app/rails_4/config/routes.rb
|
377
|
+
- spec/app/rails_4/config/settings.yml
|
378
|
+
- spec/app/rails_4/db/.keep
|
379
|
+
- spec/app/rails_4/public/404.html
|
380
|
+
- spec/app/rails_4/public/422.html
|
381
|
+
- spec/app/rails_4/public/500.html
|
382
|
+
- spec/config_spec.rb
|
383
|
+
- spec/fixtures/bool_override/config1.yml
|
384
|
+
- spec/fixtures/bool_override/config2.yml
|
385
|
+
- spec/fixtures/custom_types/hash.yml
|
386
|
+
- spec/fixtures/deep_merge/config1.yml
|
387
|
+
- spec/fixtures/deep_merge/config2.yml
|
388
|
+
- spec/fixtures/deep_merge2/config1.yml
|
389
|
+
- spec/fixtures/deep_merge2/config2.yml
|
390
|
+
- spec/fixtures/development.yml
|
391
|
+
- spec/fixtures/empty1.yml
|
392
|
+
- spec/fixtures/empty2.yml
|
393
|
+
- spec/fixtures/env/settings.yml
|
394
|
+
- spec/fixtures/malformed.yml
|
395
|
+
- spec/fixtures/reserved_keywords.yml
|
396
|
+
- spec/fixtures/settings.yml
|
397
|
+
- spec/fixtures/settings2.yml
|
398
|
+
- spec/fixtures/with_erb.yml
|
399
|
+
- spec/options_spec.rb
|
400
|
+
- spec/sources/yaml_source_spec.rb
|
401
|
+
- spec/spec_helper.rb
|
402
|
+
- spec/support/rails_config_helper.rb
|
403
|
+
- spec/support/shared_contexts/rake.rb
|
404
|
+
- spec/tasks/db_spec.rb
|
405
|
+
homepage: https://github.com/railsconfig/config
|
406
|
+
licenses:
|
407
|
+
- MIT
|
408
|
+
metadata: {}
|
30
409
|
post_install_message:
|
31
|
-
rdoc_options:
|
32
|
-
|
33
|
-
require_paths:
|
410
|
+
rdoc_options:
|
411
|
+
- "--charset=UTF-8"
|
412
|
+
require_paths:
|
34
413
|
- lib
|
35
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
414
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
415
|
+
requirements:
|
37
416
|
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version:
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
version: "0"
|
46
|
-
version:
|
417
|
+
- !ruby/object:Gem::Version
|
418
|
+
version: '0'
|
419
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
420
|
+
requirements:
|
421
|
+
- - ">"
|
422
|
+
- !ruby/object:Gem::Version
|
423
|
+
version: 1.3.1
|
47
424
|
requirements: []
|
48
|
-
|
49
425
|
rubyforge_project:
|
50
|
-
rubygems_version:
|
426
|
+
rubygems_version: 2.4.5
|
51
427
|
signing_key:
|
52
|
-
specification_version:
|
53
|
-
summary:
|
54
|
-
|
55
|
-
|
428
|
+
specification_version: 4
|
429
|
+
summary: Easiest way to add multi-environment yaml settings to Rails, Sinatra, Pandrino
|
430
|
+
and other ruby projects.
|
431
|
+
test_files:
|
432
|
+
- spec/app/rails_3/Rakefile
|
433
|
+
- spec/app/rails_3/app/assets/javascripts/application.js
|
434
|
+
- spec/app/rails_3/app/assets/stylesheets/application.css
|
435
|
+
- spec/app/rails_3/app/controllers/application_controller.rb
|
436
|
+
- spec/app/rails_3/app/helpers/application_helper.rb
|
437
|
+
- spec/app/rails_3/app/models/.gitkeep
|
438
|
+
- spec/app/rails_3/app/views/layouts/application.html.erb
|
439
|
+
- spec/app/rails_3/bin/bundle
|
440
|
+
- spec/app/rails_3/bin/rails
|
441
|
+
- spec/app/rails_3/bin/rake
|
442
|
+
- spec/app/rails_3/config.ru
|
443
|
+
- spec/app/rails_3/config/application.rb
|
444
|
+
- spec/app/rails_3/config/boot.rb
|
445
|
+
- spec/app/rails_3/config/database.yml
|
446
|
+
- spec/app/rails_3/config/environment.rb
|
447
|
+
- spec/app/rails_3/config/environments/development.rb
|
448
|
+
- spec/app/rails_3/config/environments/production.rb
|
449
|
+
- spec/app/rails_3/config/environments/test.rb
|
450
|
+
- spec/app/rails_3/config/initializers/backtrace_silencers.rb
|
451
|
+
- spec/app/rails_3/config/initializers/inflections.rb
|
452
|
+
- spec/app/rails_3/config/initializers/mime_types.rb
|
453
|
+
- spec/app/rails_3/config/initializers/secret_token.rb
|
454
|
+
- spec/app/rails_3/config/initializers/session_store.rb
|
455
|
+
- spec/app/rails_3/config/initializers/wrap_parameters.rb
|
456
|
+
- spec/app/rails_3/config/locales/en.yml
|
457
|
+
- spec/app/rails_3/config/routes.rb
|
458
|
+
- spec/app/rails_3/config/settings.yml
|
459
|
+
- spec/app/rails_3/db/.gitkeep
|
460
|
+
- spec/app/rails_3/public/404.html
|
461
|
+
- spec/app/rails_3/public/422.html
|
462
|
+
- spec/app/rails_3/public/500.html
|
463
|
+
- spec/app/rails_3/script/rails
|
464
|
+
- spec/app/rails_4.1/Rakefile
|
465
|
+
- spec/app/rails_4.1/app/assets/javascripts/application.js
|
466
|
+
- spec/app/rails_4.1/app/assets/stylesheets/application.css
|
467
|
+
- spec/app/rails_4.1/app/controllers/application_controller.rb
|
468
|
+
- spec/app/rails_4.1/app/helpers/application_helper.rb
|
469
|
+
- spec/app/rails_4.1/app/models/.keep
|
470
|
+
- spec/app/rails_4.1/app/views/layouts/application.html.erb
|
471
|
+
- spec/app/rails_4.1/bin/bundle
|
472
|
+
- spec/app/rails_4.1/bin/rails
|
473
|
+
- spec/app/rails_4.1/bin/rake
|
474
|
+
- spec/app/rails_4.1/config.ru
|
475
|
+
- spec/app/rails_4.1/config/application.rb
|
476
|
+
- spec/app/rails_4.1/config/boot.rb
|
477
|
+
- spec/app/rails_4.1/config/database.yml
|
478
|
+
- spec/app/rails_4.1/config/environment.rb
|
479
|
+
- spec/app/rails_4.1/config/environments/development.rb
|
480
|
+
- spec/app/rails_4.1/config/environments/production.rb
|
481
|
+
- spec/app/rails_4.1/config/environments/test.rb
|
482
|
+
- spec/app/rails_4.1/config/initializers/backtrace_silencers.rb
|
483
|
+
- spec/app/rails_4.1/config/initializers/cookies_serializer.rb
|
484
|
+
- spec/app/rails_4.1/config/initializers/filter_parameter_logging.rb
|
485
|
+
- spec/app/rails_4.1/config/initializers/inflections.rb
|
486
|
+
- spec/app/rails_4.1/config/initializers/mime_types.rb
|
487
|
+
- spec/app/rails_4.1/config/initializers/session_store.rb
|
488
|
+
- spec/app/rails_4.1/config/initializers/wrap_parameters.rb
|
489
|
+
- spec/app/rails_4.1/config/locales/en.yml
|
490
|
+
- spec/app/rails_4.1/config/routes.rb
|
491
|
+
- spec/app/rails_4.1/config/secrets.yml
|
492
|
+
- spec/app/rails_4.1/config/settings.yml
|
493
|
+
- spec/app/rails_4.1/db/.keep
|
494
|
+
- spec/app/rails_4.1/public/404.html
|
495
|
+
- spec/app/rails_4.1/public/422.html
|
496
|
+
- spec/app/rails_4.1/public/500.html
|
497
|
+
- spec/app/rails_4.2/Rakefile
|
498
|
+
- spec/app/rails_4.2/app/assets/images/.keep
|
499
|
+
- spec/app/rails_4.2/app/assets/javascripts/application.js
|
500
|
+
- spec/app/rails_4.2/app/assets/stylesheets/application.css
|
501
|
+
- spec/app/rails_4.2/app/controllers/application_controller.rb
|
502
|
+
- spec/app/rails_4.2/app/controllers/concerns/.keep
|
503
|
+
- spec/app/rails_4.2/app/helpers/application_helper.rb
|
504
|
+
- spec/app/rails_4.2/app/mailers/.keep
|
505
|
+
- spec/app/rails_4.2/app/models/.keep
|
506
|
+
- spec/app/rails_4.2/app/models/concerns/.keep
|
507
|
+
- spec/app/rails_4.2/app/views/layouts/application.html.erb
|
508
|
+
- spec/app/rails_4.2/bin/bundle
|
509
|
+
- spec/app/rails_4.2/bin/rails
|
510
|
+
- spec/app/rails_4.2/bin/rake
|
511
|
+
- spec/app/rails_4.2/bin/setup
|
512
|
+
- spec/app/rails_4.2/bin/spring
|
513
|
+
- spec/app/rails_4.2/config.ru
|
514
|
+
- spec/app/rails_4.2/config/application.rb
|
515
|
+
- spec/app/rails_4.2/config/boot.rb
|
516
|
+
- spec/app/rails_4.2/config/database.yml
|
517
|
+
- spec/app/rails_4.2/config/environment.rb
|
518
|
+
- spec/app/rails_4.2/config/environments/development.rb
|
519
|
+
- spec/app/rails_4.2/config/environments/production.rb
|
520
|
+
- spec/app/rails_4.2/config/environments/test.rb
|
521
|
+
- spec/app/rails_4.2/config/initializers/assets.rb
|
522
|
+
- spec/app/rails_4.2/config/initializers/backtrace_silencers.rb
|
523
|
+
- spec/app/rails_4.2/config/initializers/cookies_serializer.rb
|
524
|
+
- spec/app/rails_4.2/config/initializers/filter_parameter_logging.rb
|
525
|
+
- spec/app/rails_4.2/config/initializers/inflections.rb
|
526
|
+
- spec/app/rails_4.2/config/initializers/mime_types.rb
|
527
|
+
- spec/app/rails_4.2/config/initializers/session_store.rb
|
528
|
+
- spec/app/rails_4.2/config/initializers/wrap_parameters.rb
|
529
|
+
- spec/app/rails_4.2/config/locales/en.yml
|
530
|
+
- spec/app/rails_4.2/config/routes.rb
|
531
|
+
- spec/app/rails_4.2/config/secrets.yml
|
532
|
+
- spec/app/rails_4.2/config/settings.yml
|
533
|
+
- spec/app/rails_4.2/db/seeds.rb
|
534
|
+
- spec/app/rails_4.2/public/404.html
|
535
|
+
- spec/app/rails_4.2/public/422.html
|
536
|
+
- spec/app/rails_4.2/public/500.html
|
537
|
+
- spec/app/rails_4.2/public/favicon.ico
|
538
|
+
- spec/app/rails_4.2/public/robots.txt
|
539
|
+
- spec/app/rails_4/Rakefile
|
540
|
+
- spec/app/rails_4/app/assets/javascripts/application.js
|
541
|
+
- spec/app/rails_4/app/assets/stylesheets/application.css
|
542
|
+
- spec/app/rails_4/app/controllers/application_controller.rb
|
543
|
+
- spec/app/rails_4/app/helpers/application_helper.rb
|
544
|
+
- spec/app/rails_4/app/models/.keep
|
545
|
+
- spec/app/rails_4/app/views/layouts/application.html.erb
|
546
|
+
- spec/app/rails_4/bin/bundle
|
547
|
+
- spec/app/rails_4/bin/rails
|
548
|
+
- spec/app/rails_4/bin/rake
|
549
|
+
- spec/app/rails_4/config.ru
|
550
|
+
- spec/app/rails_4/config/application.rb
|
551
|
+
- spec/app/rails_4/config/boot.rb
|
552
|
+
- spec/app/rails_4/config/database.yml
|
553
|
+
- spec/app/rails_4/config/environment.rb
|
554
|
+
- spec/app/rails_4/config/environments/development.rb
|
555
|
+
- spec/app/rails_4/config/environments/production.rb
|
556
|
+
- spec/app/rails_4/config/environments/test.rb
|
557
|
+
- spec/app/rails_4/config/initializers/backtrace_silencers.rb
|
558
|
+
- spec/app/rails_4/config/initializers/filter_parameter_logging.rb
|
559
|
+
- spec/app/rails_4/config/initializers/inflections.rb
|
560
|
+
- spec/app/rails_4/config/initializers/mime_types.rb
|
561
|
+
- spec/app/rails_4/config/initializers/secret_token.rb
|
562
|
+
- spec/app/rails_4/config/initializers/session_store.rb
|
563
|
+
- spec/app/rails_4/config/initializers/wrap_parameters.rb
|
564
|
+
- spec/app/rails_4/config/locales/en.yml
|
565
|
+
- spec/app/rails_4/config/routes.rb
|
566
|
+
- spec/app/rails_4/config/settings.yml
|
567
|
+
- spec/app/rails_4/db/.keep
|
568
|
+
- spec/app/rails_4/public/404.html
|
569
|
+
- spec/app/rails_4/public/422.html
|
570
|
+
- spec/app/rails_4/public/500.html
|
571
|
+
- spec/config_spec.rb
|
572
|
+
- spec/fixtures/bool_override/config1.yml
|
573
|
+
- spec/fixtures/bool_override/config2.yml
|
574
|
+
- spec/fixtures/custom_types/hash.yml
|
575
|
+
- spec/fixtures/deep_merge/config1.yml
|
576
|
+
- spec/fixtures/deep_merge/config2.yml
|
577
|
+
- spec/fixtures/deep_merge2/config1.yml
|
578
|
+
- spec/fixtures/deep_merge2/config2.yml
|
579
|
+
- spec/fixtures/development.yml
|
580
|
+
- spec/fixtures/empty1.yml
|
581
|
+
- spec/fixtures/empty2.yml
|
582
|
+
- spec/fixtures/env/settings.yml
|
583
|
+
- spec/fixtures/malformed.yml
|
584
|
+
- spec/fixtures/reserved_keywords.yml
|
585
|
+
- spec/fixtures/settings.yml
|
586
|
+
- spec/fixtures/settings2.yml
|
587
|
+
- spec/fixtures/with_erb.yml
|
588
|
+
- spec/options_spec.rb
|
589
|
+
- spec/sources/yaml_source_spec.rb
|
590
|
+
- spec/spec_helper.rb
|
591
|
+
- spec/support/rails_config_helper.rb
|
592
|
+
- spec/support/shared_contexts/rake.rb
|
593
|
+
- spec/tasks/db_spec.rb
|