cocoapods-dev-env 0.2.0 → 0.2.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/lib/cocoapods/dev/env/version.rb +1 -1
- data/lib/cocoapods_plugin.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0997516ff8d1c908a0a6c089df0ccc7350a635d8dd2778fd4103462d182be4d7'
|
|
4
|
+
data.tar.gz: 4d67aae41e8b723836a9ff9b2f571b5eeb36356e79631f32460444a5c6181454
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1ed5c50e49c4700e10c95e685565545cb861e2cc10cd7ccdf710bddd192eb819ee1ece0fd380636243db884a5dfbf1745de0111f016e899a107733191eb84e6
|
|
7
|
+
data.tar.gz: 877bbfa884705d2070ca75d69971240183860f994a90c957c444dc6c415e42dc446a18a8f5e05fe64a87f7cbbe64ace1fbf5fe0ef2d4a0f85ebd6a22843c807f
|
data/lib/cocoapods_plugin.rb
CHANGED
|
@@ -46,7 +46,7 @@ class Podfile
|
|
|
46
46
|
Dir.chdir(path)
|
|
47
47
|
headCommitID = `git rev-parse HEAD`
|
|
48
48
|
tagCommitID = `git rev-parse #{branchOrTag}`
|
|
49
|
-
UI.puts headCommitID
|
|
49
|
+
UI.puts "#{`pwd`} headCommitID:#{headCommitID} \n #{branchOrTag}ComitID:#{tagCommitID}"
|
|
50
50
|
Dir.chdir(currentDir)
|
|
51
51
|
return (headCommitID.length > 0 && headCommitID == tagCommitID)
|
|
52
52
|
end
|
|
@@ -93,13 +93,13 @@ class Podfile
|
|
|
93
93
|
UI.puts "####### enabled dev-mode for #{pod_name}"
|
|
94
94
|
elsif dev_env == 'beta'
|
|
95
95
|
# Beta模式,使用tag引用远端git库的代码
|
|
96
|
+
tag = "#{tag}_beta"
|
|
96
97
|
if File.directory?(path)
|
|
97
98
|
# 从Dev模式刚刚切换过来,需要打tag并且push
|
|
98
99
|
UI.puts "####### gen beta env for #{pod_name}"
|
|
99
100
|
if tag == nil || tag.length == 0
|
|
100
101
|
raise "#{pod_name} 未定义tag"
|
|
101
102
|
end
|
|
102
|
-
tag = "#{tag}_beta"
|
|
103
103
|
currentDir = Dir.pwd
|
|
104
104
|
Dir.chdir(path)
|
|
105
105
|
output = `git status -s`
|