drtom_rails_config 0.5.0.beta1
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 +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/Appraisals +11 -0
- data/CHANGELOG.md +24 -0
- data/Gemfile +6 -0
- data/LICENSE.md +27 -0
- data/README.md +317 -0
- data/Rakefile +53 -0
- data/gemfiles/rails_3.gemfile +7 -0
- data/gemfiles/rails_4.1.gemfile +7 -0
- data/gemfiles/rails_4.gemfile +7 -0
- data/lib/generators/rails_config/install_generator.rb +32 -0
- data/lib/generators/rails_config/templates/rails_config.rb +3 -0
- data/lib/generators/rails_config/templates/settings.local.yml +0 -0
- data/lib/generators/rails_config/templates/settings.yml +0 -0
- data/lib/generators/rails_config/templates/settings/development.yml +0 -0
- data/lib/generators/rails_config/templates/settings/production.yml +0 -0
- data/lib/generators/rails_config/templates/settings/test.yml +0 -0
- data/lib/rails_config.rb +64 -0
- data/lib/rails_config/deep_merge.rb +32 -0
- data/lib/rails_config/engine.rb +5 -0
- data/lib/rails_config/integration/rails.rb +34 -0
- data/lib/rails_config/integration/sinatra.rb +26 -0
- data/lib/rails_config/options.rb +118 -0
- data/lib/rails_config/rack/reloader.rb +15 -0
- data/lib/rails_config/railtie.rb +9 -0
- data/lib/rails_config/sources/yaml_source.rb +26 -0
- data/lib/rails_config/tasks.rb +59 -0
- data/lib/rails_config/tasks/heroku.rake +8 -0
- data/lib/rails_config/version.rb +3 -0
- data/rails_config.gemspec +40 -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/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/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/settings.yml +21 -0
- data/spec/fixtures/settings2.yml +1 -0
- data/spec/fixtures/with_erb.yml +4 -0
- data/spec/rails_config_helper.rb +22 -0
- data/spec/rails_config_spec.rb +311 -0
- data/spec/sources/yaml_source_spec.rb +77 -0
- data/spec/spec_helper.rb +47 -0
- data/spec/support/shared_contexts/rake.rb +8 -0
- data/spec/tasks/db_spec.rb +9 -0
- metadata +476 -0
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module RailsConfig::Sources
|
4
|
+
describe YAMLSource do
|
5
|
+
it "should take a path as initializer" do
|
6
|
+
source = YAMLSource.new "somepath"
|
7
|
+
source.path.should == "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
|
+
results["size"].should == 2
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should properly read nested settings" do
|
21
|
+
results = source.load
|
22
|
+
results["section"]["size"].should == 3
|
23
|
+
results["section"]["servers"].should be_an(Array)
|
24
|
+
results["section"]["servers"].size.should == 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
|
+
results["computed"].should == 6
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should properly evaluate the nested erb settings" do
|
39
|
+
results = source.load
|
40
|
+
results["section"]["computed1"].should == 1
|
41
|
+
results["section"]["computed2"].should == 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
|
+
results.should == {}
|
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
|
+
results.should == {}
|
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,47 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= 'test'
|
2
|
+
|
3
|
+
##
|
4
|
+
# Load RailsConfig rspec helpers
|
5
|
+
#
|
6
|
+
require 'rails_config_helper'
|
7
|
+
|
8
|
+
##
|
9
|
+
# Load Rails dummy application based on gemfile name substituted by Appraisal
|
10
|
+
#
|
11
|
+
if ENV["APPRAISAL_INITIALIZED"] || ENV["TRAVIS"]
|
12
|
+
app_name = Pathname.new(ENV['BUNDLE_GEMFILE']).basename.sub('.gemfile', '')
|
13
|
+
else
|
14
|
+
app_name = 'rails_3'
|
15
|
+
end
|
16
|
+
|
17
|
+
require File.expand_path("../../spec/app/#{app_name}/config/environment", __FILE__)
|
18
|
+
|
19
|
+
APP_RAKEFILE = File.expand_path("../../spec/app/#{app_name}/Rakefile", __FILE__)
|
20
|
+
|
21
|
+
##
|
22
|
+
# Load Rspec
|
23
|
+
#
|
24
|
+
require 'rspec/rails'
|
25
|
+
|
26
|
+
# Configure
|
27
|
+
RSpec.configure do |config|
|
28
|
+
config.fixture_path = File.join(File.dirname(__FILE__), "/fixtures")
|
29
|
+
end
|
30
|
+
|
31
|
+
# Load Rspec supporting files
|
32
|
+
Dir['./spec/support/**/*.rb'].sort.each {|f| require f}
|
33
|
+
|
34
|
+
|
35
|
+
##
|
36
|
+
# Print some debug info
|
37
|
+
#
|
38
|
+
puts
|
39
|
+
puts "Gemfile: #{ENV['BUNDLE_GEMFILE']}"
|
40
|
+
puts "Rails version:"
|
41
|
+
|
42
|
+
Gem.loaded_specs.each{|name, spec|
|
43
|
+
puts "\t#{name}-#{spec.version}" if %w{rails activesupport sqlite3}.include?(name)
|
44
|
+
}
|
45
|
+
|
46
|
+
puts
|
47
|
+
|
metadata
ADDED
@@ -0,0 +1,476 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: drtom_rails_config
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0.beta1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jacques Crocker
|
8
|
+
- Fred Wu
|
9
|
+
- Piotr Kuczynski
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2016-03-02 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: bundler
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '1.5'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.5'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rake
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rdoc
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '3.4'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '3.4'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: pry
|
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: appraisal
|
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: rails
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 3.2.17
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 3.2.17
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rspec
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '2.14'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '2.14'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rspec-rails
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '2.14'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '2.14'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: sqlite3
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: rubocop
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
type: :development
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
description: Easy to use Settings helper that loads its data in from config/settings.yml.
|
170
|
+
Handles adding multiple sources, and easy reloading.
|
171
|
+
email:
|
172
|
+
- railsjedi@gmail.com
|
173
|
+
- ifredwu@gmail.com
|
174
|
+
- piotr.kuczynski@gmail.com
|
175
|
+
executables: []
|
176
|
+
extensions: []
|
177
|
+
extra_rdoc_files:
|
178
|
+
- README.md
|
179
|
+
files:
|
180
|
+
- ".gitignore"
|
181
|
+
- ".rspec"
|
182
|
+
- ".ruby-gemset"
|
183
|
+
- ".ruby-version"
|
184
|
+
- ".travis.yml"
|
185
|
+
- Appraisals
|
186
|
+
- CHANGELOG.md
|
187
|
+
- Gemfile
|
188
|
+
- LICENSE.md
|
189
|
+
- README.md
|
190
|
+
- Rakefile
|
191
|
+
- gemfiles/rails_3.gemfile
|
192
|
+
- gemfiles/rails_4.1.gemfile
|
193
|
+
- gemfiles/rails_4.gemfile
|
194
|
+
- lib/generators/rails_config/install_generator.rb
|
195
|
+
- lib/generators/rails_config/templates/rails_config.rb
|
196
|
+
- lib/generators/rails_config/templates/settings.local.yml
|
197
|
+
- lib/generators/rails_config/templates/settings.yml
|
198
|
+
- lib/generators/rails_config/templates/settings/development.yml
|
199
|
+
- lib/generators/rails_config/templates/settings/production.yml
|
200
|
+
- lib/generators/rails_config/templates/settings/test.yml
|
201
|
+
- lib/rails_config.rb
|
202
|
+
- lib/rails_config/deep_merge.rb
|
203
|
+
- lib/rails_config/engine.rb
|
204
|
+
- lib/rails_config/integration/rails.rb
|
205
|
+
- lib/rails_config/integration/sinatra.rb
|
206
|
+
- lib/rails_config/options.rb
|
207
|
+
- lib/rails_config/rack/reloader.rb
|
208
|
+
- lib/rails_config/railtie.rb
|
209
|
+
- lib/rails_config/sources/yaml_source.rb
|
210
|
+
- lib/rails_config/tasks.rb
|
211
|
+
- lib/rails_config/tasks/heroku.rake
|
212
|
+
- lib/rails_config/version.rb
|
213
|
+
- rails_config.gemspec
|
214
|
+
- spec/app/rails_3/Rakefile
|
215
|
+
- spec/app/rails_3/app/assets/javascripts/application.js
|
216
|
+
- spec/app/rails_3/app/assets/stylesheets/application.css
|
217
|
+
- spec/app/rails_3/app/controllers/application_controller.rb
|
218
|
+
- spec/app/rails_3/app/helpers/application_helper.rb
|
219
|
+
- spec/app/rails_3/app/models/.gitkeep
|
220
|
+
- spec/app/rails_3/app/views/layouts/application.html.erb
|
221
|
+
- spec/app/rails_3/bin/bundle
|
222
|
+
- spec/app/rails_3/bin/rails
|
223
|
+
- spec/app/rails_3/bin/rake
|
224
|
+
- spec/app/rails_3/config.ru
|
225
|
+
- spec/app/rails_3/config/application.rb
|
226
|
+
- spec/app/rails_3/config/boot.rb
|
227
|
+
- spec/app/rails_3/config/database.yml
|
228
|
+
- spec/app/rails_3/config/environment.rb
|
229
|
+
- spec/app/rails_3/config/environments/development.rb
|
230
|
+
- spec/app/rails_3/config/environments/production.rb
|
231
|
+
- spec/app/rails_3/config/environments/test.rb
|
232
|
+
- spec/app/rails_3/config/initializers/backtrace_silencers.rb
|
233
|
+
- spec/app/rails_3/config/initializers/inflections.rb
|
234
|
+
- spec/app/rails_3/config/initializers/mime_types.rb
|
235
|
+
- spec/app/rails_3/config/initializers/secret_token.rb
|
236
|
+
- spec/app/rails_3/config/initializers/session_store.rb
|
237
|
+
- spec/app/rails_3/config/initializers/wrap_parameters.rb
|
238
|
+
- spec/app/rails_3/config/locales/en.yml
|
239
|
+
- spec/app/rails_3/config/routes.rb
|
240
|
+
- spec/app/rails_3/config/settings.yml
|
241
|
+
- spec/app/rails_3/db/.gitkeep
|
242
|
+
- spec/app/rails_3/public/404.html
|
243
|
+
- spec/app/rails_3/public/422.html
|
244
|
+
- spec/app/rails_3/public/500.html
|
245
|
+
- spec/app/rails_3/script/rails
|
246
|
+
- spec/app/rails_4.1/Rakefile
|
247
|
+
- spec/app/rails_4.1/app/assets/javascripts/application.js
|
248
|
+
- spec/app/rails_4.1/app/assets/stylesheets/application.css
|
249
|
+
- spec/app/rails_4.1/app/controllers/application_controller.rb
|
250
|
+
- spec/app/rails_4.1/app/helpers/application_helper.rb
|
251
|
+
- spec/app/rails_4.1/app/models/.keep
|
252
|
+
- spec/app/rails_4.1/app/views/layouts/application.html.erb
|
253
|
+
- spec/app/rails_4.1/bin/bundle
|
254
|
+
- spec/app/rails_4.1/bin/rails
|
255
|
+
- spec/app/rails_4.1/bin/rake
|
256
|
+
- spec/app/rails_4.1/config.ru
|
257
|
+
- spec/app/rails_4.1/config/application.rb
|
258
|
+
- spec/app/rails_4.1/config/boot.rb
|
259
|
+
- spec/app/rails_4.1/config/database.yml
|
260
|
+
- spec/app/rails_4.1/config/environment.rb
|
261
|
+
- spec/app/rails_4.1/config/environments/development.rb
|
262
|
+
- spec/app/rails_4.1/config/environments/production.rb
|
263
|
+
- spec/app/rails_4.1/config/environments/test.rb
|
264
|
+
- spec/app/rails_4.1/config/initializers/backtrace_silencers.rb
|
265
|
+
- spec/app/rails_4.1/config/initializers/cookies_serializer.rb
|
266
|
+
- spec/app/rails_4.1/config/initializers/filter_parameter_logging.rb
|
267
|
+
- spec/app/rails_4.1/config/initializers/inflections.rb
|
268
|
+
- spec/app/rails_4.1/config/initializers/mime_types.rb
|
269
|
+
- spec/app/rails_4.1/config/initializers/session_store.rb
|
270
|
+
- spec/app/rails_4.1/config/initializers/wrap_parameters.rb
|
271
|
+
- spec/app/rails_4.1/config/locales/en.yml
|
272
|
+
- spec/app/rails_4.1/config/routes.rb
|
273
|
+
- spec/app/rails_4.1/config/secrets.yml
|
274
|
+
- spec/app/rails_4.1/config/settings.yml
|
275
|
+
- spec/app/rails_4.1/db/.keep
|
276
|
+
- spec/app/rails_4.1/public/404.html
|
277
|
+
- spec/app/rails_4.1/public/422.html
|
278
|
+
- spec/app/rails_4.1/public/500.html
|
279
|
+
- spec/app/rails_4/Rakefile
|
280
|
+
- spec/app/rails_4/app/assets/javascripts/application.js
|
281
|
+
- spec/app/rails_4/app/assets/stylesheets/application.css
|
282
|
+
- spec/app/rails_4/app/controllers/application_controller.rb
|
283
|
+
- spec/app/rails_4/app/helpers/application_helper.rb
|
284
|
+
- spec/app/rails_4/app/models/.keep
|
285
|
+
- spec/app/rails_4/app/views/layouts/application.html.erb
|
286
|
+
- spec/app/rails_4/bin/bundle
|
287
|
+
- spec/app/rails_4/bin/rails
|
288
|
+
- spec/app/rails_4/bin/rake
|
289
|
+
- spec/app/rails_4/config.ru
|
290
|
+
- spec/app/rails_4/config/application.rb
|
291
|
+
- spec/app/rails_4/config/boot.rb
|
292
|
+
- spec/app/rails_4/config/database.yml
|
293
|
+
- spec/app/rails_4/config/environment.rb
|
294
|
+
- spec/app/rails_4/config/environments/development.rb
|
295
|
+
- spec/app/rails_4/config/environments/production.rb
|
296
|
+
- spec/app/rails_4/config/environments/test.rb
|
297
|
+
- spec/app/rails_4/config/initializers/backtrace_silencers.rb
|
298
|
+
- spec/app/rails_4/config/initializers/filter_parameter_logging.rb
|
299
|
+
- spec/app/rails_4/config/initializers/inflections.rb
|
300
|
+
- spec/app/rails_4/config/initializers/mime_types.rb
|
301
|
+
- spec/app/rails_4/config/initializers/secret_token.rb
|
302
|
+
- spec/app/rails_4/config/initializers/session_store.rb
|
303
|
+
- spec/app/rails_4/config/initializers/wrap_parameters.rb
|
304
|
+
- spec/app/rails_4/config/locales/en.yml
|
305
|
+
- spec/app/rails_4/config/routes.rb
|
306
|
+
- spec/app/rails_4/config/settings.yml
|
307
|
+
- spec/app/rails_4/db/.keep
|
308
|
+
- spec/app/rails_4/public/404.html
|
309
|
+
- spec/app/rails_4/public/422.html
|
310
|
+
- spec/app/rails_4/public/500.html
|
311
|
+
- spec/fixtures/bool_override/config1.yml
|
312
|
+
- spec/fixtures/bool_override/config2.yml
|
313
|
+
- spec/fixtures/custom_types/hash.yml
|
314
|
+
- spec/fixtures/deep_merge/config1.yml
|
315
|
+
- spec/fixtures/deep_merge/config2.yml
|
316
|
+
- spec/fixtures/deep_merge2/config1.yml
|
317
|
+
- spec/fixtures/deep_merge2/config2.yml
|
318
|
+
- spec/fixtures/development.yml
|
319
|
+
- spec/fixtures/empty1.yml
|
320
|
+
- spec/fixtures/empty2.yml
|
321
|
+
- spec/fixtures/env/settings.yml
|
322
|
+
- spec/fixtures/malformed.yml
|
323
|
+
- spec/fixtures/settings.yml
|
324
|
+
- spec/fixtures/settings2.yml
|
325
|
+
- spec/fixtures/with_erb.yml
|
326
|
+
- spec/rails_config_helper.rb
|
327
|
+
- spec/rails_config_spec.rb
|
328
|
+
- spec/sources/yaml_source_spec.rb
|
329
|
+
- spec/spec_helper.rb
|
330
|
+
- spec/support/shared_contexts/rake.rb
|
331
|
+
- spec/tasks/db_spec.rb
|
332
|
+
homepage: http://github.com/railsjedi/rails_config
|
333
|
+
licenses:
|
334
|
+
- MIT
|
335
|
+
metadata: {}
|
336
|
+
post_install_message:
|
337
|
+
rdoc_options:
|
338
|
+
- "--charset=UTF-8"
|
339
|
+
require_paths:
|
340
|
+
- lib
|
341
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
342
|
+
requirements:
|
343
|
+
- - ">="
|
344
|
+
- !ruby/object:Gem::Version
|
345
|
+
version: '0'
|
346
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
347
|
+
requirements:
|
348
|
+
- - ">"
|
349
|
+
- !ruby/object:Gem::Version
|
350
|
+
version: 1.3.1
|
351
|
+
requirements: []
|
352
|
+
rubyforge_project:
|
353
|
+
rubygems_version: 2.4.5.1
|
354
|
+
signing_key:
|
355
|
+
specification_version: 4
|
356
|
+
summary: Provides a Settings helper for Rails that reads from config/settings.yml
|
357
|
+
test_files:
|
358
|
+
- spec/app/rails_3/Rakefile
|
359
|
+
- spec/app/rails_3/app/assets/javascripts/application.js
|
360
|
+
- spec/app/rails_3/app/assets/stylesheets/application.css
|
361
|
+
- spec/app/rails_3/app/controllers/application_controller.rb
|
362
|
+
- spec/app/rails_3/app/helpers/application_helper.rb
|
363
|
+
- spec/app/rails_3/app/models/.gitkeep
|
364
|
+
- spec/app/rails_3/app/views/layouts/application.html.erb
|
365
|
+
- spec/app/rails_3/bin/bundle
|
366
|
+
- spec/app/rails_3/bin/rails
|
367
|
+
- spec/app/rails_3/bin/rake
|
368
|
+
- spec/app/rails_3/config.ru
|
369
|
+
- spec/app/rails_3/config/application.rb
|
370
|
+
- spec/app/rails_3/config/boot.rb
|
371
|
+
- spec/app/rails_3/config/database.yml
|
372
|
+
- spec/app/rails_3/config/environment.rb
|
373
|
+
- spec/app/rails_3/config/environments/development.rb
|
374
|
+
- spec/app/rails_3/config/environments/production.rb
|
375
|
+
- spec/app/rails_3/config/environments/test.rb
|
376
|
+
- spec/app/rails_3/config/initializers/backtrace_silencers.rb
|
377
|
+
- spec/app/rails_3/config/initializers/inflections.rb
|
378
|
+
- spec/app/rails_3/config/initializers/mime_types.rb
|
379
|
+
- spec/app/rails_3/config/initializers/secret_token.rb
|
380
|
+
- spec/app/rails_3/config/initializers/session_store.rb
|
381
|
+
- spec/app/rails_3/config/initializers/wrap_parameters.rb
|
382
|
+
- spec/app/rails_3/config/locales/en.yml
|
383
|
+
- spec/app/rails_3/config/routes.rb
|
384
|
+
- spec/app/rails_3/config/settings.yml
|
385
|
+
- spec/app/rails_3/db/.gitkeep
|
386
|
+
- spec/app/rails_3/public/404.html
|
387
|
+
- spec/app/rails_3/public/422.html
|
388
|
+
- spec/app/rails_3/public/500.html
|
389
|
+
- spec/app/rails_3/script/rails
|
390
|
+
- spec/app/rails_4.1/Rakefile
|
391
|
+
- spec/app/rails_4.1/app/assets/javascripts/application.js
|
392
|
+
- spec/app/rails_4.1/app/assets/stylesheets/application.css
|
393
|
+
- spec/app/rails_4.1/app/controllers/application_controller.rb
|
394
|
+
- spec/app/rails_4.1/app/helpers/application_helper.rb
|
395
|
+
- spec/app/rails_4.1/app/models/.keep
|
396
|
+
- spec/app/rails_4.1/app/views/layouts/application.html.erb
|
397
|
+
- spec/app/rails_4.1/bin/bundle
|
398
|
+
- spec/app/rails_4.1/bin/rails
|
399
|
+
- spec/app/rails_4.1/bin/rake
|
400
|
+
- spec/app/rails_4.1/config.ru
|
401
|
+
- spec/app/rails_4.1/config/application.rb
|
402
|
+
- spec/app/rails_4.1/config/boot.rb
|
403
|
+
- spec/app/rails_4.1/config/database.yml
|
404
|
+
- spec/app/rails_4.1/config/environment.rb
|
405
|
+
- spec/app/rails_4.1/config/environments/development.rb
|
406
|
+
- spec/app/rails_4.1/config/environments/production.rb
|
407
|
+
- spec/app/rails_4.1/config/environments/test.rb
|
408
|
+
- spec/app/rails_4.1/config/initializers/backtrace_silencers.rb
|
409
|
+
- spec/app/rails_4.1/config/initializers/cookies_serializer.rb
|
410
|
+
- spec/app/rails_4.1/config/initializers/filter_parameter_logging.rb
|
411
|
+
- spec/app/rails_4.1/config/initializers/inflections.rb
|
412
|
+
- spec/app/rails_4.1/config/initializers/mime_types.rb
|
413
|
+
- spec/app/rails_4.1/config/initializers/session_store.rb
|
414
|
+
- spec/app/rails_4.1/config/initializers/wrap_parameters.rb
|
415
|
+
- spec/app/rails_4.1/config/locales/en.yml
|
416
|
+
- spec/app/rails_4.1/config/routes.rb
|
417
|
+
- spec/app/rails_4.1/config/secrets.yml
|
418
|
+
- spec/app/rails_4.1/config/settings.yml
|
419
|
+
- spec/app/rails_4.1/db/.keep
|
420
|
+
- spec/app/rails_4.1/public/404.html
|
421
|
+
- spec/app/rails_4.1/public/422.html
|
422
|
+
- spec/app/rails_4.1/public/500.html
|
423
|
+
- spec/app/rails_4/Rakefile
|
424
|
+
- spec/app/rails_4/app/assets/javascripts/application.js
|
425
|
+
- spec/app/rails_4/app/assets/stylesheets/application.css
|
426
|
+
- spec/app/rails_4/app/controllers/application_controller.rb
|
427
|
+
- spec/app/rails_4/app/helpers/application_helper.rb
|
428
|
+
- spec/app/rails_4/app/models/.keep
|
429
|
+
- spec/app/rails_4/app/views/layouts/application.html.erb
|
430
|
+
- spec/app/rails_4/bin/bundle
|
431
|
+
- spec/app/rails_4/bin/rails
|
432
|
+
- spec/app/rails_4/bin/rake
|
433
|
+
- spec/app/rails_4/config.ru
|
434
|
+
- spec/app/rails_4/config/application.rb
|
435
|
+
- spec/app/rails_4/config/boot.rb
|
436
|
+
- spec/app/rails_4/config/database.yml
|
437
|
+
- spec/app/rails_4/config/environment.rb
|
438
|
+
- spec/app/rails_4/config/environments/development.rb
|
439
|
+
- spec/app/rails_4/config/environments/production.rb
|
440
|
+
- spec/app/rails_4/config/environments/test.rb
|
441
|
+
- spec/app/rails_4/config/initializers/backtrace_silencers.rb
|
442
|
+
- spec/app/rails_4/config/initializers/filter_parameter_logging.rb
|
443
|
+
- spec/app/rails_4/config/initializers/inflections.rb
|
444
|
+
- spec/app/rails_4/config/initializers/mime_types.rb
|
445
|
+
- spec/app/rails_4/config/initializers/secret_token.rb
|
446
|
+
- spec/app/rails_4/config/initializers/session_store.rb
|
447
|
+
- spec/app/rails_4/config/initializers/wrap_parameters.rb
|
448
|
+
- spec/app/rails_4/config/locales/en.yml
|
449
|
+
- spec/app/rails_4/config/routes.rb
|
450
|
+
- spec/app/rails_4/config/settings.yml
|
451
|
+
- spec/app/rails_4/db/.keep
|
452
|
+
- spec/app/rails_4/public/404.html
|
453
|
+
- spec/app/rails_4/public/422.html
|
454
|
+
- spec/app/rails_4/public/500.html
|
455
|
+
- spec/fixtures/bool_override/config1.yml
|
456
|
+
- spec/fixtures/bool_override/config2.yml
|
457
|
+
- spec/fixtures/custom_types/hash.yml
|
458
|
+
- spec/fixtures/deep_merge/config1.yml
|
459
|
+
- spec/fixtures/deep_merge/config2.yml
|
460
|
+
- spec/fixtures/deep_merge2/config1.yml
|
461
|
+
- spec/fixtures/deep_merge2/config2.yml
|
462
|
+
- spec/fixtures/development.yml
|
463
|
+
- spec/fixtures/empty1.yml
|
464
|
+
- spec/fixtures/empty2.yml
|
465
|
+
- spec/fixtures/env/settings.yml
|
466
|
+
- spec/fixtures/malformed.yml
|
467
|
+
- spec/fixtures/settings.yml
|
468
|
+
- spec/fixtures/settings2.yml
|
469
|
+
- spec/fixtures/with_erb.yml
|
470
|
+
- spec/rails_config_helper.rb
|
471
|
+
- spec/rails_config_spec.rb
|
472
|
+
- spec/sources/yaml_source_spec.rb
|
473
|
+
- spec/spec_helper.rb
|
474
|
+
- spec/support/shared_contexts/rake.rb
|
475
|
+
- spec/tasks/db_spec.rb
|
476
|
+
has_rdoc:
|