configs 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 095e7101e0ca8fd425061cc86cb5f09380c2c1ff
4
- data.tar.gz: d1d59668f5f92f32d8dcb026519313388dce08fe
3
+ metadata.gz: f0cb8a0af98b77c44d098ee3b9fee751752bedaf
4
+ data.tar.gz: f3bfc5866fc28430d81abfd07fa99f740142ee79
5
5
  SHA512:
6
- metadata.gz: e753c6c199f991a9e53f53c2542ad4ec30bc23624787f1ddd780cf15c9087ed1073571551af737aad27d93bafdaaf1dee12558949ece28a9dcbf8036ba4eaee9
7
- data.tar.gz: c7f90133b87901729842e3fff395321737a724d1aeaf1166a88a1bf1383cf176a5138ba50167673d9a0ca122e25ca2b1297fc3b8a9bc8b8bdad5ec30dea51cdf
6
+ metadata.gz: ac77c7e01574889e97b7ed8db84e11b54d4d35f53916cc78a8b98ee0c01bf31a1dde4fb58cfe69ec5b9ebfc1db31b09135802d6dea6c877a57faf6a98da3da78
7
+ data.tar.gz: 83483782bb7a2be66c2ea649fe22021e2eadf5f5d144f2777bf6df88fffa1f807648d8bad3fd4ebbe3ec5566782055de84cb26797cda953d322af2d5ffb9d8ca
@@ -2,3 +2,4 @@ source "https://rubygems.org"
2
2
  gemspec path: '../'
3
3
 
4
4
  gem 'activesupport', '~> 3.2.0'
5
+ gem 'minitest', '~> 4.7.5'
@@ -1,8 +1,8 @@
1
1
  module Configs
2
2
  class Railtie < Rails::Railtie
3
- initializer 'configs.rails_settings' do
3
+ config.before_configuration do
4
4
  Configs.config_dir = Rails.root.join('config')
5
5
  Configs.environment = Rails.env
6
6
  end
7
7
  end
8
- end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Configs
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
@@ -1,8 +1,12 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/test_helper')
2
2
 
3
3
  class DefaultsTest < Configs::TestCase
4
+ def get_environment
5
+ ENV['RACK_ENV'] ? ENV['RACK_ENV'] : 'default'
6
+ end
7
+
4
8
  should "have sane defaults" do
5
9
  assert_equal Pathname.new('./configs'), Configs.config_dir
6
- assert_equal 'default', Configs.environment
10
+ assert_equal get_environment, Configs.environment
7
11
  end
8
12
  end
@@ -4,7 +4,7 @@ Bundler.require(:default, :test)
4
4
 
5
5
  require 'minitest/autorun'
6
6
 
7
- class Configs::TestCase < Minitest::Test
7
+ class Configs::TestCase < Minitest::Unit::TestCase
8
8
  def self.should(name, &block) # very simple syntax
9
9
  define_method("test_should_#{name.gsub(/[ -\/]/, '_').gsub(/[^a-z0-9_]/i, '_')}", &block)
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lance Ivy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.2.2
86
+ rubygems_version: 2.4.8
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Easy (easier?) management of config/*.yml files.