armoire 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: a263f7ddf3ce8f483ec067a5ecb465fddd6717bb
4
- data.tar.gz: 95a65f417aebde97343c57f1ca1fe655877a061d
3
+ metadata.gz: 9bc510af0b407bba42d3ae78daffc28afe432d2e
4
+ data.tar.gz: 47bd25ce6fa099f51208b2e1c126f70c1b7df776
5
5
  SHA512:
6
- metadata.gz: f66b78e05f8f27501337d14ea691c7a945dcd912b143e275c58fe840ce5848f1b7f4e7423d8830b7ad991cd4b6eb7bb2d96fe32cccaf105d5cef16e647fedd30
7
- data.tar.gz: 0a1b4276b5286aed8e14a4dce4bd2869e7f8ff89ed5459d1bc7dba416a2b9af3db2a0d3222323b1a5bb2409dfed593b8c5da3b50e452c99ef8ed61e7e284ecb5
6
+ metadata.gz: a377d3d3e80029f4f02d496df8c8df3cda028f41af1598f1f50e053047fd655048e189589a38f661fc8e528f8830619c19e513eaaf38d1b652964cd6e0d2902a
7
+ data.tar.gz: b14ff3ea46b1efd9540a2534527d9a92001f0fac225f52baf72c37066cbcd3874b90f844735afe9a56d40566ec7801a596112f1792911fc76792e16fa108d386
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ vendor/bundle
data/armoire.gemspec CHANGED
@@ -6,11 +6,11 @@ require 'armoire/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "armoire"
8
8
  spec.version = Armoire::VERSION
9
- spec.authors = ["Michael Smith"]
10
- spec.email = ["mike@spokefire.co.uk"]
9
+ spec.authors = ["Michael Smith", "onthebeach"]
10
+ spec.email = ["mike@spokefire.co.uk", "development@onthebeach.co.uk"]
11
11
  spec.description = %q{A simple configuration tool}
12
12
  spec.summary = %q{A simple configuration tool}
13
- spec.homepage = "https://github.com/mikespokefire/armoire"
13
+ spec.homepage = "https://github.com/onthebeach/armoire"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,3 +1,3 @@
1
1
  class Armoire
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
data/lib/armoire.rb CHANGED
@@ -29,6 +29,10 @@ class Armoire
29
29
  instance.environment = environment
30
30
  end
31
31
 
32
+ def self.environment
33
+ instance.environment
34
+ end
35
+
32
36
  def environment
33
37
  @environment ||= ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
34
38
  end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Armoire do
4
- describe '#.environment' do
4
+ describe '#environment' do
5
5
  subject { described_class.instance.environment }
6
6
 
7
7
  before do
@@ -154,4 +154,12 @@ describe Armoire do
154
154
  Armoire.load! File.expand_path('../fixtures/application.yml', File.dirname(__FILE__))
155
155
  end
156
156
  end
157
+
158
+ describe '.environment' do
159
+ subject { Armoire.environment }
160
+
161
+ it "returns the current environment armoire is set to read" do
162
+ expect(subject).to eql("test")
163
+ end
164
+ end
157
165
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: armoire
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
  - Michael Smith
8
+ - onthebeach
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-04-08 00:00:00.000000000 Z
12
+ date: 2014-06-20 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -69,6 +70,7 @@ dependencies:
69
70
  description: A simple configuration tool
70
71
  email:
71
72
  - mike@spokefire.co.uk
73
+ - development@onthebeach.co.uk
72
74
  executables: []
73
75
  extensions: []
74
76
  extra_rdoc_files: []
@@ -92,7 +94,7 @@ files:
92
94
  - spec/lib/armoire/setting_spec.rb
93
95
  - spec/lib/armoire_spec.rb
94
96
  - spec/spec_helper.rb
95
- homepage: https://github.com/mikespokefire/armoire
97
+ homepage: https://github.com/onthebeach/armoire
96
98
  licenses:
97
99
  - MIT
98
100
  metadata: {}