cocoapods-dev-env 0.2.3 → 0.2.4

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: cdaaaa859c28266f342600dc39eacd9a82817496b8680c85970ae5642a6e75b1
4
- data.tar.gz: e8b52c83fc9ebf8fa185e4ff5d621408871750034ed858e774c2adb03f822330
3
+ metadata.gz: 86ea3266601b7a7b150bcb8ebbdbd61244bb0047551856f28d36144a93ee2d9d
4
+ data.tar.gz: 11281a84183572629f5d3291e44f95b30b06aee4a0a032b79beaede2d25f210a
5
5
  SHA512:
6
- metadata.gz: 75e8545e0f78c61f9b0a4f52daee4040b40571be323a05868732b895846cffea23608ef44f352a3212120338490b71d8e88384a05571dab3dad69996455d4fb8
7
- data.tar.gz: 2dd3097002e4b0b93d02106ef84286d466009afef74a178ef5e78f0f39e3463eaf9b36b85c238c25b0c38d83a4d046843e68baf80f95806eae74989608ef3397
6
+ metadata.gz: e29f5ea8412543bea24745770796baf459af98efdc84849112bd5be23be36d69a1f5e244b7cbcaea5218085ea41f84b5e994c2d31e6f36ca4472c0ea71787a5b
7
+ data.tar.gz: a0eea3c7c4afcc3b0ff08c0486e925c26d9823a67f198cf57dc7f87a6f15b0efb426114b91a944f24968985344685c34de1cbadd2a689a144aaf2bd296189a37
@@ -1,7 +1,7 @@
1
1
  module Cocoapods
2
2
  module Dev
3
3
  module Env
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
6
6
  end
7
7
  end
@@ -41,6 +41,15 @@ class Podfile
41
41
  `
42
42
  end
43
43
 
44
+ def checkTagIsEqualToHead(tag, path)
45
+ currentDir = Dir.pwd
46
+ Dir.chdir(path)
47
+ result = `git describe --abbrev=4 HEAD`
48
+ Dir.chdir(currentDir)
49
+ return result.include?(tag)
50
+ end
51
+
52
+ # 这个函数有问题有时候拿不到相同的commit id
44
53
  def checkTagOrBranchIsEqalToHead(branchOrTag, path)
45
54
  currentDir = Dir.pwd
46
55
  Dir.chdir(path)
@@ -85,7 +94,7 @@ class Podfile
85
94
  UI.puts "####### add submodule for #{pod_name}"
86
95
  `git submodule add --force -b #{branch} #{git} #{path}`
87
96
 
88
- if !checkTagOrBranchIsEqalToHead(tag, path) && !checkTagOrBranchIsEqalToHead("#{tag}_beta", path)
97
+ if !checkTagIsEqualToHead(tag, path) && !checkTagIsEqualToHead("#{tag}_beta", path)
89
98
  raise "#{pod_name} branch:#{branch} 与 tag:#{tag}[_beta] 内容不同步,请自行确认所用分支和tag后重新执行 pod install"
90
99
  end
91
100
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-dev-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 吴锡苗