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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bc510af0b407bba42d3ae78daffc28afe432d2e
4
- data.tar.gz: 47bd25ce6fa099f51208b2e1c126f70c1b7df776
3
+ metadata.gz: 05d7cdf7b616d5ef54bc5d511c3712011e96d6ca
4
+ data.tar.gz: 8da2a61cdc4eca229a1ba0a8add77d512227f47c
5
5
  SHA512:
6
- metadata.gz: a377d3d3e80029f4f02d496df8c8df3cda028f41af1598f1f50e053047fd655048e189589a38f661fc8e528f8830619c19e513eaaf38d1b652964cd6e0d2902a
7
- data.tar.gz: b14ff3ea46b1efd9540a2534527d9a92001f0fac225f52baf72c37066cbcd3874b90f844735afe9a56d40566ec7801a596112f1792911fc76792e16fa108d386
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/mikespokefire/armoire.png?branch=master)](https://travis-ci.org/mikespokefire/armoire) [![Code Climate](https://codeclimate.com/github/mikespokefire/armoire.png)](https://codeclimate.com/github/mikespokefire/armoire)
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
 
@@ -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
@@ -1,3 +1,2 @@
1
- Rails.configuration.after_initialize do
2
- Armoire.load! Rails.root.join('config', 'application.yml')
3
- end
1
+ # initializer for Rails 2
2
+ Armoire.load! Rails.root.join('config', 'application.yml')
@@ -1,3 +1,3 @@
1
1
  class Armoire
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
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.0
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-06-20 00:00:00.000000000 Z
12
+ date: 2014-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler