cocoapods-whitelist 0.6.0 → 0.6.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: 9d685e7d3ecfd6024fdbb0b9577d62d53d280e7f346e14d48dc88e34a0e9784f
4
- data.tar.gz: 7dbfabce7783d4ca5272b62247201cda5dcda61c507e8994496fc60d11e764e4
3
+ metadata.gz: 812928b8696a418ab09f34b1a7d000e1e187a444c152e4690642183320f74315
4
+ data.tar.gz: 8063489e178f160785276ae775bbc56c65d73735224f2ae35dda6bd616fb10ab
5
5
  SHA512:
6
- metadata.gz: 254bbf0617736c0c8887f24a295d5fb17a8582be275d5d1bd70d1632ad4e8d1f96b04993b01fa49170fd054be1073c89a53cd0f39ece5dfa9c59e28379efdc66
7
- data.tar.gz: f17cfb337c52ec7fb52daf2b6b212725bdffff2ebb07d7ce80d656941485a5c2303328f39fa977500b7fa5592579329c0cc21497ad5e345c521eb6befbb4e6e2
6
+ metadata.gz: 73bdf4a550206d09c461f2ee2d6b2183ef300e7ef20b6276234e4ddf66c8e2c3597cb66888ebf39b94b31dd59071a4c323085c5704b16dab7165c725d7296add
7
+ data.tar.gz: be0a53e0a77f39958b0508cfeb41f92b85925843ba8e1d035163cea1ff16e7ea063d2abf800048e835fcd17d43aa8302b01922b97dfe3a6ca550e0d038c21873
@@ -50,7 +50,7 @@ module Pod
50
50
  end
51
51
 
52
52
  specifications.map do |specification|
53
- unless @excluded_list.one? {|excluded| excluded.name == specification.name }
53
+ unless is_excluded?(specification.name)
54
54
  Pod::UI.notice "#{specification.name} validating"
55
55
  validate_dependencies(JSON.parse(specification.to_json), allowlist)
56
56
  end
@@ -206,6 +206,16 @@ module Pod
206
206
  }
207
207
  end
208
208
 
209
+ # Check if a specification name matches any excluded pattern
210
+ # Supports both exact matches and wildcard patterns (using *)
211
+ def is_excluded?(spec_name)
212
+ return false unless @excluded_list
213
+
214
+ @excluded_list.any? do |excluded|
215
+ spec_name.match?(/^#{Regexp.escape(excluded.name)}/)
216
+ end
217
+ end
218
+
209
219
  end
210
220
  end
211
221
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAllowlist
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-whitelist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mobile Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-10 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler