cocoapods-whitelist 0.4.0 → 0.5.3

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: ffc625c9e77a33e388bb3ab6aefa68a411c867566c5ce36b5940968379158392
4
- data.tar.gz: cc94531be7b38d3083602ed904b1db8b5ff2a10fd754a2a231ee2a2cecbbbc3a
3
+ metadata.gz: df9811a2f73baf94fbffa4b66502c4b2d53235a661f29096662f5d3658584400
4
+ data.tar.gz: b8e55e5ea04eec1f3760ac15b0809d272ce723e18365bdc728abb01c01d1b206
5
5
  SHA512:
6
- metadata.gz: e0584e160d8a3d3882df0e6160ad4e6bd2618dda858b6bbe0bf29895dd65cfc664beff4984bf02dc8e5af66c5da53a37611bc23425575e57d4ef371154a6383b
7
- data.tar.gz: f138505fea9899de8b1e5a91391071dc5b114f2520ffb4fa1f5a59ae2b01eed614db6320228ac72a967febfff5fae6beea0c0cb620b0188ac7306bcbbabba2cf
6
+ metadata.gz: ef87c35379e76239424379d9225cd8646e90ad91b3963ad6d3ae8b0fbc5e435f648bd03d5107709f61be6ccf18f700b381dc837a03e0abddfc920d50d17e1766
7
+ data.tar.gz: 218f8ab7fc4d67148255629f519302f8c90716664f0fabe2f62e20bdd628ed2a056bc388c82052545ef8a378760e352d9d9d6ccf2e006fb2ab6a245e63acf81c
@@ -0,0 +1,15 @@
1
+ repos:
2
+ # Websec hook is MANDATORY, DO NOT comment it.
3
+ - repo: https://github.com/melisource/fury_websec-git-hooks
4
+ rev: v1.1.0
5
+ hooks:
6
+ - id: pre_commit_hook
7
+ stages: [commit]
8
+ - id: post_commit_hook
9
+ stages: [post-commit]
10
+ - repo: https://github.com/melisource/fury_datasec-git-hooks
11
+ rev: 1.0.3
12
+ hooks:
13
+ - id: pre_commit_hook
14
+ stages: [commit]
15
+ verbose: true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.3
2
+ ### Changed
3
+ - Get podspec specification functions changed to support KMP podspec path.
4
+
1
5
  ## 0.4.0
2
6
  ### Changed
3
7
  - Add "allows_granular_projects" flag to whitelist for support the projects specified
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-whitelist (0.4.0)
4
+ cocoapods-whitelist (0.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -47,7 +47,7 @@ module Pod
47
47
  load_excluded()
48
48
  specifications = get_podspec_specifications
49
49
 
50
- if specifications.empty?
50
+ if specifications == nil || specifications.empty?
51
51
  UI.puts "No Podspec found".yellow
52
52
  return
53
53
  end
@@ -141,17 +141,17 @@ module Pod
141
141
  if @pospec_path
142
142
  return [Pod::Specification.from_file(@pospec_path)]
143
143
  end
144
-
145
- # Search .podspec in current directory
146
- podspecs = Dir.glob("./*.podspec")
147
-
148
- if podspecs.count == 0
149
- # Search .podspec in parent directory.
150
- # Some projects has Podfile into a subdirectory ("Example"), and run "pod install" from there.
151
- podspecs = Dir.glob("../*.podspec")
144
+ # 1 Arg = Search .podspec in current directory
145
+ # 2 Arg = Search .podspec in parent and sub directories. Some projects have Podfile into a subdirectory ("Example"), and run "pod install" from there.
146
+ # 3 Arg = Search .podspec in all directories
147
+ # 4 Arg = Search .podspec in parent and sub directories. Search is executed from children folder.
148
+ podspec_search_paths = ["./*.podspec", "../*.podspec", "./**/*.podspec", "../**/*.podspec"]
149
+ podspec_search_paths.each do |regex|
150
+ pod_specs = Dir.glob(regex)
151
+ if pod_specs.count != 0
152
+ return pod_specs.map { |path| Pod::Specification.from_file(path) }
153
+ end
152
154
  end
153
-
154
- return podspecs.map { |path| Pod::Specification.from_file(path) }
155
155
  end
156
156
 
157
157
  def show_error_message(message)
@@ -1,3 +1,3 @@
1
1
  module CocoapodsWhitelist
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.3"
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.4.0
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mobile Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-28 00:00:00.000000000 Z
11
+ date: 2024-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -47,6 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - ".circleci/config.yml"
49
49
  - ".gitignore"
50
+ - ".pre-commit-config.yaml"
50
51
  - ".ruby-version"
51
52
  - CHANGELOG.md
52
53
  - Gemfile
@@ -117,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
118
  - !ruby/object:Gem::Version
118
119
  version: '0'
119
120
  requirements: []
120
- rubygems_version: 3.3.26
121
+ rubygems_version: 3.0.9
121
122
  signing_key:
122
123
  specification_version: 4
123
124
  summary: A longer description of cocoapods-whitelist.