cocoapods-bin 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cocoapods-bin/gem_version.rb +1 -1
- data/lib/cocoapods-bin.rb +1 -46
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e69bdb2c15a7997fa3e79c20054e68c72d785c1
|
4
|
+
data.tar.gz: c92c1fe7bedd91a8141fc7e4da2bc6b4e5f0c733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cae7bab625278b25106d637d1d69953d376918905876ff68828d7c0e647bd4f1be7c705f0e8d43dc281ee9033215b4ac4760dc781d9fe561828390b9a77a1277
|
7
|
+
data.tar.gz: 4a05474bdad32d7f705e4445573e4a0341850ecfe139b31e14dd43d9c4e6cf498590f7dd5e30654ad6b3067e2dadffe757275ae1ecbdf027a03c3a91751af430
|
data/Gemfile.lock
CHANGED
data/lib/cocoapods-bin.rb
CHANGED
@@ -1,47 +1,2 @@
|
|
1
1
|
require 'cocoapods-bin/gem_version'
|
2
|
-
require 'cocoapods-bin/native/sources_manager'
|
3
|
-
|
4
|
-
|
5
|
-
p '============='
|
6
|
-
p '============='
|
7
|
-
module Pod
|
8
|
-
class Command
|
9
|
-
class Update < Command
|
10
|
-
def initialize(argv)
|
11
|
-
@pods = argv.arguments! unless argv.arguments.empty?
|
12
|
-
|
13
|
-
p config.lockfile
|
14
|
-
|
15
|
-
source_urls = argv.option('sources', '').split(',')
|
16
|
-
excluded_pods = argv.option('exclude-pods', '').split(',')
|
17
|
-
unless source_urls.empty?
|
18
|
-
source_pods = source_urls.flat_map { |url| config.sources_manager.source_with_name_or_url(url).pods }
|
19
|
-
unless source_pods.empty?
|
20
|
-
source_pods = source_pods.select { |pod| config.lockfile.pod_names.include?(pod) }
|
21
|
-
if @pods
|
22
|
-
@pods += source_pods
|
23
|
-
else
|
24
|
-
@pods = source_pods unless source_pods.empty?
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
unless excluded_pods.empty?
|
30
|
-
@pods ||= config.lockfile.pod_names.dup
|
31
|
-
|
32
|
-
non_installed_pods = (excluded_pods - @pods)
|
33
|
-
unless non_installed_pods.empty?
|
34
|
-
pluralized_words = non_installed_pods.length > 1 ? %w(Pods are) : %w(Pod is)
|
35
|
-
message = "Trying to skip `#{non_installed_pods.join('`, `')}` #{pluralized_words.first} " \
|
36
|
-
"which #{pluralized_words.last} not installed"
|
37
|
-
raise Informative, message
|
38
|
-
end
|
39
|
-
|
40
|
-
@pods.delete_if { |pod| excluded_pods.include?(pod) }
|
41
|
-
end
|
42
|
-
|
43
|
-
super
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
2
|
+
require 'cocoapods-bin/native/sources_manager'
|