cocoapods-binary-cache 0.1.1 → 0.1.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: 284d9870e8f4938c92a779543fffa2810804096cb6cf8504a68cc20c0307acfe
4
- data.tar.gz: 7f0ef9d6f2a0afe33cd6fe1c05c77c0ec51d1598f746fbe090faea61ac6cc513
3
+ metadata.gz: 9f1e025f0f15030692b54a837f0570f8407e19b83a073f8aa39f3f0a7e37fa49
4
+ data.tar.gz: 68a219a8f46e33712e4471295ba767e4cf523152a060d1bf4ada279096803eb4
5
5
  SHA512:
6
- metadata.gz: c3287b32dda1506122f0b1d89be9cf413970c8f3389bc538680db8addfe83ca273df223ded9b31dd3c9ee59c5791331ebee87c93f6f85c3437920d29500952ec
7
- data.tar.gz: 7ff8a381f96027f7f45321ef2979f43e5383b8f7dfb787adafd2c7afa0348454632a7ab73b43cb2ff05a89aa15c1aac6ff54f245192d86549d63521b612f56af
6
+ metadata.gz: d64cfaed327ace3fb95372be38dff97ec3ea059eb97d64053e2c7b213efb71c53b77f27d8ed38e1d7521f7992dede01d73ad670f86cfd7928e4ca4bc41f7b4d0
7
+ data.tar.gz: 3895ac6b33beabfe3d78210b76712b68096852886e527882e68100888b322404b35399b21211dc02d38192d35d2038784bbc67e4e869814fc2ab0547813ef760
@@ -1,4 +1,2 @@
1
1
  # Copyright 2019 Grabtaxi Holdings PTE LTE (GRAB), All rights reserved.
2
2
  # Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
3
-
4
- require "cocoapods-binary-cache/gem_version"
@@ -35,7 +35,12 @@ module PodPrebuild
35
35
  FileUtils.rm_rf(@config.prebuild_path)
36
36
  FileUtils.mkdir_p(@config.prebuild_path)
37
37
 
38
- FileUtils.cp(@config.manifest_path(in_cache: true), @config.manifest_path)
38
+ if File.exist?(@config.manifest_path(in_cache: true))
39
+ FileUtils.cp(
40
+ @config.manifest_path(in_cache: true),
41
+ @config.manifest_path
42
+ )
43
+ end
39
44
  Dir[@config.generated_frameworks_dir(in_cache: true) + "/*.zip"].each do |path|
40
45
  ZipUtils.unzip(path, to_dir: @config.generated_frameworks_dir)
41
46
  end
@@ -39,6 +39,7 @@ module PodPrebuild
39
39
  end
40
40
 
41
41
  def zip_to_cache(pods_to_update)
42
+ FileUtils.mkdir_p(@config.generated_frameworks_dir(in_cache: true))
42
43
  pods_to_update.each do |pod|
43
44
  Pod::UI.puts "- Update cache: #{pod}"
44
45
  ZipUtils.zip(
@@ -5,7 +5,7 @@ module PodPrebuild
5
5
  out_path = to_dir.nil? ? "#{basename}.zip" : "#{to_dir}/#{basename}.zip"
6
6
  cmd = []
7
7
  cmd << "cd" << File.dirname(path)
8
- cmd << "&& zip --symlinks" << out_path << basename
8
+ cmd << "&& zip -r --symlinks" << out_path << basename
9
9
  cmd << "&& cd -"
10
10
  `#{cmd.join(" ")}`
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-binary-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bang Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-29 00:00:00.000000000 Z
11
+ date: 2020-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -39,33 +39,33 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: xcpretty
42
+ name: rgl
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.0
47
+ version: 0.5.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.0
54
+ version: 0.5.6
55
55
  - !ruby/object:Gem::Dependency
56
- name: rgl
56
+ name: xcpretty
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.5.6
61
+ version: 0.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.5.6
68
+ version: 0.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +115,6 @@ files:
115
115
  - lib/cocoapods-binary-cache/cache/validator_with_podfile.rb
116
116
  - lib/cocoapods-binary-cache/dependencies_graph/dependencies_graph.rb
117
117
  - lib/cocoapods-binary-cache/dependencies_graph/graph_visualizer.rb
118
- - lib/cocoapods-binary-cache/gem_version.rb
119
118
  - lib/cocoapods-binary-cache/helper/benchmark_show.rb
120
119
  - lib/cocoapods-binary-cache/helper/checksum.rb
121
120
  - lib/cocoapods-binary-cache/helper/json.rb
@@ -1,6 +0,0 @@
1
- # Copyright 2019 Grabtaxi Holdings PTE LTE (GRAB), All rights reserved.
2
- # Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
3
-
4
- module CocoapodsBinaryCache
5
- VERSION = "0.1.1".freeze
6
- end