kreds 2.0.0 → 2.0.1

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: 999a28daaa8839baa7e0ef9d1c2ff9f71fe244852ff18aa915998a8b48778214
4
- data.tar.gz: 61fc895370da4b88283255b5d624105a915aef7e6ccf243817a52bde688105f7
3
+ metadata.gz: 0b4201b42666b2af466df309108cbdd034af995fe503a390517e7466a365047f
4
+ data.tar.gz: 99889e39b1ab9175ee93dbbde3ecaccacd0178c07062cf99cefb428f89a58ec6
5
5
  SHA512:
6
- metadata.gz: d832a8fc6215794b577870950409214c0a3271032be13405037e304101b6b2f63f74724ff6af3bf6d956f21401232001a27aa652ff7176f465999b8d3c4545ae
7
- data.tar.gz: 8436bcf11fa89dd44a88683f6b05e657e984be67b82caaf603308abec24e09685cb42112e3163387d79d89f4bc3f80caa456d919dbcfe2d0f00996622678e932
6
+ metadata.gz: dbd88cdfd58f5a9759999c79b34713d0c161b663f78a948a8f32b5ddf4f987eedb1e49e82956800b68b776f5fa6c79395b50251694bfa58ca84a3bebebdb1522
7
+ data.tar.gz: 2cc1444000ed81fa464ffef8037f68f915885015126be94e046c412cde0a9991be4622b4e8f2f06a54f7c7940b3d5e23016a413b55548ef3c9f5fb3832ef3568
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v2.0.1
2
+
3
+ - Fixed `false` credential values being treated as blank
4
+ - Clarified the error message raised when no credentials keys are provided
5
+
1
6
  ## v2.0.0
2
7
 
3
8
  - Dropped support for Ruby 3.2
data/README.md CHANGED
@@ -157,24 +157,26 @@ Kreds.env_show
157
157
  ## Getting Help and Contributing
158
158
 
159
159
  ### Getting Help
160
+
160
161
  Have a question or need assistance? Open a discussion in the [discussions section](https://github.com/enjaku4/kreds/discussions) for:
162
+
161
163
  - Usage questions
162
164
  - Implementation guidance
163
- - Feature suggestions
165
+ - Open-ended ideas or suggestions
166
+
167
+ ### Issues
168
+
169
+ [Issues](https://github.com/enjaku4/kreds/issues) track bugs, planned features, and other work. When reporting a bug, please include:
164
170
 
165
- ### Reporting Issues
166
- Found a bug? Please [create an issue](https://github.com/enjaku4/kreds/issues) with:
167
171
  - A clear description of the problem
168
172
  - Steps to reproduce the issue
169
- - Your environment details (Rails version, Ruby version, etc.)
173
+ - Your environment details (Rails and Ruby versions, OS, etc.)
170
174
 
171
175
  ### Contributing Code
172
- Ready to contribute? You can:
173
- - Fix bugs by submitting pull requests
174
- - Improve documentation
175
- - Add new features (please discuss first in the [discussions section](https://github.com/enjaku4/kreds/discussions))
176
176
 
177
- Before contributing, please read the [contributing guidelines](https://github.com/enjaku4/kreds/blob/master/CONTRIBUTING.md)
177
+ Any open issue is free to pick up or discuss. Check the [project board](https://github.com/users/enjaku4/projects/14) or [issues tab](https://github.com/enjaku4/kreds/issues).
178
+
179
+ Before contributing, please read the [contributing guidelines](https://github.com/enjaku4/kreds/blob/master/CONTRIBUTING.md).
178
180
 
179
181
  ## License
180
182
 
data/lib/kreds/fetch.rb CHANGED
@@ -32,7 +32,7 @@ module Kreds
32
32
  def fetch_key(hash, key, path, keys)
33
33
  value = hash.fetch(key)
34
34
 
35
- raise Kreds::BlankCredentialsError, "Blank value in credentials: #{path_to_s(path)}" if value.blank?
35
+ raise Kreds::BlankCredentialsError, "Blank value in credentials: #{path_to_s(path)}" if value != false && value.blank?
36
36
  raise Kreds::UnknownCredentialsError, "Credentials key not found: #{path_to_s(path.append(keys[path.size]))}" unless value.is_a?(Hash) || keys == path
37
37
 
38
38
  value
data/lib/kreds/inputs.rb CHANGED
@@ -11,7 +11,9 @@ module Kreds
11
11
  private
12
12
 
13
13
  def symbol_array(value)
14
- return value.map(&:to_sym) if value.is_a?(Array) && value.any? && value.all? { _1.is_a?(String) || _1.is_a?(Symbol) }
14
+ raise(Kreds::InvalidArgumentError, "No credentials keys provided") if value == []
15
+
16
+ return value.map(&:to_sym) if value.is_a?(Array) && value.all? { _1.is_a?(String) || _1.is_a?(Symbol) }
15
17
 
16
18
  raise(Kreds::InvalidArgumentError, "Expected an array of symbols or strings, got `#{value.inspect}`")
17
19
  end
data/lib/kreds/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kreds
2
- VERSION = "2.0.0".freeze
2
+ VERSION = "2.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kreds
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - enjaku4
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-03-31 00:00:00.000000000 Z
10
+ date: 2026-07-19 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
- rubygems_version: 4.0.8
77
+ rubygems_version: 4.0.3
78
78
  specification_version: 4
79
79
  summary: The missing shorthand for Rails credentials
80
80
  test_files: []