cocoapods-git2local 0.0.4 → 0.0.6
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/lib/cocoapods-git2local/gem_version.rb +1 -1
- data/lib/pod/git.rb +2 -0
- data/lib/pod/pod.rb +5 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aaa79b668d5de40d0c5203f194a7d03047e5cdc29322a32cd28d7deb4f6e3a1
|
4
|
+
data.tar.gz: a52bddafcbb88b293f611e562946bf9421200a124a346719f3d8656e945db023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cdcee375aaebfed9f5635430125d7ed8b36a6a74ab9b8bd99237550c9ab42f9530c6fd3260b9adfbfc1bb865ec31d4c3f26b860251fa667988bead087a5dc65
|
7
|
+
data.tar.gz: 1b29d2ee9e4e1771b88dc292e523dd7cf04edeeab5e6fb92eed1b7c5bb14538a1c618c4a2184867e2662c065b76d28ee24029a7b50b86027de2d1000eed84111
|
data/lib/pod/git.rb
CHANGED
@@ -9,6 +9,7 @@ def gitclone(git, branch, commit)
|
|
9
9
|
raise component + '存在未提交的修改'
|
10
10
|
else
|
11
11
|
system("git reset --hard")
|
12
|
+
system("git pull")
|
12
13
|
if branch
|
13
14
|
system("git checkout " + branch)
|
14
15
|
system("git pull")
|
@@ -20,6 +21,7 @@ def gitclone(git, branch, commit)
|
|
20
21
|
system("git clone " + git)
|
21
22
|
Dir.chdir(component)
|
22
23
|
p Dir.pwd
|
24
|
+
system("git pull")
|
23
25
|
system("git checkout " + commit)
|
24
26
|
end
|
25
27
|
|
data/lib/pod/pod.rb
CHANGED
@@ -29,12 +29,15 @@ module Pod
|
|
29
29
|
branch = requirements[0].key?(:branch) ? requirements[0].fetch(:branch) : nil
|
30
30
|
component = git.split("/")[4].split(".")[0]
|
31
31
|
gitclone(git, branch, commit)
|
32
|
-
|
32
|
+
requirements[0].delete(:git)
|
33
|
+
requirements[0].key?(:commit) && requirements[0].delete(:commit)
|
34
|
+
requirements[0].key?(:branch) && requirements[0].delete(:branch)
|
35
|
+
requirements[0][:path] = "../"+component+"/"
|
36
|
+
real_pod(name, *requirements, &block)
|
33
37
|
end
|
34
38
|
else
|
35
39
|
real_pod(name, *requirements, &block)
|
36
40
|
end
|
37
|
-
|
38
41
|
end
|
39
42
|
end
|
40
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-git2local
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- account120
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -55,7 +55,7 @@ homepage: https://github.com/EXAMPLE/cocoapods-git2local
|
|
55
55
|
licenses:
|
56
56
|
- MIT
|
57
57
|
metadata: {}
|
58
|
-
post_install_message:
|
58
|
+
post_install_message:
|
59
59
|
rdoc_options: []
|
60
60
|
require_paths:
|
61
61
|
- lib
|
@@ -70,8 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
|
-
rubygems_version: 3.0.
|
74
|
-
signing_key:
|
73
|
+
rubygems_version: 3.0.3.1
|
74
|
+
signing_key:
|
75
75
|
specification_version: 4
|
76
76
|
summary: clone file for podfile use git. ENV['GIT_2_LOCAL'] = "true"
|
77
77
|
test_files: []
|