auth-sanitizer 0.1.3 → 0.1.4

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: fe6ea000d97d7116cf66f7a69b7c8f7d4ea7dc6e1dbdc7df6f073a79841c8513
4
- data.tar.gz: 77955bc562916c9de289b05111325bcc5b42d40633747f241e5c33a82d99ad1a
3
+ metadata.gz: 134e152d645296157cf025d9f20f4b025c2d08c93e73309112d6a7e7a9f785c3
4
+ data.tar.gz: 379cd508b6292e2c1185a5ac698f6f0d641c5f3bd5a9ea7163021cb07afa4544
5
5
  SHA512:
6
- metadata.gz: 31f37a6ccaa844c1de2b88e0f80b3bf361dd73be273dd1a7825464c5c1f1b9a80a7740e75e8a4654e1ba036a8e1d4597aa527f6b853306cf605d2bf99312618a
7
- data.tar.gz: a6317b6c5419c44f15be4d53c858d54a233b892f9f0a52324d8620e1d2037d1494190cebcab91d44ba223805b35326cdc563d5b2d1bdbe39c422b35df6d3f33a
6
+ metadata.gz: d2e89fd515ca049f65513c2ebc298734059633723277ae406d00d930323aa4b16ed4107e18e89e794e8baf2068724abc9ca0397b986f1724c700308165d7bea1
7
+ data.tar.gz: d744e2ee6178191389e5ed202e9013114bd939de28c73323cad589afb6175a4b38045356b911523d54865c262a3c8a3beb05d91fc7e9b96fb44de477a7bc62f1
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,22 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [0.1.4] - 2026-05-21
34
+
35
+ - TAG: [v0.1.4][0.1.4t]
36
+ - COVERAGE: 100.00% -- 135/135 lines in 6 files
37
+ - BRANCH COVERAGE: 100.00% -- 28/28 branches in 6 files
38
+ - 84.62% documented
39
+
40
+ ### Changed
41
+
42
+ - (docs) Document constrained `auth-sanitizer` version lookup for isolated loader examples
43
+ - (dev) Make templating dependencies opt-in for the main `Gemfile`
44
+
45
+ ### Fixed
46
+
47
+ - (test) Stop running Appraisal install steps in the locked-deps workflow for the main `Gemfile`
48
+
33
49
  ## [0.1.3] - 2026-05-20
34
50
 
35
51
  - TAG: [v0.1.3][0.1.3t]
@@ -79,7 +95,9 @@ Please file a bug if you notice a violation of semantic versioning.
79
95
 
80
96
  - Initial release
81
97
 
82
- [Unreleased]: https://github.com//ruby-oauth/auth-sanitizer/compare/v0.1.3...HEAD
98
+ [Unreleased]: https://github.com//ruby-oauth/auth-sanitizer/compare/v0.1.4...HEAD
99
+ [0.1.4]: https://github.com//ruby-oauth/auth-sanitizer/compare/v0.1.3...v0.1.4
100
+ [0.1.4t]: https://github.com//ruby-oauth/auth-sanitizer/releases/tag/v0.1.4
83
101
  [0.1.3]: https://github.com//ruby-oauth/auth-sanitizer/compare/v0.1.2...v0.1.3
84
102
  [0.1.3t]: https://github.com//ruby-oauth/auth-sanitizer/releases/tag/v0.1.3
85
103
  [0.1.2]: https://github.com//ruby-oauth/auth-sanitizer/compare/v0.1.1...v0.1.2
data/README.md CHANGED
@@ -248,12 +248,18 @@ A gem that needs zero new top-level namespaces from this dependency can load the
248
248
  namespace. On Ruby 3.1+, use `Kernel.load(path, module)`:
249
249
 
250
250
  ```ruby
251
- auth_sanitizer_spec = Gem.loaded_specs["auth-sanitizer"] ||
252
- Gem::Specification.find_by_name("auth-sanitizer")
251
+ auth_sanitizer_requirement = Gem::Requirement.new("~> 0.1", ">= 0.1.3")
252
+ auth_sanitizer_spec = Gem.loaded_specs["auth-sanitizer"]
253
+ unless auth_sanitizer_spec && auth_sanitizer_requirement.satisfied_by?(auth_sanitizer_spec.version)
254
+ auth_sanitizer_spec = Gem::Specification.find_by_name("auth-sanitizer", auth_sanitizer_requirement)
255
+ end
253
256
  auth_sanitizer_loader_path = File.join(
254
257
  auth_sanitizer_spec.full_gem_path,
255
258
  "lib/auth_sanitizer/loader.rb",
256
259
  )
260
+ unless File.file?(auth_sanitizer_loader_path)
261
+ raise LoadError, "auth-sanitizer #{auth_sanitizer_requirement} loader not found at #{auth_sanitizer_loader_path}"
262
+ end
257
263
 
258
264
  auth_sanitizer_loader_namespace = Module.new
259
265
  Kernel.load(auth_sanitizer_loader_path, auth_sanitizer_loader_namespace)
@@ -274,12 +280,18 @@ Ruby 2.2 through Ruby 3.0 do not support `Kernel.load(path, module)`. For those
274
280
  inside an anonymous namespace with `Module#module_eval`:
275
281
 
276
282
  ```ruby
277
- auth_sanitizer_spec = Gem.loaded_specs["auth-sanitizer"] ||
278
- Gem::Specification.find_by_name("auth-sanitizer")
283
+ auth_sanitizer_requirement = Gem::Requirement.new("~> 0.1", ">= 0.1.3")
284
+ auth_sanitizer_spec = Gem.loaded_specs["auth-sanitizer"]
285
+ unless auth_sanitizer_spec && auth_sanitizer_requirement.satisfied_by?(auth_sanitizer_spec.version)
286
+ auth_sanitizer_spec = Gem::Specification.find_by_name("auth-sanitizer", auth_sanitizer_requirement)
287
+ end
279
288
  auth_sanitizer_loader_path = File.join(
280
289
  auth_sanitizer_spec.full_gem_path,
281
290
  "lib/auth_sanitizer/loader.rb",
282
291
  )
292
+ unless File.file?(auth_sanitizer_loader_path)
293
+ raise LoadError, "auth-sanitizer #{auth_sanitizer_requirement} loader not found at #{auth_sanitizer_loader_path}"
294
+ end
283
295
 
284
296
  auth_sanitizer_loader_namespace = Module.new
285
297
  auth_sanitizer_loader_namespace.module_eval(
data/REEK CHANGED
@@ -1,2 +0,0 @@
1
- ./reek: 1: Error:: not found
2
- ./reek: 2: Error:: not found
@@ -3,7 +3,7 @@
3
3
  module Auth
4
4
  module Sanitizer
5
5
  module Version
6
- VERSION = "0.1.3"
6
+ VERSION = "0.1.4"
7
7
  end
8
8
  VERSION = Version::VERSION # Traditional Constant Location
9
9
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth-sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -251,10 +251,10 @@ licenses:
251
251
  - MIT
252
252
  metadata:
253
253
  homepage_uri: https://auth-sanitizer.galtzo.com/
254
- source_code_uri: https://github.com/ruby-oauth/auth-sanitizer/tree/v0.1.3
255
- changelog_uri: https://github.com/ruby-oauth/auth-sanitizer/blob/v0.1.3/CHANGELOG.md
254
+ source_code_uri: https://github.com/ruby-oauth/auth-sanitizer/tree/v0.1.4
255
+ changelog_uri: https://github.com/ruby-oauth/auth-sanitizer/blob/v0.1.4/CHANGELOG.md
256
256
  bug_tracker_uri: https://github.com/ruby-oauth/auth-sanitizer/issues
257
- documentation_uri: https://www.rubydoc.info/gems/auth-sanitizer/0.1.3
257
+ documentation_uri: https://www.rubydoc.info/gems/auth-sanitizer/0.1.4
258
258
  funding_uri: https://github.com/sponsors/pboling
259
259
  wiki_uri: https://github.com/ruby-oauth/auth-sanitizer/wiki
260
260
  news_uri: https://www.railsbling.com/tags/auth-sanitizer
metadata.gz.sig CHANGED
Binary file