cocoapods-keep-multiversion-cache 0.3 → 0.3.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
- SHA256:
3
- metadata.gz: 463f942377e6a189b081564d69d21bbe2acef5afe8abcd458ca811df64995362
4
- data.tar.gz: 95cb771dc175857140e1bf5c969dc10235bdb0a404c6ed525967056fc833c2ac
2
+ SHA1:
3
+ metadata.gz: 26550730a617a62191bd740e6445d6f7f7a431b8
4
+ data.tar.gz: 57a3a4c8a1dbb4b2ae70bad5eebf804f771bdfc1
5
5
  SHA512:
6
- metadata.gz: a99daeb92d58cc60248fc2615c86f5ee0cd797157f84536139731401c86cff0d6131fe29818b1dacc411e46e955d84dc5a5e28586425e5f6b1ed101bbe6d1bec
7
- data.tar.gz: 96a0778400aceab6601c63710e83eeba5d6786870354bc4b3ba33e005ddbf57cf970766e66b7fbcc56f7dd5c5298a5805e1fd1ec6527cde079bceacbbd0299d9
6
+ metadata.gz: 4f6629dc338bcefbb0d18ab40ae267afb8966aa48c66be1af26be302d70a95fead33a7e4392a7715f26e69d878a1cc129d68ff615080e068f60fa6cb1b64dfaa
7
+ data.tar.gz: dd8a1add8325301dc069fc1e6151b5335e5ccea0889dd51c16d5acf3d6efcb1906bc9dae02b749853ff2bc26a61808586ddb6fc7330b7b1d9ec64909028e4db6
@@ -1,3 +1,3 @@
1
1
  module CocoapodsKeepMultiversionCache
2
- VERSION = "0.3"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -7,13 +7,9 @@ module Pod
7
7
 
8
8
  # override
9
9
  def initialize(root)
10
- @root = Pathname(root)
11
- @root += Pod::VERSION # this line is added by plugin
10
+ @root = Pathname.new(Dir.home) + "Library/Caches/CocoaPods/#{Pod::VERSION}" # this line is added by plugin
12
11
  #ensure_matching_version # this line is deleted by plugin
13
-
14
12
  UI.message "Using pods cache of path: #{@root} (by cocoapods-keep-multiversion-cache)" # this line is added by plugin
15
- @keep_multiversion_cache_root = @root # this line is added by plugin. save a path for later checking
16
- @keep_multiversion_cache_original = Pathname(root) # this line is added by plugin. save a path for later checking
17
13
  end
18
14
 
19
15
  # print the cache when verbose
@@ -21,12 +17,6 @@ module Pod
21
17
 
22
18
  old_copy_and_clean = instance_method(:copy_and_clean)
23
19
  define_method(:copy_and_clean) do |source, destination, spec|
24
-
25
- # check the path, if it has been modified by other plugin
26
- unless @keep_multiversion_cache_root == @root
27
- UI.puts "[!] Cache path is not we desired. Current: #{@root}, Desired: #{@keep_multiversion_cache_root}, Cocoapods Original: #{@keep_multiversion_cache_original} (by cocoapods-keep-multiversion-cache)".yellow
28
- end
29
-
30
20
  # add verbose log
31
21
  UI.message "Saving pod cache (#{spec.name}) to #{destination} (by cocoapods-keep-multiversion-cache)"
32
22
  old_copy_and_clean.bind(self).(source, destination, spec)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-keep-multiversion-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-29 00:00:00.000000000 Z
11
+ date: 2019-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,7 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.0.1
78
+ rubyforge_project:
79
+ rubygems_version: 2.5.2.3
79
80
  signing_key:
80
81
  specification_version: 4
81
82
  summary: A longer description of cocoapods-keep-multiversion-cache.