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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +11 -9
- data/lib/kreds/fetch.rb +1 -1
- data/lib/kreds/inputs.rb +3 -1
- data/lib/kreds/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b4201b42666b2af466df309108cbdd034af995fe503a390517e7466a365047f
|
|
4
|
+
data.tar.gz: 99889e39b1ab9175ee93dbbde3ecaccacd0178c07062cf99cefb428f89a58ec6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbd88cdfd58f5a9759999c79b34713d0c161b663f78a948a8f32b5ddf4f987eedb1e49e82956800b68b776f5fa6c79395b50251694bfa58ca84a3bebebdb1522
|
|
7
|
+
data.tar.gz: 2cc1444000ed81fa464ffef8037f68f915885015126be94e046c412cde0a9991be4622b4e8f2f06a54f7c7940b3d5e23016a413b55548ef3c9f5fb3832ef3568
|
data/CHANGELOG.md
CHANGED
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
|
-
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
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.
|
|
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-
|
|
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.
|
|
77
|
+
rubygems_version: 4.0.3
|
|
78
78
|
specification_version: 4
|
|
79
79
|
summary: The missing shorthand for Rails credentials
|
|
80
80
|
test_files: []
|