envolve 1.0.0 → 1.0.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: 0957b934da66eced716f716a370f189da7633f49
4
- data.tar.gz: c6198fd51c04495d8f232114d7d062afc52bbe85
3
+ metadata.gz: bcf4d1b8c8e82829351a0c08bfd021da5f1bb0bd
4
+ data.tar.gz: 2fcf17f17172ec0fe8ecae50aa3abfc32952e081
5
5
  SHA512:
6
- metadata.gz: ea88528575352a016613859399447d0bfc881989db78cf9ab91ca7dc531098da7c882e9dab740b6338310c5c8c7eec10b703c58f1170cd3c746efc07d9d89cc1
7
- data.tar.gz: dfb14703a551ee5c85b82d7e98da09da8e732083750cefc17aa711df77989c9933723dc46802b62cde484d95b8dd822bde8a0278e1578b9e605cd886d3cc8570
6
+ metadata.gz: 954bd0dc4b0d00bb6585d573f11048975219e27fc4828d50af831f10430b4801ba0788ecb69021aaba8ecd10d51139d44a99e163032d794bf11f2aeae168d868
7
+ data.tar.gz: a7a4b3f7ba9f453e733cfd56997e48d4db87b41b1afc9de829db21b1e80ba49eed5ce5587cbd9bf05fc9cada002aaeaa68d4056ee391f015da836c9d7d74e0dc
data/HISTORY.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Envolve Changelog
2
+ ## Version 1.0.1
3
+
4
+ * Fix bug where ENV is only retrieved 1 time ever [Issue #1](https://github.com/copiousfreetime/envolve/issues/1).
5
+
2
6
  ## Version 1.0.0
3
7
 
4
8
  * Initial Release - Yeah!
@@ -17,8 +17,9 @@ module Envolve
17
17
  elsif block_given? then
18
18
  @_default_env = block.call
19
19
  else
20
- @_default_env ||= ENV.to_hash
20
+ @_default_env = ENV unless defined?( @_default_env )
21
21
  end
22
+ @_default_env.to_h
22
23
  end
23
24
 
24
25
  # Public: Return the prefix to be used by the class
@@ -29,7 +30,7 @@ module Envolve
29
30
  if args.size > 0 then
30
31
  @_prefix = args.first
31
32
  else
32
- @_prefix = nil if !defined?( @_prefix )
33
+ @_prefix = nil unless defined?( @_prefix )
33
34
  end
34
35
  @_prefix
35
36
  end
@@ -42,7 +43,7 @@ module Envolve
42
43
  if args.size > 0 then
43
44
  @_key_separator = args.first
44
45
  else
45
- @_key_separator = '_'.freeze if !defined?( @_key_separator )
46
+ @_key_separator = '_'.freeze unless defined?( @_key_separator )
46
47
  end
47
48
  @_key_separator
48
49
  end
@@ -1,3 +1,3 @@
1
1
  module Envolve
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: envolve
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Hinegardner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake