config_for 0.2.1 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4850c2ab8e9a71441f135fd051f6e881c60ca19e
4
- data.tar.gz: 1acc6f6db0874c566c3320fc47a9a0e278bc4047
3
+ metadata.gz: c5c2884f5b1e98fc73aa62a5383e4e290832956a
4
+ data.tar.gz: bea99f5f5746915e335e5b3d4636d381d143d80d
5
5
  SHA512:
6
- metadata.gz: c4372aa9f7ed61367d6282037b440b0863658fb1b7c407dddf39a65b1f29de34077f0c27e36b00ab14252dd01fca6fb46c6b236b9e2d0b1c04a367d3ec0d98fb
7
- data.tar.gz: 9af6528f541c9f88e467be6cb18a58aa89a60a09545e015b9970ee074d8c1b7de94485c2870301d26056425ce2d4fc4da896f0cc3ff4ca430693c141d203df66
6
+ metadata.gz: d0effff4300c862e060b0112ac640d2a51e231d2a54d9ae26b8f607635b13c4a8da358c3eb9fa95df2e55bb91ff3ed11b498263745c720766eb84634007028b0
7
+ data.tar.gz: 3921be620fbf04b84774902da1984495ff0ac2ca57f1203b385f82e60eb0c4cce4bbf2ea45c5ed3b8acf6517f7bee9c472a9c105faa084206b1cbc4ae74f8b7d
@@ -1,13 +1,23 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  gemfile:
3
- - gemfiles/rails_3.gemfile
4
- - gemfiles/rails_4.gemfile
5
- - gemfiles/rails_4_1.gemfile
4
+ - gemfiles/rails_4_1.gemfile
5
+ - gemfiles/rails_4_2.gemfile
6
+ - gemfiles/rails_5_0.gemfile
6
7
  rvm:
7
- - 2.1.3
8
- - 2.1.2
9
- - 2.0.0
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-3' do
2
- gem 'rails', '~> 3.2.14'
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.0.0'
5
+ appraise 'rails-4-2' do
6
+ gem 'rails', '~> 4.2.0'
7
7
  end
8
8
 
9
- appraise 'rails-4-1' do
10
- gem 'rails', '~> 4.1.0'
9
+ appraise 'rails-5-0' do
10
+ gem 'rails', '~> 5.0.0'
11
+ gem 'sinatra', '~> 2.0.0.beta', '< 2.1'
11
12
  end
@@ -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
@@ -4,7 +4,8 @@ source 'https://rubygems.org'
4
4
  gemspec development_group: :test
5
5
 
6
6
  group :test do
7
- gem 'codeclimate-test-reporter', require: false
7
+ gem 'codeclimate-test-reporter'
8
+ gem 'simplecov', require: false
8
9
  gem 'appraisal'
9
10
  end
10
11
 
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 inspied 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).
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
 
@@ -5,7 +5,8 @@ source "https://rubygems.org"
5
5
  gem "rails", "~> 4.1.0"
6
6
 
7
7
  group :test do
8
- gem "codeclimate-test-reporter", :require => false
8
+ gem "codeclimate-test-reporter"
9
+ gem "simplecov", :require => false
9
10
  gem "appraisal"
10
11
  end
11
12
 
@@ -2,10 +2,11 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 3.2.14"
5
+ gem "rails", "~> 4.2.0"
6
6
 
7
7
  group :test do
8
- gem "codeclimate-test-reporter", :require => false
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", "~> 4.0.0"
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", :require => false
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.last_comment
119
+ desc "Generate #{name} uploader" unless ::Rake.application.last_description
119
120
  define
120
121
  end
121
122
 
@@ -1,3 +1,3 @@
1
1
  ::Rails::Application.class_eval do
2
- include ::ConfigFor::Rails
2
+ prepend ::ConfigFor::Rails
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module ConfigFor
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -1,5 +1,5 @@
1
- require 'codeclimate-test-reporter'
2
- CodeClimate::TestReporter.start
1
+ require 'simplecov'
2
+ SimpleCov.start
3
3
 
4
4
  require 'config_for'
5
5
 
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.2.1
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: 2014-11-13 00:00:00.000000000 Z
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.2.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: