unifig 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3dd53898f75a8cecfe556024e2136c141586f0d772e493a7125b6391b975d41a
4
- data.tar.gz: 7402d78ae39a6491381c56d595e9f107447285f8392a9667a43b0e8a09cbcc84
3
+ metadata.gz: 89378b794de9cdd9511c52a145c4458317713e357634690201b3af379fd19e23
4
+ data.tar.gz: 51642a4f0f6e7bf60fbc6715427678344b81b21c8b3cbe8bbd51d392169c0413
5
5
  SHA512:
6
- metadata.gz: 742c85475b18944582d8143704a898d1494d5844273e25b7bd2ba0dd49b08a55d6eeffaebd769ff210bdb537a64fe3785dd98e2d24524355d29ea86a95625a99
7
- data.tar.gz: d9ad1ed5b1838d9761195346cb71ab1e68b02bafe8259d4146cf6a3a70dd7bf0e1dfe9ea0d1cc5fbdb2d47312b976af7f0863c3a50c4caac35532f6338fa39c8
6
+ metadata.gz: 5c0ff6dd223e7999c825c2f63894ade93b687927b3473b277a65f382526cb811f8588726b530ec7d5ed4dda8fc33d2b849453b17edf562a6c8850e828d60b1f3
7
+ data.tar.gz: fed3b1b88b3f3e2b8397e29d6cd191047e8239a63983e34fb5b34d61b3eee7f1c65906fbcd0ab6e32fb1f19f83a5badfeafc3f9ee6cc05c074e5c0877eae1b37
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.3.2][] (2022-08-01)
2
+
3
+ ## Fixed
4
+
5
+ - Provider in Unifig::Var returned incorrectly
6
+ - Fix early calls to Unifig::Vars.list
7
+
1
8
  # [0.3.1][] (2022-07-31)
2
9
 
3
10
  ## Fixed
@@ -27,6 +34,7 @@
27
34
 
28
35
  Initial release.
29
36
 
37
+ [0.3.2]: https://github.com/AaronLasseigne/unifig/compare/v0.3.1...v0.3.2
30
38
  [0.3.1]: https://github.com/AaronLasseigne/unifig/compare/v0.3.0...v0.3.1
31
39
  [0.3.0]: https://github.com/AaronLasseigne/unifig/compare/v0.2.0...v0.3.0
32
40
  [0.2.0]: https://github.com/AaronLasseigne/unifig/compare/v0.1.0...v0.2.0
data/README.md CHANGED
@@ -18,13 +18,13 @@ If you want to use Unifig outside of a framework listed above you can manually a
18
18
  Add it to your Gemfile:
19
19
 
20
20
  ``` rb
21
- gem 'unifig', '~> 0.3.1'
21
+ gem 'unifig', '~> 0.3.2'
22
22
  ```
23
23
 
24
24
  Or install it manually:
25
25
 
26
26
  ``` sh
27
- $ gem install unifig --version '~> 0.3.1'
27
+ $ gem install unifig --version '~> 0.3.2'
28
28
  ```
29
29
 
30
30
  This project uses [Semantic Versioning][].
data/lib/unifig/init.rb CHANGED
@@ -77,7 +77,7 @@ module Unifig
77
77
  remaining_vars = Vars.list.filter_map { |var| var.name if var.value.nil? }
78
78
  result = provider.retrieve(remaining_vars)
79
79
 
80
- Vars.write_results!(result, provider)
80
+ Vars.write_results!(result, provider.name)
81
81
  end
82
82
  end
83
83
 
data/lib/unifig/vars.rb CHANGED
@@ -38,7 +38,7 @@ module Unifig
38
38
  #
39
39
  # @return [Array<Unifig::Var>]
40
40
  def list
41
- @map.values
41
+ (@map || {}).values
42
42
  end
43
43
 
44
44
  # Retrieve a variable by name unless it does not exist.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unifig
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unifig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lasseigne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-31 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tsort