envyable 0.0.2 → 0.1.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: dc529b788e4c02ba9ade498c8f90ea124ee1eaff
4
- data.tar.gz: 3ef74376da66af3d73676190503126a113b8e00d
3
+ metadata.gz: 661545b979cadecd245a677ec876ca2c401a9d8d
4
+ data.tar.gz: a8601f4fd7d40d933b59ebf55ea193bac1cb4bdc
5
5
  SHA512:
6
- metadata.gz: 16eb882c1d6c847421ef7f282439aba644508fea7a9ec67a67db59f6f66157d5c4c19f37002c43a17d66325cdfa266cc693316c02b836d7d9e8ceb147b5c1797
7
- data.tar.gz: 9ca14c2acbff5f783c087c3c259bcf017ad4acf9ddb312bffb65c4f9e9c24412cedf3a9e8bc2d7a2dbda228b20c641c389cfd155616b55e848510192987407c2
6
+ metadata.gz: 1df7cfea13ad7efde5c24e34b658af6dfd446782bea413d1b4baa7e7da2b7465510bc3f3bbd9691884707110d1b72d781ed2b934c3eb9b12a823d781bd213f2d
7
+ data.tar.gz: 6463eda2156c6abb6b6c85652310ac57b68d7b7feda230c25e1df8549593e4270f377cb0c7087ad153474e63970bc9bf4ece971d798d0bc575299cd98936fb8e
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .ruby-version
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
@@ -4,3 +4,7 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
  - 2.0.0
7
+ - 2.1.0
8
+ - jruby-18mode
9
+ - jruby-19mode
10
+ - rbx
data/Gemfile CHANGED
@@ -2,3 +2,9 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in envyable.gemspec
4
4
  gemspec
5
+
6
+ platforms :rbx do
7
+ gem 'racc'
8
+ gem 'rubysl', '~> 2.0'
9
+ gem 'psych'
10
+ end
@@ -30,6 +30,7 @@ module Envyable
30
30
  # Returns nothing.
31
31
  def load(environment='development')
32
32
  if @yml ||= load_yml
33
+ return unless @yml[environment]
33
34
  @yml[environment].each { |key, value| set_value(key, value) }
34
35
  end
35
36
  end
@@ -1,3 +1,3 @@
1
1
  module Envyable
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -15,5 +15,9 @@ describe Envyable do
15
15
  it 'should not fail if file is not there' do
16
16
  Envyable.load 'spec/fixtures/nothing.yml'
17
17
  end
18
+
19
+ it 'should not fail if the environment is not represented in the file' do
20
+ Envyable.load 'spec/fixtures/env.yml', 'production'
21
+ end
18
22
  end
19
23
  end
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ gem 'minitest'
2
3
  require 'minitest/autorun'
3
4
 
4
5
  require File.join(File.dirname(__FILE__), '..', 'lib', 'envyable')
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: envyable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Nash
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-02 00:00:00.000000000 Z
11
+ date: 2015-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: The simplest yaml to ENV config loader
@@ -59,8 +59,8 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
63
- - .travis.yml
62
+ - ".gitignore"
63
+ - ".travis.yml"
64
64
  - Gemfile
65
65
  - LICENSE.txt
66
66
  - README.md
@@ -84,17 +84,17 @@ require_paths:
84
84
  - lib
85
85
  required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.0.3
97
+ rubygems_version: 2.2.2
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: The simplest yaml to ENV config loader