pod-synchronize 0.1.0 → 0.2.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: 7ad04e2e3697211aca9010cd884e026b01e7c913
4
- data.tar.gz: c8dcac0b1f5c3bff0d590742b5653599e777c8d4
3
+ metadata.gz: 1129a5487e2bcd369ec9b64ef8fba697e4e4c6e1
4
+ data.tar.gz: 9f510c3447ceb841fd28040a9d927e4fb8d8f64c
5
5
  SHA512:
6
- metadata.gz: f6932cd548b293f1b6fc430f7c3870a32c0933dbe5bce3318c8f50e747e7250996601c3cb339411c624de71dd703a17621953063a006dc9efa2078c179a748c5
7
- data.tar.gz: eb2c049982754b089e3348eeeeb4af2be93cd7add8b6a20bf95059f2c86451e95abacabf441a41521a7f3c263b9d35e4afbd282a6c7caea01e0fd5eb93830702
6
+ metadata.gz: 26f7824644ee7c41d30ba1452a13eb9c498ef3f66bcf4e82a4df8aba673125e5b21f244d99bf58e7b16dd5cab4072c57fe6c02d16adae726af3328b71fe04464
7
+ data.tar.gz: ba9f521dd78189af5910a728b866d56d8e30647f7ff3fc41c9c9f3723fe03b2db5c0ec83e390e4d0a574aaa7662b9629bbfc4c2248379ecc603ae2bf69d4653e
data/.simplecov CHANGED
@@ -1,4 +1,3 @@
1
1
  SimpleCov.start do
2
2
  add_filter 'spec/'
3
- minimum_coverage 75
4
3
  end
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pod-synchronize (0.1.0)
4
+ pod-synchronize (0.2.0)
5
5
  claide (~> 0.8.1)
6
- colored
6
+ colored (~> 1.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- claide (0.8.1)
11
+ claide (0.8.2)
12
12
  colored (1.2)
13
13
  coveralls (0.8.1)
14
14
  json (~> 1.8)
data/README.md CHANGED
@@ -33,6 +33,8 @@ podfiles:
33
33
  - "https://git.hooli.xyz/ios/moonshot/raw/master/Podfile.lock"
34
34
  - "https://git.hooli.xyz/ios/nucleus/raw/master/Podfile.lock"
35
35
  - "https://git.hooli.xyz/ios/bro2bro/raw/master/Podfile.lock"
36
+ pods:
37
+ - Google-Mobile-Ads-SDK
36
38
  ```
37
39
 
38
40
  |key|meaning|
@@ -45,6 +47,7 @@ podfiles:
45
47
  |mirror.github.organisation|The GitHub organization used for mirrored repositories|
46
48
  |mirror.github.endpoint|API Endpoint of your GitHub api|
47
49
  |podfiles|List of __Podfile.lock__ in __Plain Text__ format|
50
+ |pods|List of additional Pods you would like to add|
48
51
 
49
52
  We use Jenkins to run the synchronize process twice daily. To do that use the following command:
50
53
 
@@ -17,6 +17,10 @@ class Configuration
17
17
  @yaml['podfiles']
18
18
  end
19
19
 
20
+ def pods
21
+ @yaml['pods']
22
+ end
23
+
20
24
  def mirror
21
25
  context = @yaml['mirror']
22
26
  Mirror.new(
@@ -36,4 +40,4 @@ class Configuration
36
40
  context['endpoint'])
37
41
  end
38
42
 
39
- end
43
+ end
@@ -71,6 +71,8 @@ module PodSynchronize
71
71
  podfile_contents = open(podfile, {ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE}) { |io| io.read }
72
72
  pods_dependencies << YAML.load(podfile_contents)["SPEC CHECKSUMS"].keys
73
73
  end
74
+ pods_dependencies << @config.pods
75
+
74
76
  pods_dependencies.flatten!.uniq!
75
77
  end
76
78
 
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "pod-synchronize"
4
- spec.version = "0.1.0"
5
- spec.authors = ["Matthias Männich", "Piet Brauer"]
6
- spec.email = ["matthias.maennich@xing.com", "piet.brauer@xing.com"]
4
+ spec.version = "0.2.0"
5
+ spec.authors = ["Matthias Männich", "Piet Brauer", "Renzo Crisostomo"]
6
+ spec.email = ["matthias.maennich@xing.com", "piet.brauer@xing.com", "renzo.crisostomo@xing.com"]
7
7
  spec.summary = %q{Mirrors CocoaPods specs}
8
8
  spec.description = %q{Synchronizes the public CocoaPods Specs repo with your internal mirror.}
9
9
  spec.homepage = "https://github.com/xing/XNGPodsSynchronizer"
@@ -29,6 +29,13 @@ describe Configuration do
29
29
  end
30
30
  end
31
31
 
32
+ describe '#pods' do
33
+ it 'should parse the pods correctly' do
34
+ expected_result = ["Google-Mobile-Ads-SDK"]
35
+ expect(@config.pods).to eql(expected_result)
36
+ end
37
+ end
38
+
32
39
  describe "#mirror" do
33
40
  it 'should have the correct @specs_push_url' do
34
41
  expect(@config.mirror.specs_push_url).to eql("git@git.hooli.xyz:pods-mirror/Specs.git")
@@ -11,4 +11,6 @@ mirror:
11
11
  podfiles:
12
12
  - "https://git.hooli.xyz/ios/moonshot/raw/master/Podfile.lock"
13
13
  - "https://git.hooli.xyz/ios/nucleus/raw/master/Podfile.lock"
14
- - "https://git.hooli.xyz/ios/bro2bro/raw/master/Podfile.lock"
14
+ - "https://git.hooli.xyz/ios/bro2bro/raw/master/Podfile.lock"
15
+ pods:
16
+ - Google-Mobile-Ads-SDK
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod-synchronize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Männich
8
8
  - Piet Brauer
9
+ - Renzo Crisostomo
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2015-05-08 00:00:00.000000000 Z
13
+ date: 2015-08-13 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: claide
@@ -71,6 +72,7 @@ description: Synchronizes the public CocoaPods Specs repo with your internal mir
71
72
  email:
72
73
  - matthias.maennich@xing.com
73
74
  - piet.brauer@xing.com
75
+ - renzo.crisostomo@xing.com
74
76
  executables:
75
77
  - pod-synchronize
76
78
  extensions: []