podfileDep 1.1.0 → 1.1.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 +4 -4
- data/CHANGELOG.md +11 -3
- data/Gemfile.lock +1 -1
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep.rb +23 -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: 11e24ff9b767c792185f1c0dc1b373f79dc017fdcc1d6d13b8a445bebca1f128
|
4
|
+
data.tar.gz: 3af243ba521ba0097bd7a9bfd1ddc01c26af23ec33ed21165945b4dff16b241d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2385d0ad73e460988244cf2f2c18b11e78cef9ab81c14e89cd1d15e077773583198236772fb1f23caf5708bcc022235bfe0ded4f0c10586aff832a887b0b58c
|
7
|
+
data.tar.gz: c812cb1e3f9e6c725504f9f323d8e6c32f732706c38e9f22f3188a962b561193b4e2fd705a83758b4565a57084323b751677969a5466ae0c5d206b95220d466c
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/podfileDep/version.rb
CHANGED
data/lib/podfileDep.rb
CHANGED
@@ -783,9 +783,32 @@ 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
|
+
end
|
786
808
|
end
|
787
809
|
|
788
810
|
END {
|
811
|
+
SpecialDeal.FBRetainCycleDetector()
|
789
812
|
ImportCheck.check()
|
790
813
|
PodfileDep.logIndirectDependencies()
|
791
814
|
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.1
|
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-02-16 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.
|