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 +4 -4
- data/gemfiles/activesupport3.2 +1 -0
- data/lib/configs/railtie.rb +2 -2
- data/lib/configs/version.rb +1 -1
- data/test/defaults_test.rb +5 -1
- data/test/test_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0cb8a0af98b77c44d098ee3b9fee751752bedaf
|
4
|
+
data.tar.gz: f3bfc5866fc28430d81abfd07fa99f740142ee79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac77c7e01574889e97b7ed8db84e11b54d4d35f53916cc78a8b98ee0c01bf31a1dde4fb58cfe69ec5b9ebfc1db31b09135802d6dea6c877a57faf6a98da3da78
|
7
|
+
data.tar.gz: 83483782bb7a2be66c2ea649fe22021e2eadf5f5d144f2777bf6df88fffa1f807648d8bad3fd4ebbe3ec5566782055de84cb26797cda953d322af2d5ffb9d8ca
|
data/gemfiles/activesupport3.2
CHANGED
data/lib/configs/railtie.rb
CHANGED
data/lib/configs/version.rb
CHANGED
data/test/defaults_test.rb
CHANGED
@@ -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
|
10
|
+
assert_equal get_environment, Configs.environment
|
7
11
|
end
|
8
12
|
end
|
data/test/test_helper.rb
CHANGED
@@ -4,7 +4,7 @@ Bundler.require(:default, :test)
|
|
4
4
|
|
5
5
|
require 'minitest/autorun'
|
6
6
|
|
7
|
-
class Configs::TestCase < Minitest::
|
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.
|
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:
|
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.
|
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.
|