cocoapods-bin 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 560ddbfb4258324c1e3dbcf1c35fa58fcd238b7e
4
- data.tar.gz: b02c0f9c578eed09d6cb850593beded52b7c6f82
3
+ metadata.gz: ca17df09093416e4bb05e0bc003ed8ce682105d1
4
+ data.tar.gz: 54b3d402ec8baa9d9ab1eb5e21b069fd8364c9ed
5
5
  SHA512:
6
- metadata.gz: b5ebe970aeca3cc85adbe7615783406569d98dcc4de4eadb658cf6e2c05a43fc5b8fa2d7bd9a2cf6917b0a51160afe4992243b534835716d4798b99796f6c227
7
- data.tar.gz: 50f193d2d9c6f37a5d1201c7fac572800f968671f970e2afc5ff3a65e0bd646000dfc8ef242f7f4eabb8adf5479495d21877a6d0668729a528c4135b63cad9bf
6
+ metadata.gz: d0bc902529f957162f2704524420909576b7eb49c47ad4b4f06b94e7853922ebe2a5c6bba7624a7d3ecb8b8f82fcdaa321f05b1423efccf23d82fb7af646452d
7
+ data.tar.gz: 4d3b4480de3ebe69fa63783deaf7c206f826f15e60a59a8563e9d765e9b46e5722c4a4c2dec560f98db61f7521f23e8ac3da578c74daabc06d7453f7146066f2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-bin (0.0.2)
4
+ cocoapods-bin (0.0.3)
5
5
  cocoapods (~> 1.4)
6
6
  parallel
7
7
 
@@ -57,7 +57,7 @@ module Pod
57
57
  lint.run
58
58
  end
59
59
  ensure
60
- clear_binary_spec_file_if_needed
60
+ clear_binary_spec_file_if_needed unless @reserve_created_spec
61
61
  end
62
62
 
63
63
  private
@@ -1,4 +1,5 @@
1
1
  require 'cocoapods-bin/command/bin/repo/push'
2
+ require 'cocoapods-bin/command/bin/repo/update'
2
3
 
3
4
  module Pod
4
5
  class Command
@@ -58,7 +58,7 @@ module Pod
58
58
  push.run
59
59
  end
60
60
  ensure
61
- clear_binary_spec_file_if_needed
61
+ clear_binary_spec_file_if_needed unless @reserve_created_spec
62
62
  end
63
63
 
64
64
  private
@@ -0,0 +1,40 @@
1
+ require 'parallel'
2
+
3
+ module Pod
4
+ class Command
5
+ class Bin < Command
6
+ class Repo < Bin
7
+ class Update < Repo
8
+ self.summary = '更新私有源'
9
+
10
+ self.arguments = [
11
+ CLAide::Argument.new('NAME', false),
12
+ ]
13
+
14
+ def self.options
15
+ [
16
+ ['--all', '更新所有私有源,默认只更新二进制相关私有源'],
17
+ ].concat(super)
18
+ end
19
+
20
+ def initialize(argv)
21
+ @all = argv.flag?('all')
22
+ @name = argv.shift_argument
23
+ super
24
+ end
25
+
26
+ def run
27
+ show_output = !config.silent?
28
+ if @name || @all
29
+ config.sources_manager.update(@name, show_output)
30
+ else
31
+ Parallel.each(valid_sources, in_threads: 4) do |source|
32
+ source.update(show_output)
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -1,5 +1,5 @@
1
1
  module CBin
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
4
4
 
5
5
  module Pod
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tripleCC
@@ -89,6 +89,7 @@ files:
89
89
  - lib/cocoapods-bin/command/bin/open.rb
90
90
  - lib/cocoapods-bin/command/bin/repo.rb
91
91
  - lib/cocoapods-bin/command/bin/repo/push.rb
92
+ - lib/cocoapods-bin/command/bin/repo/update.rb
92
93
  - lib/cocoapods-bin/command/bin/spec.rb
93
94
  - lib/cocoapods-bin/command/bin/spec/create.rb
94
95
  - lib/cocoapods-bin/command/bin/spec/lint.rb