cocoapods-cafswitcher 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54a736cff9760f59099f7cd9e00de5f04ca7d2d4e4d23c3c243bd395c82560e0
4
- data.tar.gz: 42d52fc682bddeedef53b731f1704a8b0d1451edbecda27aef8cc686ed5033bc
3
+ metadata.gz: b9acf9605fbb9ba3a6393cf45bf7b6ee0604aa6898320843beee1c16f554daf8
4
+ data.tar.gz: ee8a3a92f84064e83e8641631904e67e7de5bac71ee94428b7f35c79f58db5e8
5
5
  SHA512:
6
- metadata.gz: d4acb5b8fdc0609355a5b74d87776632cb0a366eabfd1375dc19e94415076142f1ed19b654b0ab0b96af6863ca8406c236249e0f042d26b151d49e9162d1521e
7
- data.tar.gz: 655783e68aa66669e00fa206108c79bc22589c43d1a83fb4cf75591b3c7e8625d043596b624b2e9ed53b97f3c75b13dbd4eb9127709c471f6ac5c61dce606db9
6
+ metadata.gz: 245be5e315bff57aae56c1d7d45a234343464470a742c7c35f8b734972367ebd63f401ee24435d476ea536db31299acb1df2d3cb85dab7c81895a9c0fe284357
7
+ data.tar.gz: a05d12bf08cc7654542e5f989a23162465e535a7a2138bdcda0f5182864ae46e335c55b681bcbf5934da9f01b6af03a1bbe6e4589d4d77cad39daea8ecaa2a5e
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  pkg
3
3
  .idea/
4
4
  Example/
5
+ test.rb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-cafswitcher (0.0.1)
4
+ cocoapods-cafswitcher (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -167,7 +167,9 @@ Pod::HooksManager.register('cocoapods-cafswitcher', :pre_install) do |installer_
167
167
  podRoot = config.project_pods_root
168
168
  changedPods.each do |changedPod|
169
169
  # TODO如果pod 里没有用到preserve_paths,需要清除 pod cache clean
170
-
170
+ cacheCleanCMD = "pod cache clean #{changedPod} --all"
171
+ out = `#{cacheCleanCMD}`.lines.to_a
172
+ puts out
171
173
  # 清除目录 pods 文件夹下的缓存
172
174
  changedPodPath = podRoot + changedPod
173
175
  FileUtils.rm_r(changedPodPath) if changedPodPath.exist?
@@ -1,3 +1,3 @@
1
1
  module CocoapodsCafswitcher
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-cafswitcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - handa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-28 00:00:00.000000000 Z
11
+ date: 2018-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler