a9n 0.5.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/a9n.rb +5 -1
- data/lib/a9n/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63603be80185be63edccb36a77c911167ed4839f
|
4
|
+
data.tar.gz: 453f3439286e20072d7ac49f934f7d4470aae600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0bd4adc824abf5c8dc3fc70819bf33323303cce305b6ff44a5d484644797524998529c4cbe1f3dde06500631e8bbc9bee495414241a53a817a7937122e03493
|
7
|
+
data.tar.gz: 6d4f388d26f34268119aa368a9dae0dcab68f1120bdeb07808263fe560d10d65be325e29d8e81c7bbec2e19162cfd5f7f53a9e741ce30127492f3e0bd36f79e4
|
data/lib/a9n.rb
CHANGED
@@ -49,7 +49,11 @@ module A9n
|
|
49
49
|
|
50
50
|
def env_var(name, strict: false)
|
51
51
|
fail A9n::MissingEnvVariableError.new(name) if strict && !ENV.key?(name)
|
52
|
-
ENV[name]
|
52
|
+
if ENV[name].is_a?(::String)
|
53
|
+
ENV[name].dup.force_encoding(Encoding::UTF_8)
|
54
|
+
else
|
55
|
+
ENV[name]
|
56
|
+
end
|
53
57
|
end
|
54
58
|
|
55
59
|
def default_files
|
data/lib/a9n/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a9n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|