ask-auth 0.1.0 → 0.1.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 +23 -0
- data/lib/ask/auth/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f788282e5d4084f09abe670765dbe0fab939ae87e1e7d2ec60b905c13a97085
|
|
4
|
+
data.tar.gz: 500ce5057d6a97cb72e559c69bbddda3ba5cebf21d771fcb8f6837ba63d5a510
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 448a0bb43bbbd3935a3b0f728e1e251721256e75b995d6b5f673627c7661dbacb43e594c898e1563773c63f90f8a12ec3d93fdb6577e78d6a0441fa0fa1b8f98
|
|
7
|
+
data.tar.gz: 402ea9c20b006bbdb8166899f7f908cd3e77b729f715b5f0ceb62673a4a78a42f752162bb35e84ba796bc66185a5af227f5a8cb4e2de2c03460ab1db95426594
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## [0.1.1] - 2026-06-25
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
- Infrastructure: rubocop, overcommit, bin/setup, CI matrix, gemspec test, SimpleCov, .minitest config.
|
|
5
|
+
# Changelog
|
|
6
|
+
|
|
7
|
+
## [0.1.0] — 2026-06-09
|
|
8
|
+
|
|
9
|
+
Initial release of `ask-auth`, the credential resolution gem for the ask-rb ecosystem.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Configuration system** — `Ask::Auth.configure` with block-based config and frozen post-boot safety
|
|
14
|
+
- **Resolution chain** — `Ask::Auth.resolve(name, user: nil)` walks providers in order, returns first non-nil
|
|
15
|
+
- **Blank normalization** — empty string and whitespace-only values normalize to `nil`
|
|
16
|
+
- **Error classes** — `MissingCredential` and `InvalidCredential` with actionable messages
|
|
17
|
+
- **Env provider** — resolves from `ENV` by convention (`GITHUB_TOKEN`, `GITHUBTOKEN`, `github_token`)
|
|
18
|
+
- **File provider** — reads `~/.ask/credentials.yml` with configurable path and Symbol-safe YAML loading
|
|
19
|
+
- **RailsCredentials provider** — wraps `Rails.application.credentials` with safe nil when Rails not loaded
|
|
20
|
+
- **Database provider** — ActiveRecord-backed per-user token storage with automatic expiry + refresh
|
|
21
|
+
- **OAuth provider** — PKCE interface with `authorize_url` and `authorize!` methods (full flow deferred)
|
|
22
|
+
- **Test suite** — 45 tests, 99%+ coverage across all providers and the resolution chain
|
|
23
|
+
- **Thread safety** — configuration is frozen after `configure` completes
|
data/lib/ask/auth/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ask-auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kaka Ruto
|
|
@@ -73,6 +73,7 @@ executables: []
|
|
|
73
73
|
extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
|
+
- CHANGELOG.md
|
|
76
77
|
- LICENSE
|
|
77
78
|
- README.md
|
|
78
79
|
- lib/ask-auth.rb
|
|
@@ -86,7 +87,10 @@ files:
|
|
|
86
87
|
homepage: https://github.com/ask-rb/ask-auth
|
|
87
88
|
licenses:
|
|
88
89
|
- MIT
|
|
89
|
-
metadata:
|
|
90
|
+
metadata:
|
|
91
|
+
homepage_uri: https://github.com/ask-rb/ask-auth
|
|
92
|
+
source_code_uri: https://github.com/ask-rb/ask-auth
|
|
93
|
+
changelog_uri: https://github.com/ask-rb/ask-auth/blob/master/CHANGELOG.md
|
|
90
94
|
rdoc_options: []
|
|
91
95
|
require_paths:
|
|
92
96
|
- lib
|