pod-synchronize 0.3.0 → 0.4.0

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
  SHA1:
3
- metadata.gz: 64ba11133608da86cf23d0dda30d0e31bed06ac7
4
- data.tar.gz: be3047b5565ef6e4a6b94e1b387a1ce228ad5406
3
+ metadata.gz: d6288b55116cdfdb8a04f3b06eabe2320bfc392d
4
+ data.tar.gz: 9c249fc28882c1483e12b16f74cd6a17a313f000
5
5
  SHA512:
6
- metadata.gz: b065721ac581e56bfb51fdcbf75d5506335e386d1b8279feeba85e62dd397c879dfd96d009c34899f02e26efcd8cb4064c4bae03bba6551919c23a56bb71e201
7
- data.tar.gz: 9432028627cb9fcfcd3e8c811cec6d2b7fe62c00fe14b144dadfd15b6cc8834fab2126fc288e7e2ca76c53c39c97fb2357216ee46f039d9cb60cca34dfb84f06
6
+ metadata.gz: dec682b97a93a85d19150619d773a9586bc6a523cc203104fedc2129870e029f8ec65d1cc4b9bdbf28760070643f9b0ce2238ffafd501bd5763d3f4b33e7b164
7
+ data.tar.gz: 99239344243132f015e9bdfa994aa77a0eb0fb88db1f4341f5d8a05ecbfdbe844afa10489f63d7c8b6560154f477854cebfccd94d9aa2d41bee122299014efde
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pod-synchronize (0.3.0)
4
+ pod-synchronize (0.4.0)
5
5
  claide (~> 0.8.1)
6
6
  colored (~> 1.2)
7
7
 
@@ -67,4 +67,4 @@ DEPENDENCIES
67
67
  rspec
68
68
 
69
69
  BUNDLED WITH
70
- 1.11.2
70
+ 1.12.5
data/lib/updater/specs.rb CHANGED
@@ -10,7 +10,7 @@ class Specs
10
10
  end
11
11
 
12
12
  def pods
13
- @pods ||= Dir.glob(File.join(@specs_root, '*')).map do |pod_path|
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
@@ -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
@@ -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.3.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}
@@ -13,4 +13,4 @@ podfiles:
13
13
  pods:
14
14
  - Google-Mobile-Ads-SDK
15
15
  excluded_pods:
16
- - SSKeychain
16
+ - SAMKeychain
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.3.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-24 00:00:00.000000000 Z
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.3
154
+ rubygems_version: 2.6.4
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Mirrors CocoaPods specs