cocoapods-sync-podspecs 0.3.0 → 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pod/command/push-tag.rb +14 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a6f7fd3cb3987d6dda4bec08822c624be324d1a175a9e005406b4a0a1df5030
4
- data.tar.gz: 3ce356ddb75a1584baed0a318eddfab8102c06a637aa93ebbfc03470766e031f
3
+ metadata.gz: 1337f865b561483f1065aa2eff928106bee7af7fec05155ed7b2d6232897b035
4
+ data.tar.gz: 86a523efbc19297baf5b1b75ce366b6820a91c17d776e359e44c4ed934c9ce2e
5
5
  SHA512:
6
- metadata.gz: 0751a84c8dad4ee9bf31a556dc433ba288fa10c00ddc7874dc0f9e48e4ac663b17720e08ae38ff95367df2755d55c4d01c45e47e7f15a843f1b6838b6d9fd07d
7
- data.tar.gz: 2697d13d1703cc7c7df86f65ec0ed32037d2bea9925e9cc3480872b5839602abd084bd594ac2ecc3b7a254bfd6586ad8dc3cfd29f44855bec250c6d3b7c184fe
6
+ metadata.gz: 63a524e26e9c9526b73b1e69f731d680397d7bfedd0a487064271fd838cdbf41063b6f1ecb1522909ea646177cee837e3510f92da2cbd7559bac7ef89948c9e5
7
+ data.tar.gz: 852545e13c2f4ed9956f75b7baffe02aa11054ef482e1624d1b8d75e341de1bd3970b6cfb5de035c6d78d8d3c52d4b99f8b8e46ef5253c883dc087b1de34acde
@@ -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
- files = Pathname.glob('**/*.podspec')
188
- raise Informative, "Couldn't find any podspec files in current directory" if files.empty?
189
- files
190
- end
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.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: 2021-09-07 00:00:00.000000000 Z
11
+ date: 2022-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods