action_ip_filter 0.4.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd87d049abbc429bef20f3c4d684efd1f94a97cf9758603e6a404ecc97c487c0
4
- data.tar.gz: 1460f97edeb6ddd39c71190ec07d866c3bc473818ab2ae852624a034027b1d7d
3
+ metadata.gz: 3ab37d67a38831a742018eff90badafe4bd649e39a4947607d771fec81cc1240
4
+ data.tar.gz: 0261b32eb41b2fcfcc5fae68a05f620a0396ebc100f190c5cf3d8f85fb7fd646
5
5
  SHA512:
6
- metadata.gz: 7e279fadffc67defc41e2447f985780fc0332022a1bce62de27b065f9e715bbf18d173f8c87aa72780d2b8b91b743d45130608235f0b6d7c42cdfa24b699518e
7
- data.tar.gz: e2918f5170516b232838a516e0ddf7c80f81cd5ef7c9359a1c07820e9ec96d1a8d91f9579824df7b535b24064596cd0da2e1d046db63146a4d3c524eeea9c0cb
6
+ metadata.gz: 7e311296f966af5e21a750be237775288405f80f4e556a52805c13966edece9cdde41d8e6a3a10e4c2d5aa8fc48b88c1671f0b87694975ff8cc6409697da6676
7
+ data.tar.gz: 38982121736b2a629323f0ee517f02154da973d7b7c051d191ab5705e4eb86593f662eb4676a3e979a35f3680655974063a2d013d3a4d7d5955f8365aa5db748
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.1] - 2025-12-01
4
+
5
+ ### Bug Fix
6
+
7
+ - Fix to allow an `Array[String]` to be used as the list of allowed IP addresses [#7](https://github.com/smartbank-inc/action_ip_filter/pull/7)
8
+
3
9
  ## [0.4.0] - 2025-12-01
4
10
 
5
11
  ### Breaking Changes
@@ -12,7 +12,7 @@ module ActionIpFilter
12
12
  # def before_action: (*untyped, **untyped) -> void
13
13
 
14
14
  class_methods do
15
- # @rbs allowed_ips: String | ^() -> Array[String]
15
+ # @rbs allowed_ips: String | Array[String] | ^() -> Array[String]
16
16
  # @rbs on_denied: (^() -> void)?
17
17
  # @rbs only: Array[Symbol]?
18
18
  # @rbs except: Array[Symbol]?
@@ -24,7 +24,7 @@ module ActionIpFilter
24
24
 
25
25
  private
26
26
 
27
- # @rbs allowed_ips: Array[String | ^() -> Array[String]]
27
+ # @rbs allowed_ips: Array[String | Array[String] | ^() -> Array[String]]
28
28
  # @rbs on_denied: (^() -> void)?
29
29
  # @rbs return: void
30
30
  def verify_ip_access(allowed_ips:, on_denied:)
@@ -38,7 +38,7 @@ module ActionIpFilter
38
38
  instance_exec(&allowed_ip)
39
39
  else
40
40
  [allowed_ip]
41
- end
41
+ end.flatten
42
42
 
43
43
  IpMatcher.allowed?(client_ip, ips)
44
44
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionIpFilter
4
- VERSION = "0.4.0" #: String
4
+ VERSION = "0.4.1" #: String
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_ip_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SmartBank, Inc.