pod-synchronize 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/updater/specs.rb +17 -1
- data/lib/updater/synchronize.rb +1 -1
- data/pod-synchronize.gemspec +1 -1
- data/spec/fixtures/api_client_config.yml +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6288b55116cdfdb8a04f3b06eabe2320bfc392d
|
4
|
+
data.tar.gz: 9c249fc28882c1483e12b16f74cd6a17a313f000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec682b97a93a85d19150619d773a9586bc6a523cc203104fedc2129870e029f8ec65d1cc4b9bdbf28760070643f9b0ce2238ffafd501bd5763d3f4b33e7b164
|
7
|
+
data.tar.gz: 99239344243132f015e9bdfa994aa77a0eb0fb88db1f4341f5d8a05ecbfdbe844afa10489f63d7c8b6560154f477854cebfccd94d9aa2d41bee122299014efde
|
data/Gemfile.lock
CHANGED
data/lib/updater/specs.rb
CHANGED
@@ -10,7 +10,7 @@ class Specs
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def pods
|
13
|
-
@pods ||=
|
13
|
+
@pods ||= traverse(@specs_root).flatten.map do |pod_path|
|
14
14
|
pod = Pod.new(path: pod_path)
|
15
15
|
@whitelist.any? && !@whitelist.include?(pod.name) ? nil : pod
|
16
16
|
end.compact
|
@@ -27,4 +27,20 @@ class Specs
|
|
27
27
|
@git ||= Git.new(path: @path)
|
28
28
|
end
|
29
29
|
|
30
|
+
private
|
31
|
+
|
32
|
+
def traverse(working_dir)
|
33
|
+
whitelist = %w{0 1 2 3 4 5 6 7 8 9 a b c d e f}
|
34
|
+
pods = []
|
35
|
+
Dir.glob(File.join(working_dir, '*')).map do |dir|
|
36
|
+
dir_name = dir.split(File::SEPARATOR).last
|
37
|
+
if whitelist.include? dir_name
|
38
|
+
pods << traverse(dir)
|
39
|
+
else
|
40
|
+
pods << dir
|
41
|
+
end
|
42
|
+
end
|
43
|
+
pods
|
44
|
+
end
|
45
|
+
|
30
46
|
end
|
data/lib/updater/synchronize.rb
CHANGED
@@ -21,7 +21,7 @@ module PodSynchronize
|
|
21
21
|
def setup(temp_path:)
|
22
22
|
@config = Configuration.new(path: @yml_path)
|
23
23
|
@master_specs = Specs.new(path: File.join(temp_path, 'master'), whitelist: dependencies, specs_root: 'Specs')
|
24
|
-
@internal_specs = Specs.new(path: File.join(temp_path, 'local'))
|
24
|
+
@internal_specs = Specs.new(path: File.join(temp_path, 'local'), specs_root: '.')
|
25
25
|
end
|
26
26
|
|
27
27
|
def bootstrap
|
data/pod-synchronize.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "pod-synchronize"
|
4
|
-
spec.version = "0.
|
4
|
+
spec.version = "0.4.0"
|
5
5
|
spec.authors = ["Matthias Männich", "Piet Brauer", "Renzo Crisostomo"]
|
6
6
|
spec.email = ["matthias.maennich@xing.com", "piet.brauer@xing.com", "renzo.crisostomo@xing.com"]
|
7
7
|
spec.summary = %q{Mirrors CocoaPods specs}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod-synchronize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Männich
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-05
|
13
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: claide
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
153
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.4
|
154
|
+
rubygems_version: 2.6.4
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: Mirrors CocoaPods specs
|