unifig-env 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: 9faeed8441b6f3300f41b2be7c25892be0d73090b326050071a6074ff97a6d1a
4
- data.tar.gz: 59f2b0fd7ab2017d004d7ed42e1ea0aa3556c5289e141205163326993d80f87d
3
+ metadata.gz: 50fca52bbea2bd540fc2aadb44cbcb02bf62b7a3b8a1da40cc8ef8c708f81562
4
+ data.tar.gz: 6140cf98cd5bc34ea008bf1c4db88319bdd16fc5029164aff1c5b8e27f8ff9e4
5
5
  SHA512:
6
- metadata.gz: 6ec302bbe6cad0828dae3e959a355bb15db7b14582950d49a6cd2d544e100bc03033b86bbbe0e74f0496c5eaca6837f59983fe0418718ef216611605928354cc
7
- data.tar.gz: df5be543d4480f335c20c1f37e3f0dc514dfd8e2725ca22983c3fe7250608db02a5cdc82ae7c1f5b83f0473c551e13288acf3cadeee2c48bb76dbff871699356
6
+ metadata.gz: 62a3c5c8dab3a015ed6d02b6a4ac464ac976659626cf52bfeb0839a71e6ec0455a994a8c9f3cbe9833cbf2c8c4a066ab439c1969414c80fc839c10a105db716c
7
+ data.tar.gz: 72e60a3c1c834bb17b4a922626ed9b355b3d32c414b3dc88cdcdcacb743a7c5d271674de40674f9c60ea3496f17f4c29fdfd81c8501c433c42159349c835e3ab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
+ # [0.2.0][] (2022-07-31)
2
+
3
+ ## Changed
4
+
5
+ - Support for Unifig increased to 0.3.1
6
+
1
7
  # [0.1.0][] (2022-07-24)
2
8
 
3
9
  Initial release.
4
10
 
11
+ [0.2.0]: https://github.com/AaronLasseigne/unifig-env/compare/v0.1.0...v0.2.0
5
12
  [0.1.0]: https://github.com/AaronLasseigne/unifig-env/compare/v0.0.0...v0.1.0
data/README.md CHANGED
@@ -10,13 +10,13 @@ Adds a provider to support loading environment variables to [Unifig][].
10
10
  Add it to your Gemfile:
11
11
 
12
12
  ``` rb
13
- gem 'unifig-env', '~> 0.1.0'
13
+ gem 'unifig-env', '~> 0.2.0'
14
14
  ```
15
15
 
16
16
  Or install it manually:
17
17
 
18
18
  ``` sh
19
- $ gem install unifig-env --version '~> 0.1.0'
19
+ $ gem install unifig-env --version '~> 0.2.0'
20
20
  ```
21
21
 
22
22
  This project uses [Semantic Versioning][].
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Unifig
4
4
  module Env
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -9,11 +9,9 @@ module Unifig
9
9
  end
10
10
 
11
11
  def self.retrieve(var_names)
12
- env_values = var_names.to_h do |name|
12
+ var_names.to_h do |name|
13
13
  [name, ::ENV[name.to_s]]
14
14
  end
15
- env_values.compact!
16
- env_values
17
15
  end
18
16
  end
19
17
  end
@@ -16,9 +16,10 @@ RSpec.describe Unifig::Providers::Env do
16
16
  result = described_class.retrieve(%i[FOO BAR BAZ])
17
17
 
18
18
  expect(result).to be_an_instance_of(Hash)
19
- expect(result.keys.size).to be 2
19
+ expect(result.keys.size).to be 3
20
20
  expect(result[:FOO]).to eql 'foo'
21
21
  expect(result[:BAR]).to eql 'bar'
22
+ expect(result[:BAZ]).to be_nil
22
23
  end
23
24
  end
24
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unifig-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lasseigne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-24 00:00:00.000000000 Z
11
+ date: 2022-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unifig
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.0
19
+ version: 0.3.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.0
26
+ version: 0.3.1
27
27
  description: Adds a provider to support loading environment variables to Unifig.
28
28
  email:
29
29
  - aaron.lasseigne@gmail.com