carthage_remote_cache 0.0.8 → 0.0.9
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 +5 -5
- data/Gemfile.lock +25 -25
- data/carthage_remote_cache.gemspec +2 -2
- data/lib/carthage_archive.rb +15 -1
- data/lib/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 668d359528b6d3f6abf8c281b7ec00b2de532ffcab2d592dfbf7ab95cb191ccd
|
4
|
+
data.tar.gz: 74bf2f1193d16661a9df78b198371fc265c83d0a7c42bd4a6a885c07d7197043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9b56271263ff4cd50107f54d4faeab89f4ae15a17cb3468672af1a262c0c67e885ce5ddceb6c19966d27fe8545008062878f8984cf70689e5218b85a6e23d95
|
7
|
+
data.tar.gz: d4fcc47328b5f228d3c1b2d9eac42b4066eeefd3415c9f8415613fa38986fd79d016a30577c642e630d81bf9b43cf8f2ae2ed07eb1e11f6211a437b3dc2fe8e6
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
carthage_remote_cache (0.0.
|
4
|
+
carthage_remote_cache (0.0.9)
|
5
5
|
concurrent-ruby (~> 1.0.5)
|
6
|
-
rack (~> 2.0.
|
6
|
+
rack (~> 2.0.6)
|
7
7
|
rest-client (~> 2.0.2)
|
8
|
-
sinatra (~> 2.0.
|
8
|
+
sinatra (~> 2.0.4)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
13
|
coderay (1.1.2)
|
14
14
|
concurrent-ruby (1.0.5)
|
15
|
-
domain_name (0.5.
|
15
|
+
domain_name (0.5.20190701)
|
16
16
|
unf (>= 0.0.5, < 1.0.0)
|
17
|
-
ffi (1.
|
17
|
+
ffi (1.11.1)
|
18
18
|
formatador (0.2.5)
|
19
19
|
guard (2.14.2)
|
20
20
|
formatador (>= 0.2.4)
|
@@ -35,31 +35,31 @@ GEM
|
|
35
35
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
36
36
|
rb-inotify (~> 0.9, >= 0.9.7)
|
37
37
|
ruby_dep (~> 1.2)
|
38
|
-
lumberjack (1.0.
|
38
|
+
lumberjack (1.0.13)
|
39
39
|
metaclass (0.0.4)
|
40
|
-
method_source (0.9.
|
41
|
-
mime-types (3.
|
40
|
+
method_source (0.9.2)
|
41
|
+
mime-types (3.2.2)
|
42
42
|
mime-types-data (~> 3.2015)
|
43
|
-
mime-types-data (3.
|
43
|
+
mime-types-data (3.2019.0331)
|
44
44
|
mocha (1.3.0)
|
45
45
|
metaclass (~> 0.0.1)
|
46
|
-
mustermann (1.0.
|
46
|
+
mustermann (1.0.3)
|
47
47
|
nenv (0.3.0)
|
48
48
|
netrc (0.11.0)
|
49
49
|
notiffany (0.1.1)
|
50
50
|
nenv (~> 0.1)
|
51
51
|
shellany (~> 0.0)
|
52
|
-
power_assert (1.1.
|
53
|
-
pry (0.
|
52
|
+
power_assert (1.1.4)
|
53
|
+
pry (0.12.2)
|
54
54
|
coderay (~> 1.1.0)
|
55
55
|
method_source (~> 0.9.0)
|
56
|
-
rack (2.0.
|
57
|
-
rack-protection (2.0.
|
56
|
+
rack (2.0.7)
|
57
|
+
rack-protection (2.0.5)
|
58
58
|
rack
|
59
59
|
rake (10.5.0)
|
60
|
-
rb-fsevent (0.10.
|
61
|
-
rb-inotify (0.
|
62
|
-
ffi (
|
60
|
+
rb-fsevent (0.10.3)
|
61
|
+
rb-inotify (0.10.0)
|
62
|
+
ffi (~> 1.0)
|
63
63
|
rerun (0.13.0)
|
64
64
|
listen (~> 3.0)
|
65
65
|
rest-client (2.0.2)
|
@@ -67,20 +67,20 @@ GEM
|
|
67
67
|
mime-types (>= 1.16, < 4.0)
|
68
68
|
netrc (~> 0.8)
|
69
69
|
ruby_dep (1.5.0)
|
70
|
-
rufo (0.
|
70
|
+
rufo (0.5.1)
|
71
71
|
shellany (0.0.1)
|
72
|
-
sinatra (2.0.
|
72
|
+
sinatra (2.0.5)
|
73
73
|
mustermann (~> 1.0)
|
74
74
|
rack (~> 2.0)
|
75
|
-
rack-protection (= 2.0.
|
75
|
+
rack-protection (= 2.0.5)
|
76
76
|
tilt (~> 2.0)
|
77
|
-
test-unit (3.2.
|
77
|
+
test-unit (3.2.9)
|
78
78
|
power_assert
|
79
|
-
thor (0.20.
|
80
|
-
tilt (2.0.
|
79
|
+
thor (0.20.3)
|
80
|
+
tilt (2.0.9)
|
81
81
|
unf (0.1.4)
|
82
82
|
unf_ext
|
83
|
-
unf_ext (0.0.7.
|
83
|
+
unf_ext (0.0.7.6)
|
84
84
|
|
85
85
|
PLATFORMS
|
86
86
|
ruby
|
@@ -97,4 +97,4 @@ DEPENDENCIES
|
|
97
97
|
test-unit (~> 3.2.7)
|
98
98
|
|
99
99
|
BUNDLED WITH
|
100
|
-
1.16.
|
100
|
+
1.16.6
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "test-unit", "~> 3.2.7"
|
31
31
|
|
32
32
|
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0.5"
|
33
|
-
spec.add_runtime_dependency "rack", "~> 2.0.
|
33
|
+
spec.add_runtime_dependency "rack", "~> 2.0.6"
|
34
34
|
spec.add_runtime_dependency "rest-client", "~> 2.0.2"
|
35
|
-
spec.add_runtime_dependency "sinatra", "~> 2.0.
|
35
|
+
spec.add_runtime_dependency "sinatra", "~> 2.0.4"
|
36
36
|
end
|
data/lib/carthage_archive.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
1
3
|
class CarthageArchive
|
2
4
|
attr_reader :archive_filename, :archive_path
|
3
5
|
|
@@ -46,8 +48,11 @@ class CarthageArchive
|
|
46
48
|
$LOG.debug("Created #{@archive_path} archive, file size: #{formatted_archive_size}")
|
47
49
|
end
|
48
50
|
|
49
|
-
def unpack_archive(shell)
|
51
|
+
def unpack_archive(shell, carthage_build_dir = CARTHAGE_BUILD_DIR)
|
50
52
|
raise AppError.new, "Archive #{@archive_path} is missing" unless File.exist?(@archive_path)
|
53
|
+
|
54
|
+
delete_existing_build_framework_if_exists(carthage_build_dir)
|
55
|
+
|
51
56
|
$LOG.debug("Unpacking #{@archive_path}, file size: #{formatted_archive_size}")
|
52
57
|
shell.unpack(@archive_path)
|
53
58
|
end
|
@@ -81,4 +86,13 @@ class CarthageArchive
|
|
81
86
|
def formatted_archive_size
|
82
87
|
format_file_size(archive_size)
|
83
88
|
end
|
89
|
+
|
90
|
+
def delete_existing_build_framework_if_exists(carthage_build_dir)
|
91
|
+
platform_path = File.join(carthage_build_dir, platform_to_carthage_dir_string(@platform))
|
92
|
+
framework_path = File.join(platform_path, "#{@framework_name}.framework")
|
93
|
+
if File.exist?(framework_path)
|
94
|
+
$LOG.debug("Deleting #{framework_path}")
|
95
|
+
FileUtils.rm_rf(framework_path)
|
96
|
+
end
|
97
|
+
end
|
84
98
|
end
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = '0.0.
|
1
|
+
VERSION = '0.0.9'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carthage_remote_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juraj Blahunka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 2.0.
|
145
|
+
version: 2.0.6
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 2.0.
|
152
|
+
version: 2.0.6
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rest-client
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 2.0.
|
173
|
+
version: 2.0.4
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 2.0.
|
180
|
+
version: 2.0.4
|
181
181
|
description: Centralized cache to serve carthage frameworks. Useful for distributed
|
182
182
|
CI setup with several build machines.
|
183
183
|
email:
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: '0'
|
244
244
|
requirements: []
|
245
245
|
rubyforge_project:
|
246
|
-
rubygems_version: 2.
|
246
|
+
rubygems_version: 2.7.9
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: Centralized cache to serve carthage frameworks. Useful for distributed CI
|