katalyst-basic-auth 0.4.0 → 0.5.0

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: 2ba4ca13e4d93df610df02a04c6282aa5320c47ffe44cf15b17ee9484ff7ec4b
4
- data.tar.gz: 0fab877c0d5f4cd3dda28b2cd169c2339fda404e4d0033efbf202e4ed583c8ea
3
+ metadata.gz: 41f54ddbd66ceccb23388677ecf248089a03302ec1bf0a000c93d0e5d4ec251a
4
+ data.tar.gz: 4183373946dd4df7848c0988b00beb95f144b1341d58cff5f3024458ec935dc7
5
5
  SHA512:
6
- metadata.gz: 30d91927431d0f6c1a823ca25876c6995614f66e676fd3d4f83a4607becc6edb861ae1c52e5afb7ff247ce375e3f5401c4c0b12abecb94f166542ddb7595a925
7
- data.tar.gz: 730907dfaca349496752303bee3778fabff379255ef6255a1db9e8c5ae39889040e22f69a112e291fc507c95bb28cf42bf1b6e7f161c00f4e2c5452ca27cc718
6
+ metadata.gz: 334cf7d8ab929fa675f2179e85743423f9fa50e15f528c403b1e8b627ce6a4b1816bbce85a69a99bdbd40163f2ba0c1c9889f370d6390a6322abaf7f1e4fe6e3
7
+ data.tar.gz: 7b4d85c560cebf72d748e9e65bae30ce9216e5292a80913aa86919bb24b2b250404199ad960dfa4bb8a1fe20d5e2c7efecb8bede9b18fdbdfe66be8eccbb5ad1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.5.0] - 2024-04-26
2
+
3
+ - Add `/up` as a default allowed path (Rails 7.1+ health check)
4
+
1
5
  ## [0.4.0] - 2022-06-10
2
6
 
3
7
  - Add support for IP address allowlists
data/README.md CHANGED
@@ -56,7 +56,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
56
56
 
57
57
  ## Contributing
58
58
 
59
- Bug reports and pull requests are welcome on GitHub at https://github.com/katalyst/katalyst-basic-auth. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/katalyst-basic-auth/blob/master/CODE_OF_CONDUCT.md).
59
+ Bug reports and pull requests are welcome on GitHub at https://github.com/katalyst/basic-auth. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/katalyst-basic-auth/blob/master/CODE_OF_CONDUCT.md).
60
60
 
61
61
  ## License
62
62
 
@@ -46,12 +46,16 @@ module Katalyst
46
46
  config
47
47
  end
48
48
 
49
+ def up(path = "/up")
50
+ new(path: path, enabled: false)
51
+ end
52
+
49
53
  def all
50
- @all ||= [new]
54
+ @all ||= [new, up]
51
55
  end
52
56
 
53
57
  def reset!
54
- @all = [new]
58
+ @all = [new, up]
55
59
  end
56
60
 
57
61
  def each(&block)
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "auth/version"
4
3
  require_relative "auth/config"
5
4
  require_relative "auth/middleware"
6
5
  require_relative "auth/rails" if defined?(Rails)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-basic-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -26,7 +26,7 @@ dependencies:
26
26
  version: '0'
27
27
  description: Makes it easy to add basic auth on staging and development apps.
28
28
  email:
29
- - admin@katalyst.com.au
29
+ - developers@katalyst.com.au
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
@@ -39,7 +39,6 @@ files:
39
39
  - lib/katalyst/basic/auth/middleware.rb
40
40
  - lib/katalyst/basic/auth/rails.rb
41
41
  - lib/katalyst/basic/auth/tasks/auth.rake
42
- - lib/katalyst/basic/auth/version.rb
43
42
  homepage: https://github.com/katalyst/katalyst-basic-auth
44
43
  licenses:
45
44
  - MIT
@@ -47,9 +46,9 @@ metadata:
47
46
  allowed_push_host: https://rubygems.org
48
47
  rubygems_mfa_required: 'true'
49
48
  homepage_uri: https://github.com/katalyst/katalyst-basic-auth
50
- source_code_uri: https://github.com/katalyst/katalyst-basic-auth
51
- changelog_uri: https://github.com/katalyst/katalyst-basic-auth/blob/main/CHANGELOG.md
52
- post_install_message:
49
+ source_code_uri: https://github.com/katalyst/basic-auth
50
+ changelog_uri: https://github.com/katalyst/basic-auth/blob/main/CHANGELOG.md
51
+ post_install_message:
53
52
  rdoc_options: []
54
53
  require_paths:
55
54
  - lib
@@ -64,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
63
  - !ruby/object:Gem::Version
65
64
  version: '0'
66
65
  requirements: []
67
- rubygems_version: 3.3.15
68
- signing_key:
66
+ rubygems_version: 3.4.19
67
+ signing_key:
69
68
  specification_version: 4
70
69
  summary: Gem to add basic auth on staging websites
71
70
  test_files: []
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Katalyst
4
- module Basic
5
- module Auth
6
- VERSION = "0.4.0"
7
- end
8
- end
9
- end