kreds 1.1.3 → 1.1.5
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 +9 -0
- data/README.md +11 -9
- data/kreds.gemspec +6 -2
- data/lib/kreds/fetch.rb +1 -1
- data/lib/kreds/inputs.rb +4 -4
- data/lib/kreds/version.rb +1 -1
- metadata +15 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 575188b32a50ad95468044373828227f651932c8b74b46419f6a3ba327304fd2
|
|
4
|
+
data.tar.gz: e359ac0dd63c5407686e58ea0f20cf8497f154de95d5c4879520bae62afc3ee7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e46fe736f2b611617cd0b51e94012f82aa84012d1f6d0c008bbd60f58a6b7858852531dcae12ead92a779317595ad63e3962d83b8e079f25546509b73e6cceb
|
|
7
|
+
data.tar.gz: 65522943c2ca399be7fe852065aabb9bfb1d50b764fd704bfbd87a99d83a92ec3d83884b6de087cf71f09f58d4e62134f0772d7c306dc69badae1fef248cc889
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# Kreds: Streamlined Rails Credentials Access
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/kreds)
|
|
4
|
-
[](https://rubygems.org/gems/kreds)
|
|
5
|
+
[](https://github.com/enjaku4/kreds/actions/workflows/ci.yml)
|
|
6
|
+
[](LICENSE)
|
|
5
7
|
|
|
6
8
|
Kreds is a simpler, shorter, and safer way to access Rails credentials, with a few extra features built in. Rails credentials are a convenient way to store secrets, but retrieving them could be more intuitive — that's where Kreds comes in.
|
|
7
9
|
|
|
@@ -44,7 +46,7 @@ Kreds.fetch!(:captcha, :site_key)
|
|
|
44
46
|
- [Debug and Inspection](#debug-and-inspection)
|
|
45
47
|
|
|
46
48
|
**Community Resources:**
|
|
47
|
-
- [Contributing](#contributing)
|
|
49
|
+
- [Getting Help and Contributing](#getting-help-and-contributing)
|
|
48
50
|
- [License](#license)
|
|
49
51
|
- [Code of Conduct](#code-of-conduct)
|
|
50
52
|
|
|
@@ -146,16 +148,16 @@ Kreds.show
|
|
|
146
148
|
# => { aws: { access_key_id: "...", secret_access_key: "..." }, ... }
|
|
147
149
|
```
|
|
148
150
|
|
|
149
|
-
## Contributing
|
|
151
|
+
## Getting Help and Contributing
|
|
150
152
|
|
|
151
153
|
### Getting Help
|
|
152
|
-
Have a question or need assistance? Open a discussion in our [discussions section](https://github.com/
|
|
154
|
+
Have a question or need assistance? Open a discussion in our [discussions section](https://github.com/enjaku4/kreds/discussions) for:
|
|
153
155
|
- Usage questions
|
|
154
156
|
- Implementation guidance
|
|
155
157
|
- Feature suggestions
|
|
156
158
|
|
|
157
159
|
### Reporting Issues
|
|
158
|
-
Found a bug? Please [create an issue](https://github.com/
|
|
160
|
+
Found a bug? Please [create an issue](https://github.com/enjaku4/kreds/issues) with:
|
|
159
161
|
- A clear description of the problem
|
|
160
162
|
- Steps to reproduce the issue
|
|
161
163
|
- Your environment details (Rails version, Ruby version, etc.)
|
|
@@ -164,14 +166,14 @@ Found a bug? Please [create an issue](https://github.com/brownboxdev/kreds/issue
|
|
|
164
166
|
Ready to contribute? You can:
|
|
165
167
|
- Fix bugs by submitting pull requests
|
|
166
168
|
- Improve documentation
|
|
167
|
-
- Add new features (please discuss first in our [discussions section](https://github.com/
|
|
169
|
+
- Add new features (please discuss first in our [discussions section](https://github.com/enjaku4/kreds/discussions))
|
|
168
170
|
|
|
169
|
-
Before contributing, please read the [contributing guidelines](https://github.com/
|
|
171
|
+
Before contributing, please read the [contributing guidelines](https://github.com/enjaku4/kreds/blob/master/CONTRIBUTING.md)
|
|
170
172
|
|
|
171
173
|
## License
|
|
172
174
|
|
|
173
|
-
The gem is available as open source under the terms of the [MIT License](https://github.com/
|
|
175
|
+
The gem is available as open source under the terms of the [MIT License](https://github.com/enjaku4/kreds/blob/master/LICENSE.txt).
|
|
174
176
|
|
|
175
177
|
## Code of Conduct
|
|
176
178
|
|
|
177
|
-
Everyone interacting in the Kreds project is expected to follow the [code of conduct](https://github.com/
|
|
179
|
+
Everyone interacting in the Kreds project is expected to follow the [code of conduct](https://github.com/enjaku4/kreds/blob/master/CODE_OF_CONDUCT.md).
|
data/kreds.gemspec
CHANGED
|
@@ -4,12 +4,16 @@ Gem::Specification.new do |spec|
|
|
|
4
4
|
spec.name = "kreds"
|
|
5
5
|
spec.version = Kreds::VERSION
|
|
6
6
|
spec.authors = ["enjaku4"]
|
|
7
|
-
spec.
|
|
7
|
+
spec.email = ["enjaku4@icloud.com"]
|
|
8
|
+
spec.homepage = "https://github.com/enjaku4/kreds"
|
|
8
9
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
9
10
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
10
11
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
|
12
|
+
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
|
|
13
|
+
spec.metadata["documentation_uri"] = "#{spec.homepage}/blob/master/README.md"
|
|
11
14
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
12
15
|
spec.summary = "The missing shorthand for Rails credentials"
|
|
16
|
+
spec.description = "Kreds provides a simpler, shorter, and safer way to access Rails credentials with clear error messages, environment variable fallback support, and blank value detection"
|
|
13
17
|
spec.license = "MIT"
|
|
14
18
|
spec.required_ruby_version = ">= 3.2", "< 3.5"
|
|
15
19
|
|
|
@@ -19,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
|
19
23
|
|
|
20
24
|
spec.require_paths = ["lib"]
|
|
21
25
|
|
|
22
|
-
spec.add_dependency "dry-types", "~> 1.
|
|
26
|
+
spec.add_dependency "dry-types", "~> 1.7"
|
|
23
27
|
spec.add_dependency "rails", ">= 7.1", "< 8.1"
|
|
24
28
|
end
|
data/lib/kreds/fetch.rb
CHANGED
data/lib/kreds/inputs.rb
CHANGED
|
@@ -7,9 +7,9 @@ module Kreds
|
|
|
7
7
|
include Dry.Types()
|
|
8
8
|
|
|
9
9
|
TYPES = {
|
|
10
|
-
symbol_array:
|
|
11
|
-
non_empty_string:
|
|
12
|
-
boolean:
|
|
10
|
+
symbol_array: self::Array.of(self::Coercible::Symbol).constrained(min_size: 1),
|
|
11
|
+
non_empty_string: self::Strict::String.constrained(min_size: 1),
|
|
12
|
+
boolean: self::Strict::Bool
|
|
13
13
|
}.freeze
|
|
14
14
|
|
|
15
15
|
def process(value, as:, optional: false, error: Kreds::InvalidArgumentError, message: nil)
|
|
@@ -23,6 +23,6 @@ module Kreds
|
|
|
23
23
|
|
|
24
24
|
private
|
|
25
25
|
|
|
26
|
-
def type_for(name) = Kreds::Inputs::TYPES.fetch(name)
|
|
26
|
+
def type_for(name) = Kreds::Inputs::TYPES.fetch(name)
|
|
27
27
|
end
|
|
28
28
|
end
|
data/lib/kreds/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kreds
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- enjaku4
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.7'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.7'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: rails
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -43,6 +43,11 @@ dependencies:
|
|
|
43
43
|
- - "<"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '8.1'
|
|
46
|
+
description: Kreds provides a simpler, shorter, and safer way to access Rails credentials
|
|
47
|
+
with clear error messages, environment variable fallback support, and blank value
|
|
48
|
+
detection
|
|
49
|
+
email:
|
|
50
|
+
- enjaku4@icloud.com
|
|
46
51
|
executables: []
|
|
47
52
|
extensions: []
|
|
48
53
|
extra_rdoc_files: []
|
|
@@ -56,13 +61,15 @@ files:
|
|
|
56
61
|
- lib/kreds/inputs.rb
|
|
57
62
|
- lib/kreds/show.rb
|
|
58
63
|
- lib/kreds/version.rb
|
|
59
|
-
homepage: https://github.com/
|
|
64
|
+
homepage: https://github.com/enjaku4/kreds
|
|
60
65
|
licenses:
|
|
61
66
|
- MIT
|
|
62
67
|
metadata:
|
|
63
|
-
homepage_uri: https://github.com/
|
|
64
|
-
source_code_uri: https://github.com/
|
|
65
|
-
changelog_uri: https://github.com/
|
|
68
|
+
homepage_uri: https://github.com/enjaku4/kreds
|
|
69
|
+
source_code_uri: https://github.com/enjaku4/kreds
|
|
70
|
+
changelog_uri: https://github.com/enjaku4/kreds/blob/master/CHANGELOG.md
|
|
71
|
+
bug_tracker_uri: https://github.com/enjaku4/kreds/issues
|
|
72
|
+
documentation_uri: https://github.com/enjaku4/kreds/blob/master/README.md
|
|
66
73
|
rubygems_mfa_required: 'true'
|
|
67
74
|
rdoc_options: []
|
|
68
75
|
require_paths:
|
|
@@ -81,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
81
88
|
- !ruby/object:Gem::Version
|
|
82
89
|
version: '0'
|
|
83
90
|
requirements: []
|
|
84
|
-
rubygems_version: 3.
|
|
91
|
+
rubygems_version: 3.7.2
|
|
85
92
|
specification_version: 4
|
|
86
93
|
summary: The missing shorthand for Rails credentials
|
|
87
94
|
test_files: []
|