armoire 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/armoire.rb +6 -6
- data/lib/armoire/init.rb +2 -3
- data/lib/armoire/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05d7cdf7b616d5ef54bc5d511c3712011e96d6ca
|
4
|
+
data.tar.gz: 8da2a61cdc4eca229a1ba0a8add77d512227f47c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d8008027aadc9f9a1ab6a39f64cc6ddf0eee4a5e418ea4282365ea8ece334f9d8647a79717d2bf9681aa96c891771f5bcf96d3464c4b0de214977fbaac9099e
|
7
|
+
data.tar.gz: 06a708088a401fc0f023575a7e551c0a352f7cf701bf39898695d75d755430ab90c97b7f91c4140c8c51910c7cc7500d04a97bd9056fda4c1d1dbfe4aa93d309
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Armoire [![Build Status](https://travis-ci.org/
|
1
|
+
# Armoire [![Build Status](https://travis-ci.org/onthebeach/armoire.png?branch=master)](https://travis-ci.org/onthebeach/armoire) [![Code Climate](https://codeclimate.com/github/onthebeach/armoire.png)](https://codeclimate.com/github/onthebeach/armoire)
|
2
2
|
|
3
3
|
A simple configuration tool for your ruby application settings
|
4
4
|
|
data/lib/armoire.rb
CHANGED
@@ -5,12 +5,6 @@ require 'erb'
|
|
5
5
|
require "armoire/setting"
|
6
6
|
require "armoire/version"
|
7
7
|
|
8
|
-
if defined?(Rails::Railtie)
|
9
|
-
require "armoire/railtie"
|
10
|
-
elsif defined?(Rails.configuration)
|
11
|
-
require "armoire/init"
|
12
|
-
end
|
13
|
-
|
14
8
|
class Armoire
|
15
9
|
include Singleton
|
16
10
|
|
@@ -49,3 +43,9 @@ class Armoire
|
|
49
43
|
# When a config setting isn't set, this exception will be raised
|
50
44
|
class ConfigSettingMissing < StandardError; end
|
51
45
|
end
|
46
|
+
|
47
|
+
if defined?(Rails::Railtie)
|
48
|
+
require "armoire/railtie"
|
49
|
+
elsif defined?(Rails.configuration)
|
50
|
+
require "armoire/init"
|
51
|
+
end
|
data/lib/armoire/init.rb
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
Rails
|
2
|
-
|
3
|
-
end
|
1
|
+
# initializer for Rails 2
|
2
|
+
Armoire.load! Rails.root.join('config', 'application.yml')
|
data/lib/armoire/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: armoire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Smith
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|