config_for 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +17 -7
- data/Appraisals +7 -6
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -1
- data/README.md +1 -1
- data/gemfiles/rails_4_1.gemfile +2 -1
- data/gemfiles/{rails_3.gemfile → rails_4_2.gemfile} +3 -2
- data/gemfiles/{rails_4.gemfile → rails_5_0.gemfile} +4 -2
- data/lib/config_for/capistrano.rb +2 -1
- data/lib/config_for/integrations/rails.rb +1 -1
- data/lib/config_for/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5c2884f5b1e98fc73aa62a5383e4e290832956a
|
4
|
+
data.tar.gz: bea99f5f5746915e335e5b3d4636d381d143d80d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0effff4300c862e060b0112ac640d2a51e231d2a54d9ae26b8f607635b13c4a8da358c3eb9fa95df2e55bb91ff3ed11b498263745c720766eb84634007028b0
|
7
|
+
data.tar.gz: 3921be620fbf04b84774902da1984495ff0ac2ca57f1203b385f82e60eb0c4cce4bbf2ea45c5ed3b8acf6517f7bee9c472a9c105faa084206b1cbc4ae74f8b7d
|
data/.travis.yml
CHANGED
@@ -1,13 +1,23 @@
|
|
1
|
+
sudo: false
|
1
2
|
language: ruby
|
2
3
|
gemfile:
|
3
|
-
- gemfiles/
|
4
|
-
- gemfiles/
|
5
|
-
- gemfiles/
|
4
|
+
- gemfiles/rails_4_1.gemfile
|
5
|
+
- gemfiles/rails_4_2.gemfile
|
6
|
+
- gemfiles/rails_5_0.gemfile
|
6
7
|
rvm:
|
7
|
-
- 2.1
|
8
|
-
- 2.
|
9
|
-
- 2.
|
10
|
-
- 1.9.3
|
8
|
+
- 2.3.1
|
9
|
+
- 2.2.5
|
10
|
+
- 2.1.10
|
11
11
|
env:
|
12
12
|
global:
|
13
13
|
secure: SDYF7gJE/x/3rEwL9CxXHRLwTRBHtqtY/djQ+hg98zlvIQoMYmXcteEqiSM85x6LeFMu1pz4hqinKsSZOQ7ftZi46iWqbFPWHEqTaM7676klzH0xvMAG+I9Yo7NEUyA5OPKrWSJ1+9Smm42WggH3tqwMG5tut4zej310VFD5GMY=
|
14
|
+
before_install:
|
15
|
+
- gem update --system 2.6.8
|
16
|
+
- gem install bundler --version=1.13.6
|
17
|
+
- gem cleanup
|
18
|
+
after_script:
|
19
|
+
- bundle exec codeclimate-test-reporter
|
20
|
+
matrix:
|
21
|
+
exclude:
|
22
|
+
- rvm: 2.1.10
|
23
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
data/Appraisals
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
appraise 'rails-
|
2
|
-
gem 'rails', '~>
|
1
|
+
appraise 'rails-4-1' do
|
2
|
+
gem 'rails', '~> 4.1.0'
|
3
3
|
end
|
4
4
|
|
5
|
-
appraise 'rails-4' do
|
6
|
-
gem 'rails', '~> 4.
|
5
|
+
appraise 'rails-4-2' do
|
6
|
+
gem 'rails', '~> 4.2.0'
|
7
7
|
end
|
8
8
|
|
9
|
-
appraise 'rails-
|
10
|
-
gem 'rails', '~>
|
9
|
+
appraise 'rails-5-0' do
|
10
|
+
gem 'rails', '~> 5.0.0'
|
11
|
+
gem 'sinatra', '~> 2.0.0.beta', '< 2.1'
|
11
12
|
end
|
data/CHANGELOG.md
CHANGED
@@ -3,8 +3,13 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
## master - unreleased
|
5
5
|
### Changed
|
6
|
+
|
7
|
+
## 0.3.0 - 2016-11-09
|
8
|
+
### Changed
|
6
9
|
- Introduced `ConfigFor.load_config!` that raises exception when environment is missing
|
7
10
|
- Both integrations will raise exception when environment is missing
|
11
|
+
- Require Ruby >= 2.1 and test Rails >= 4.1
|
12
|
+
- Override Rails `config_for` method
|
8
13
|
|
9
14
|
## 0.1.2 - 2014-10-29
|
10
15
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@ It offers integrations with [Rails](#rails) and [Sinatra](#sinatra).
|
|
6
6
|
|
7
7
|
For generating and uploading configs it [Capistrano Task](#capistrano).
|
8
8
|
|
9
|
-
It is
|
9
|
+
It is inspired by [config_for](https://github.com/rails/rails/pull/16129) in Rails 4.2. If you are using Rails 4.2, you don't need to use the Rails integration, but you might want to use the [Capistrano Task](#capistrano).
|
10
10
|
|
11
11
|
# How to use it?
|
12
12
|
|
data/gemfiles/rails_4_1.gemfile
CHANGED
@@ -2,10 +2,11 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "rails", "~>
|
5
|
+
gem "rails", "~> 4.2.0"
|
6
6
|
|
7
7
|
group :test do
|
8
|
-
gem "codeclimate-test-reporter"
|
8
|
+
gem "codeclimate-test-reporter"
|
9
|
+
gem "simplecov", :require => false
|
9
10
|
gem "appraisal"
|
10
11
|
end
|
11
12
|
|
@@ -2,10 +2,12 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "rails", "~>
|
5
|
+
gem "rails", "~> 5.0.0"
|
6
|
+
gem "sinatra", "~> 2.0.0.beta", "< 2.1"
|
6
7
|
|
7
8
|
group :test do
|
8
|
-
gem "codeclimate-test-reporter"
|
9
|
+
gem "codeclimate-test-reporter"
|
10
|
+
gem "simplecov", :require => false
|
9
11
|
gem "appraisal"
|
10
12
|
end
|
11
13
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'rake/tasklib'
|
2
2
|
require 'pathname'
|
3
3
|
require 'tempfile'
|
4
|
+
require 'sshkit'
|
4
5
|
require 'capistrano/dsl'
|
5
6
|
require 'active_support/core_ext/hash/keys'
|
6
7
|
require 'yaml'
|
@@ -115,7 +116,7 @@ module ConfigFor
|
|
115
116
|
|
116
117
|
@config = ConfigFor::Capistrano::UploadFileTask.new(path, roles: @roles, &method(:generate))
|
117
118
|
|
118
|
-
desc "Generate #{name} uploader" unless ::Rake.application.
|
119
|
+
desc "Generate #{name} uploader" unless ::Rake.application.last_description
|
119
120
|
define
|
120
121
|
end
|
121
122
|
|
data/lib/config_for/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: config_for
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Cichra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -160,9 +160,9 @@ files:
|
|
160
160
|
- README.md
|
161
161
|
- Rakefile
|
162
162
|
- config_for.gemspec
|
163
|
-
- gemfiles/rails_3.gemfile
|
164
|
-
- gemfiles/rails_4.gemfile
|
165
163
|
- gemfiles/rails_4_1.gemfile
|
164
|
+
- gemfiles/rails_4_2.gemfile
|
165
|
+
- gemfiles/rails_5_0.gemfile
|
166
166
|
- lib/config_for.rb
|
167
167
|
- lib/config_for/capistrano.rb
|
168
168
|
- lib/config_for/config.rb
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|
200
200
|
rubyforge_project:
|
201
|
-
rubygems_version: 2.
|
201
|
+
rubygems_version: 2.6.8
|
202
202
|
signing_key:
|
203
203
|
specification_version: 4
|
204
204
|
summary: Provides YAML tools for app configuration.
|
@@ -209,4 +209,3 @@ test_files:
|
|
209
209
|
- spec/rails_spec.rb
|
210
210
|
- spec/sinatra_spec.rb
|
211
211
|
- spec/spec_helper.rb
|
212
|
-
has_rdoc:
|