cocoapods-sync-podspecs 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pod/command/push-tag.rb +14 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1337f865b561483f1065aa2eff928106bee7af7fec05155ed7b2d6232897b035
|
4
|
+
data.tar.gz: 86a523efbc19297baf5b1b75ce366b6820a91c17d776e359e44c4ed934c9ce2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63a524e26e9c9526b73b1e69f731d680397d7bfedd0a487064271fd838cdbf41063b6f1ecb1522909ea646177cee837e3510f92da2cbd7559bac7ef89948c9e5
|
7
|
+
data.tar.gz: 852545e13c2f4ed9956f75b7baffe02aa11054ef482e1624d1b8d75e341de1bd3970b6cfb5de035c6d78d8d3c52d4b99f8b8e46ef5253c883dc087b1de34acde
|
data/lib/pod/command/push-tag.rb
CHANGED
@@ -11,6 +11,7 @@ module Pod
|
|
11
11
|
|
12
12
|
self.arguments = [
|
13
13
|
CLAide::Argument.new('Version', false),
|
14
|
+
CLAide::Argument.new('NAME.podspec', false),
|
14
15
|
]
|
15
16
|
|
16
17
|
def self.options
|
@@ -29,6 +30,7 @@ module Pod
|
|
29
30
|
@push_remote = argv.flag?('push-remote', false)
|
30
31
|
@tag_version = argv.shift_argument
|
31
32
|
@current_repo_dir = ''
|
33
|
+
@podspec = argv.shift_argument
|
32
34
|
super
|
33
35
|
end
|
34
36
|
|
@@ -183,11 +185,19 @@ module Pod
|
|
183
185
|
|
184
186
|
# @return [Array<Pathname>] The path of the specifications to push.
|
185
187
|
#
|
188
|
+
|
186
189
|
def podspec_files
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
190
|
+
if @podspec
|
191
|
+
path = Pathname(@podspec)
|
192
|
+
raise Informative, "Couldn't find #{@podspec}" unless path.exist?
|
193
|
+
[path]
|
194
|
+
else
|
195
|
+
#files = Pathname.glob('*.podspec{,.json}')
|
196
|
+
files = Pathname.glob('**/*.podspec')
|
197
|
+
raise Informative, "Couldn't find any podspec files in current directory" if files.empty?
|
198
|
+
files
|
199
|
+
end
|
200
|
+
end
|
191
201
|
|
192
202
|
#---------------------------------------------------------------------#
|
193
203
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-sync-podspecs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- quangmv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|