itamae-node_env 0.0.7 → 0.0.8

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: 85e694ea3340edddd491c19334d7e721fcbbcc0e
4
- data.tar.gz: 01de68cc53fbee9da7736041a097b7ba112aa854
3
+ metadata.gz: 8e49a6be6c8b5e7528404e9b9264c15756da1481
4
+ data.tar.gz: 0985fbb542cfa55b0dbcc10f932fe5e24cc83c65
5
5
  SHA512:
6
- metadata.gz: 60fab10c77054959b15863a533d2a6a8f002f9326eb83ad264d0b8d740bb4a9db7b20abb8814a52a050b0b0cf55f7c789b1d76d6963e021ec0eb0adaabb4a6dd
7
- data.tar.gz: 8e96973f256e9a7201e144c0fc0006aea9fb1169dc387dbb7383d18eb503100bdc693b8decd236c0fa7cf932b460897f1604a090ed0111e298810c0c6fe0491c
6
+ metadata.gz: 0ec79b5522c2bb3de6b5db4906715be0d6687282b16ea09514cc1a039d451ae0685d9f2d6845928076a4287d56e1236ec7a8a15974e24928cf5492dcfa8a8acd
7
+ data.tar.gz: 4364e5e626ea5357bde75651495f6a4ea265355b0e738c5f17759133af012d47b9d112353697bf71c51de4811850a7dc200a202fa1997d5ce9607bea6b4ef15f
@@ -10,11 +10,7 @@ module Itamae
10
10
 
11
11
  case val
12
12
  when String
13
- if /\Aenv\[(?<key>[^\]]+)\]\z/ =~ val
14
- ENV[key]
15
- else
16
- val
17
- end
13
+ val.gsub(/env\[(\w+?)\]/) { ENV[Regexp.last_match[1]] }
18
14
  when Array
19
15
  val.map { |v| apply_env(v, klass) }
20
16
  when klass
@@ -1,5 +1,5 @@
1
1
  module Itamae
2
2
  module NodeEnv
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-node_env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - nownabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-09 00:00:00.000000000 Z
11
+ date: 2015-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae