podfileDep 1.1.0 → 1.1.2
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 +4 -4
- data/CHANGELOG.md +15 -3
- data/Gemfile.lock +1 -1
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep.rb +24 -0
- data/podfileDep.gemspec +38 -0
- data/release.sh +6 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dc6f3e3b3a814c90124f50277cbbd404bbc6aa8efa974236d983aaa90f3ad94
|
4
|
+
data.tar.gz: 0f8f800e9401d217aa2fec5d0d088ecba8e86370a641a67bd0d0c9fae8dd63ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c57a1baca66602dbf3f64d427e8332576ebeca97fed65af51c8fb25842a2b63a466fbfdd90891bb87363d68969c7b793f06fb696df3a3eb4b5738db780e52274
|
7
|
+
data.tar.gz: bfd0da47da0b8a7f9fe20523ddeb631ec99497508b83200d38651b65e6ca1abc4da1f28c381f44d3a0937306bf33a406e5ca2c15a3388a26b4093228694fff2c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
|
-
## [
|
1
|
+
## [Released]
|
2
2
|
|
3
|
-
## [
|
3
|
+
## [1.1.0] - 2023-01-16
|
4
4
|
|
5
|
-
-
|
5
|
+
- 初始功能完成,对Podfile文件托管
|
6
|
+
|
7
|
+
## [1.1.0] - 2023-02-01
|
8
|
+
|
9
|
+
- 初始化参数简化
|
10
|
+
|
11
|
+
## [1.1.1] - 2023-02-16
|
12
|
+
|
13
|
+
- 对FBRetainCycleDetector组件编译报错的处理
|
14
|
+
|
15
|
+
## [1.1.2] - 2023-03-02
|
16
|
+
|
17
|
+
- 对FBRetainCycleDetector库中fishhook崩溃问题的处理
|
data/Gemfile.lock
CHANGED
data/lib/podfileDep/version.rb
CHANGED
data/lib/podfileDep.rb
CHANGED
@@ -783,9 +783,33 @@ class PathUtil
|
|
783
783
|
return File.expand_path(des_path).gsub("\n", "")
|
784
784
|
end
|
785
785
|
|
786
|
+
def PathUtil.replaceStr(file_path, findstr, replacestr)
|
787
|
+
unless File.exist?(file_path)
|
788
|
+
return
|
789
|
+
end
|
790
|
+
|
791
|
+
FileUtils.chmod("+w", file_path)
|
792
|
+
text = File.read(file_path)
|
793
|
+
replace = text.gsub(findstr, replacestr)
|
794
|
+
if text != replace
|
795
|
+
File.open(file_path, "w") { |file| file.puts replace }
|
796
|
+
STDOUT.flush
|
797
|
+
file_name = File.basename(file_path)
|
798
|
+
puts "代码替换: #{file_name} (#{findstr} => #{replacestr})"
|
799
|
+
end
|
800
|
+
end
|
801
|
+
|
802
|
+
end
|
803
|
+
|
804
|
+
module SpecialDeal
|
805
|
+
def SpecialDeal.FBRetainCycleDetector()
|
806
|
+
PathUtil.replaceStr("Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm", "layoutCache[currentClass] = ivars;", "layoutCache[(id<NSCopying>)currentClass] = ivars;")
|
807
|
+
PathUtil.replaceStr("Pods/FBRetainCycleDetector/fishhook/fishhook.c", "indirect_symbol_bindings[i] = cur->rebindings[j].replacement;", "if(i < (sizeof(indirect_symbol_bindings) /sizeof(indirect_symbol_bindings[0]))) {indirect_symbol_bindings[i]=cur->rebindings[j].replacement;}")
|
808
|
+
end
|
786
809
|
end
|
787
810
|
|
788
811
|
END {
|
812
|
+
SpecialDeal.FBRetainCycleDetector()
|
789
813
|
ImportCheck.check()
|
790
814
|
PodfileDep.logIndirectDependencies()
|
791
815
|
PodfileDep.logUnusedDependencies()
|
data/podfileDep.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/podfileDep/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "podfileDep"
|
7
|
+
spec.version = PodfileDep::VERSION
|
8
|
+
spec.authors = ["WANGSHUAIPENG"]
|
9
|
+
spec.email = ["wsp810@163.com"]
|
10
|
+
|
11
|
+
spec.summary = " Write a short summary, because RubyGems requires one."
|
12
|
+
spec.description = "iOS 端Podfile文件托管"
|
13
|
+
spec.homepage = "https://gitee.com/sourceiOS/podfileDep"
|
14
|
+
spec.required_ruby_version = ">= 2.6.0"
|
15
|
+
|
16
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
17
|
+
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = "https://gitee.com/sourceiOS/podfileDep"
|
20
|
+
spec.metadata["changelog_uri"] = "https://gitee.com/sourceiOS/podfileDep"
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(__dir__) do
|
25
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
27
|
+
end
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
# Uncomment to register a new dependency of your gem
|
34
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
35
|
+
|
36
|
+
# For more information and examples about making a new gem, check out our
|
37
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
38
|
+
end
|
data/release.sh
ADDED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: podfileDep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WANGSHUAIPENG
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: iOS 端Podfile文件托管
|
14
14
|
email:
|
15
15
|
- wsp810@163.com
|
16
16
|
executables: []
|
@@ -25,6 +25,8 @@ files:
|
|
25
25
|
- Rakefile
|
26
26
|
- lib/podfileDep.rb
|
27
27
|
- lib/podfileDep/version.rb
|
28
|
+
- podfileDep.gemspec
|
29
|
+
- release.sh
|
28
30
|
- sig/podfileDep.rbs
|
29
31
|
homepage: https://gitee.com/sourceiOS/podfileDep
|
30
32
|
licenses: []
|
@@ -47,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
49
|
- !ruby/object:Gem::Version
|
48
50
|
version: '0'
|
49
51
|
requirements: []
|
50
|
-
rubygems_version: 3.
|
52
|
+
rubygems_version: 3.4.6
|
51
53
|
signing_key:
|
52
54
|
specification_version: 4
|
53
55
|
summary: Write a short summary, because RubyGems requires one.
|