pod-synchronize 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1129a5487e2bcd369ec9b64ef8fba697e4e4c6e1
4
- data.tar.gz: 9f510c3447ceb841fd28040a9d927e4fb8d8f64c
3
+ metadata.gz: 64ba11133608da86cf23d0dda30d0e31bed06ac7
4
+ data.tar.gz: be3047b5565ef6e4a6b94e1b387a1ce228ad5406
5
5
  SHA512:
6
- metadata.gz: 26f7824644ee7c41d30ba1452a13eb9c498ef3f66bcf4e82a4df8aba673125e5b21f244d99bf58e7b16dd5cab4072c57fe6c02d16adae726af3328b71fe04464
7
- data.tar.gz: ba9f521dd78189af5910a728b866d56d8e30647f7ff3fc41c9c9f3723fe03b2db5c0ec83e390e4d0a574aaa7662b9629bbfc4c2248379ecc603ae2bf69d4653e
6
+ metadata.gz: b065721ac581e56bfb51fdcbf75d5506335e386d1b8279feeba85e62dd397c879dfd96d009c34899f02e26efcd8cb4064c4bae03bba6551919c23a56bb71e201
7
+ data.tar.gz: 9432028627cb9fcfcd3e8c811cec6d2b7fe62c00fe14b144dadfd15b6cc8834fab2126fc288e7e2ca76c53c39c97fb2357216ee46f039d9cb60cca34dfb84f06
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pod-synchronize (0.2.0)
4
+ pod-synchronize (0.3.0)
5
5
  claide (~> 0.8.1)
6
6
  colored (~> 1.2)
7
7
 
@@ -65,3 +65,6 @@ DEPENDENCIES
65
65
  pod-synchronize!
66
66
  rake (~> 10.0)
67
67
  rspec
68
+
69
+ BUNDLED WITH
70
+ 1.11.2
data/README.md CHANGED
@@ -35,6 +35,8 @@ podfiles:
35
35
  - "https://git.hooli.xyz/ios/bro2bro/raw/master/Podfile.lock"
36
36
  pods:
37
37
  - Google-Mobile-Ads-SDK
38
+ exclude:
39
+ - BABCropperView
38
40
  ```
39
41
 
40
42
  |key|meaning|
@@ -48,6 +50,7 @@ pods:
48
50
  |mirror.github.endpoint|API Endpoint of your GitHub api|
49
51
  |podfiles|List of __Podfile.lock__ in __Plain Text__ format|
50
52
  |pods|List of additional Pods you would like to add|
53
+ |exclude|List of Pods you would like to exclude|
51
54
 
52
55
  We use Jenkins to run the synchronize process twice daily. To do that use the following command:
53
56
 
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
- task :default => [:spec]
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
2
3
 
3
- task :spec do
4
- exec "rspec spec"
5
- end
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -21,6 +21,10 @@ class Configuration
21
21
  @yaml['pods']
22
22
  end
23
23
 
24
+ def excluded_pods
25
+ @yaml['excluded_pods']
26
+ end
27
+
24
28
  def mirror
25
29
  context = @yaml['mirror']
26
30
  Mirror.new(
@@ -74,6 +74,8 @@ module PodSynchronize
74
74
  pods_dependencies << @config.pods
75
75
 
76
76
  pods_dependencies.flatten!.uniq!
77
+
78
+ pods_dependencies.reject! { |dependency| @config.excluded_pods.include? dependency }
77
79
  end
78
80
 
79
81
  def run
@@ -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.2.0"
4
+ spec.version = "0.3.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}
@@ -36,6 +36,13 @@ describe Configuration do
36
36
  end
37
37
  end
38
38
 
39
+ describe '#excluded_pods' do
40
+ it 'should parse the excluded_pods list correctly' do
41
+ expected_result = ["BABCropperView"]
42
+ expect(@config.excluded_pods).to eql(expected_result)
43
+ end
44
+ end
45
+
39
46
  describe "#mirror" do
40
47
  it 'should have the correct @specs_push_url' do
41
48
  expect(@config.mirror.specs_push_url).to eql("git@git.hooli.xyz:pods-mirror/Specs.git")
@@ -0,0 +1,16 @@
1
+ ---
2
+ master_repo: https://github.com/CocoaPods/Specs.git
3
+ mirror:
4
+ specs_push_url: git@git.hooli.xyz:pods-mirror/Specs.git
5
+ source_push_url: git@git.hooli.xyz:pods-mirror
6
+ source_clone_url: git://git.hooli.xyz/pods-mirror
7
+ github:
8
+ acccess_token: 0y83t1ihosjklgnuioa
9
+ organisation: pods-mirror
10
+ endpoint: https://git.hooli.xyz/api/v3
11
+ podfiles:
12
+ - "https://raw.githubusercontent.com/xing/XNGAPIClient/master/Example/Podfile.lock"
13
+ pods:
14
+ - Google-Mobile-Ads-SDK
15
+ excluded_pods:
16
+ - SSKeychain
@@ -14,3 +14,5 @@ podfiles:
14
14
  - "https://git.hooli.xyz/ios/bro2bro/raw/master/Podfile.lock"
15
15
  pods:
16
16
  - Google-Mobile-Ads-SDK
17
+ excluded_pods:
18
+ - BABCropperView
@@ -0,0 +1,23 @@
1
+ describe PodSynchronize::Command::Synchronize do
2
+
3
+ before :all do
4
+ @sync = PodSynchronize::Command::Synchronize.new(CLAide::ARGV.new(['./spec/fixtures/api_client_config.yml']))
5
+ Dir.mktmpdir { |dir| @sync.setup(temp_path: dir) }
6
+ end
7
+
8
+ describe "#dependencies" do
9
+ it "resolves the dependencies correctly" do
10
+ expected_result = [
11
+ "AFNetworking",
12
+ "Expecta",
13
+ "OCMock",
14
+ "OHHTTPStubs",
15
+ "XNGAPIClient",
16
+ "XNGOAuth1Client",
17
+ "Google-Mobile-Ads-SDK",
18
+ ]
19
+ expect(@sync.dependencies).to eql(expected_result)
20
+ end
21
+ end
22
+
23
+ end
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.2.0
4
+ version: 0.3.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: 2015-08-13 00:00:00.000000000 Z
13
+ date: 2016-05-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: claide
@@ -98,6 +98,7 @@ files:
98
98
  - lib/updater/version.rb
99
99
  - pod-synchronize.gemspec
100
100
  - spec/configuration_spec.rb
101
+ - spec/fixtures/api_client_config.yml
101
102
  - spec/fixtures/config.yml
102
103
  - spec/fixtures/specs/NBNRealmBrowser/0.1.0/NBNRealmBrowser.podspec.json
103
104
  - spec/fixtures/specs/NBNRealmBrowser/0.2.0/NBNRealmBrowser.podspec.json
@@ -128,6 +129,7 @@ files:
128
129
  - spec/pod_spec.rb
129
130
  - spec/spec_helper.rb
130
131
  - spec/specs_spec.rb
132
+ - spec/synchronize_spec.rb
131
133
  - spec/version_spec.rb
132
134
  homepage: https://github.com/xing/XNGPodsSynchronizer
133
135
  licenses:
@@ -149,12 +151,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
151
  version: '0'
150
152
  requirements: []
151
153
  rubyforge_project:
152
- rubygems_version: 2.4.5
154
+ rubygems_version: 2.4.3
153
155
  signing_key:
154
156
  specification_version: 4
155
157
  summary: Mirrors CocoaPods specs
156
158
  test_files:
157
159
  - spec/configuration_spec.rb
160
+ - spec/fixtures/api_client_config.yml
158
161
  - spec/fixtures/config.yml
159
162
  - spec/fixtures/specs/NBNRealmBrowser/0.1.0/NBNRealmBrowser.podspec.json
160
163
  - spec/fixtures/specs/NBNRealmBrowser/0.2.0/NBNRealmBrowser.podspec.json
@@ -185,4 +188,5 @@ test_files:
185
188
  - spec/pod_spec.rb
186
189
  - spec/spec_helper.rb
187
190
  - spec/specs_spec.rb
191
+ - spec/synchronize_spec.rb
188
192
  - spec/version_spec.rb