Skip to content

Commit e0fbea1

Browse files
committed
Allow comments in the MergeFile
* Bump the CocoaPods version to 1.10.1 * Remove a warning related to the unused CocoaPods master specs repo
1 parent b044f44 commit e0fbea1

File tree

7 files changed

+40
-34
lines changed

7 files changed

+40
-34
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
44
gemspec
55

66
group :development do
7-
gem 'cocoapods', '1.9.1'
7+
gem 'cocoapods', '1.10.1'
88

99
gem 'mocha'
1010
gem 'bacon'

PodMergeExample/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ source "https://rubygems.org"
44

55
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
66

7-
gem 'cocoapods', '1.9.1'
7+
gem 'cocoapods', '1.10.1'
88
gem 'cocoapods-pod-merge', :path => '../'

PodMergeExample/Gemfile.lock

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,27 @@ PATH
66
GEM
77
remote: https://rubygems.org/
88
specs:
9-
CFPropertyList (3.0.2)
10-
activesupport (4.2.11.1)
11-
i18n (~> 0.7)
9+
CFPropertyList (3.0.3)
10+
activesupport (5.2.5)
11+
concurrent-ruby (~> 1.0, >= 1.0.2)
12+
i18n (>= 0.7, < 2)
1213
minitest (~> 5.1)
13-
thread_safe (~> 0.3, >= 0.3.4)
1414
tzinfo (~> 1.1)
15-
algoliasearch (1.27.1)
15+
addressable (2.7.0)
16+
public_suffix (>= 2.0.2, < 5.0)
17+
algoliasearch (1.27.5)
1618
httpclient (~> 2.8, >= 2.8.3)
1719
json (>= 1.5.1)
1820
atomos (0.1.3)
1921
claide (1.0.3)
20-
cocoapods (1.9.1)
21-
activesupport (>= 4.0.2, < 5)
22+
cocoapods (1.10.1)
23+
addressable (~> 2.6)
2224
claide (>= 1.0.2, < 2.0)
23-
cocoapods-core (= 1.9.1)
25+
cocoapods-core (= 1.10.1)
2426
cocoapods-deintegrate (>= 1.0.3, < 2.0)
25-
cocoapods-downloader (>= 1.2.2, < 2.0)
27+
cocoapods-downloader (>= 1.4.0, < 2.0)
2628
cocoapods-plugins (>= 1.0.0, < 2.0)
2729
cocoapods-search (>= 1.0.0, < 2.0)
28-
cocoapods-stats (>= 1.0.0, < 2.0)
2930
cocoapods-trunk (>= 1.4.0, < 2.0)
3031
cocoapods-try (>= 1.1.0, < 2.0)
3132
colored2 (~> 3.1)
@@ -35,61 +36,63 @@ GEM
3536
molinillo (~> 0.6.6)
3637
nap (~> 1.0)
3738
ruby-macho (~> 1.4)
38-
xcodeproj (>= 1.14.0, < 2.0)
39-
cocoapods-core (1.9.1)
40-
activesupport (>= 4.0.2, < 6)
39+
xcodeproj (>= 1.19.0, < 2.0)
40+
cocoapods-core (1.10.1)
41+
activesupport (> 5.0, < 6)
42+
addressable (~> 2.6)
4143
algoliasearch (~> 1.0)
4244
concurrent-ruby (~> 1.1)
4345
fuzzy_match (~> 2.0.4)
4446
nap (~> 1.0)
4547
netrc (~> 0.11)
48+
public_suffix
4649
typhoeus (~> 1.0)
4750
cocoapods-deintegrate (1.0.4)
48-
cocoapods-downloader (1.3.0)
51+
cocoapods-downloader (1.4.0)
4952
cocoapods-plugins (1.0.0)
5053
nap
5154
cocoapods-search (1.0.0)
52-
cocoapods-stats (1.1.0)
53-
cocoapods-trunk (1.4.1)
55+
cocoapods-trunk (1.5.0)
5456
nap (>= 0.8, < 2.0)
5557
netrc (~> 0.11)
56-
cocoapods-try (1.1.0)
58+
cocoapods-try (1.2.0)
5759
colored2 (3.1.2)
58-
concurrent-ruby (1.1.6)
60+
concurrent-ruby (1.1.8)
5961
escape (0.0.4)
6062
ethon (0.12.0)
6163
ffi (>= 1.3.0)
62-
ffi (1.12.2)
64+
ffi (1.15.0)
6365
fourflusher (2.3.1)
6466
fuzzy_match (2.0.4)
6567
gh_inspector (1.1.3)
6668
httpclient (2.8.3)
67-
i18n (0.9.5)
69+
i18n (1.8.10)
6870
concurrent-ruby (~> 1.0)
69-
json (2.3.0)
70-
minitest (5.14.0)
71+
json (2.5.1)
72+
minitest (5.14.4)
7173
molinillo (0.6.6)
72-
nanaimo (0.2.6)
74+
nanaimo (0.3.0)
7375
nap (1.1.0)
7476
netrc (0.11.0)
77+
public_suffix (4.0.6)
7578
ruby-macho (1.4.0)
7679
thread_safe (0.3.6)
77-
typhoeus (1.3.1)
80+
typhoeus (1.4.0)
7881
ethon (>= 0.9.0)
79-
tzinfo (1.2.6)
82+
tzinfo (1.2.9)
8083
thread_safe (~> 0.1)
81-
xcodeproj (1.15.0)
84+
xcodeproj (1.19.0)
8285
CFPropertyList (>= 2.3.3, < 4.0)
8386
atomos (~> 0.1.3)
8487
claide (>= 1.0.2, < 2.0)
8588
colored2 (~> 3.1)
86-
nanaimo (~> 0.2.6)
89+
nanaimo (~> 0.3.0)
8790

8891
PLATFORMS
8992
ruby
9093

9194
DEPENDENCIES
92-
cocoapods (= 1.9.1)
95+
cocoapods (= 1.10.1)
9396
cocoapods-pod-merge!
9497

9598
BUNDLED WITH

PodMergeExample/MergeFile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
group 'Networking'
2+
# Networking
23
pod 'AFNetworking', '2.7.0'
34
pod 'SDWebImage', '~> 5.0'
45
end
@@ -11,6 +12,7 @@ group 'UI'
1112
end
1213

1314
group 'MergedSwiftPods' do
15+
# Swift Pods
1416
pod 'SnapKit', '5.0.1'
1517
pod 'SwiftyJSON', '5.0.0'
1618
end

PodMergeExample/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
platform :ios, '11.0'
22

33
plugin 'cocoapods-pod-merge'
4+
install! "cocoapods", :warn_for_unused_master_specs_repo => false
45

56
target 'PodMergeExample' do
67
use_frameworks!

PodMergeExample/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ DEPENDENCIES:
1313
- UI (from `MergedPods/UI`)
1414

1515
SPEC REPOS:
16-
https://cdn.cocoapods.org/:
16+
trunk:
1717
- Nuke
1818

1919
EXTERNAL SOURCES:
@@ -33,6 +33,6 @@ SPEC CHECKSUMS:
3333
Nuke: 85fb80f8df0cb26c28d2f4e0cb7fb93bcd6548d3
3434
UI: 2aa82721ee430cd2f0ab314904bbe1a281fa2ff9
3535

36-
PODFILE CHECKSUM: 88ffe01efb39e0f819cf88bf11786182ab6f4441
36+
PODFILE CHECKSUM: 689012d73798a7fea312905128d4dadb72554cf1
3737

38-
COCOAPODS: 1.9.1
38+
COCOAPODS: 1.10.1

lib/cocoapods-pod-merge/Main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def parse_mergefile
144144
group_name = ''
145145
f.each_line do |line|
146146
next if line.strip.empty?
147+
next if line.strip.start_with?('#')
147148

148-
line = line.gsub(/\#.+/, '') if line.include?('#') # Remove any comments
149149
if parsing_a_group
150150
if line.strip == 'end'
151151
parsing_a_group = false

0 commit comments

Comments
 (0)