a9n 0.5.2 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/a9n.rb +5 -1
  3. data/lib/a9n/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7cb7285aa7ac8003c307156c4300bf5e6344f468
4
- data.tar.gz: 6ef874d444870a1132898247e8e5218a8158f37c
3
+ metadata.gz: 63603be80185be63edccb36a77c911167ed4839f
4
+ data.tar.gz: 453f3439286e20072d7ac49f934f7d4470aae600
5
5
  SHA512:
6
- metadata.gz: f94ff5d94801a6f3bd2f9900e5a34dcdebc1f628dc291ed7aafd91d2be3abd9dea0669fdcdf8fb5f48a5e9d55e0076838a944523fc2e88233cb585056be6ed04
7
- data.tar.gz: 92f9a3f9505ee5b68b8545814d50c42768aa986fdd99bd74f7e510c8a13e105df5a6a6213e46c870185ec333b78ead649911d31dc9240fedb6fbe3ece6912831
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
@@ -1,3 +1,3 @@
1
1
  module A9n
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.4"
3
3
  end
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.2
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-04-26 00:00:00.000000000 Z
11
+ date: 2017-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake