cocoapods-sync-podspecs 0.2.3 → 0.3.1
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 +4 -4
- data/lib/pod/command/bump-version.rb +6 -1
- data/lib/pod/command/push-tag.rb +14 -4
- metadata +4 -4
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
|
@@ -61,7 +61,12 @@ module Pod
|
|
61
61
|
File.open(path, "r+") do |f|
|
62
62
|
s = ""
|
63
63
|
f.each_line do |line|
|
64
|
-
if line.to_s =~ /s\.version\s*=\s*'
|
64
|
+
if line.to_s =~ /s\.version\s*=\s*'(\d+\.)?(\d+\.)?(\*|\d+)'/
|
65
|
+
line = line.sub(/(\d+\.)?(\d+\.)?(\*|\d+)/) do |match|
|
66
|
+
version.to_s
|
67
|
+
end
|
68
|
+
end
|
69
|
+
if line.to_s =~ /s\.version\s*=\s*"(\d+\.)?(\d+\.)?(\*|\d+)"/
|
65
70
|
line = line.sub(/(\d+\.)?(\d+\.)?(\*|\d+)/) do |match|
|
66
71
|
version.to_s
|
67
72
|
end
|
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.
|
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
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.11.0
|
27
27
|
description: Push new specifications to a spec-repo without lint validation
|
28
28
|
email:
|
29
29
|
- quang.app@gmail.com
|