cocoapods-lzsource 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c164e0d39f4e2fb8c0e2dc04b2ff493c047b23dd
4
- data.tar.gz: b99ddeb3cfd89b468d230840c5523d78e179656f
3
+ metadata.gz: 015e30d7cf9ddca8f6b74afd93d50a206d5a8e3e
4
+ data.tar.gz: d09357ef5b1553ca96e9f958e4e157cd19d8623e
5
5
  SHA512:
6
- metadata.gz: 826806722214bb1c439109c88ee57c280867d49b35e4e5b68a2cbb9beae96cb91f60d526905b859ca3997957649947489d3e201030c6141552192330c7a222a0
7
- data.tar.gz: ef2ced95822da4a301391b1f26e4984336e98a02f32c2fdd8d87c2a57cc9de697013a6002ce3cd3b5242b55d5222845f9a024642564529afe60171f5d5faa861
6
+ metadata.gz: 7b074e62924ebb30c1e5894fb32b525c5087529a5d3165be5ade64f28a52a83923493ecc165d5bfa5401c8318e5b0aba81a9ff6b80203d1ac0ed97b9b0f8176b
7
+ data.tar.gz: bc65f73704cef9ad04bb1fc3912331a8eca1f11fb89787cf8f931ac80a64d645b6fb34b22ff5792ea33025357f633d90e807d5f5f35013d197cbc891d3129b38
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['m13811217138@gmail.com']
11
11
  spec.description = %q{cocoapods-lzsource.}
12
12
  spec.summary = %q{cocoapods-lzsource.}
13
- spec.homepage = 'https://github.com/Jeremi-LZ'
13
+ spec.homepage = 'https://github.com/Jeremi-LZ/LZSource/'
14
14
  spec.license = 'MIT'
15
15
  spec.files = `git ls-files`.split($/)+Dir.glob("lib/**/*")
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -53,15 +53,14 @@ class GitLabHttp
53
53
  f.puts $GitHTTP_Address
54
54
  f.close
55
55
 
56
- puts 'Successful operation!'
56
+ puts 'Operation successful!'
57
57
  end
58
58
 
59
59
  def resetInfo()
60
60
  if File.exist?(UserPathFile)
61
61
  File.delete(UserPathFile)
62
62
  end
63
- f=File.new(UserPathFile,"w+")
64
- f.close
63
+ puts 'Reset successful!'
65
64
  end
66
65
 
67
66
 
@@ -17,7 +17,7 @@ module Pod
17
17
  $CodePath = 'unknow'
18
18
  $CloneFlag = false
19
19
 
20
- self.summary = 'Debug Source Code.'
20
+ self.summary = 'Lookup the source code of the dependency library when debugging the project.'
21
21
 
22
22
  self.arguments = [
23
23
  CLAide::Argument.new('NAME', :optional)
@@ -28,9 +28,9 @@ module Pod
28
28
  def self.options
29
29
  [
30
30
  ['--list', 'Show all items list.'],
31
- ['--clean', 'Clear all items.'],
32
- ['--reset', 'Reset token and gitlab url.'],
31
+ ['--clear', 'Clear all items.'],
33
32
  ['--info', 'Query a item information.'],
33
+ ['--reset', 'Reset token and gitlab url.'],
34
34
  ]
35
35
  # .concat(super)
36
36
  end
@@ -38,7 +38,7 @@ module Pod
38
38
  def initialize(argv)
39
39
  @list = argv.flag?('list')
40
40
  @info = argv.flag?('info')
41
- @clean = argv.flag?('clean')
41
+ @clear = argv.flag?('clear')
42
42
  @reset = argv.flag?('reset')
43
43
  @name = argv.shift_argument
44
44
  super
@@ -51,13 +51,13 @@ module Pod
51
51
  end
52
52
 
53
53
  def run
54
- if @clean != true && @list != true && @reset != true && @info != true && @name.nil?
54
+ if @clear != true && @list != true && @reset != true && @info != true && @name.nil?
55
55
  help!
56
56
  log()
57
57
  end
58
- if @clean == true
58
+ if @clear == true
59
59
  checkPod()
60
- clean()
60
+ clear()
61
61
  elsif @list == true
62
62
  checkPod()
63
63
  list()
@@ -211,7 +211,7 @@ module Pod
211
211
  UI.puts 'Failed to download source code.'
212
212
  log()
213
213
  end
214
- print "\rSuccessful download!\n"
214
+ print "\rDownload successful!\n"
215
215
  end
216
216
 
217
217
  def checkPod
@@ -275,8 +275,8 @@ module Pod
275
275
  end
276
276
 
277
277
 
278
- #lzsource --clean
279
- def clean
278
+ #lzsource --clear
279
+ def clear
280
280
  if File.exist?(InstallCodePathFile)
281
281
  File.open(InstallCodePathFile,"r").each_line do |line|
282
282
  addr = line.gsub("\n", '')
@@ -285,9 +285,9 @@ module Pod
285
285
  `sudo rm -rf #{arr[1]}`
286
286
  end
287
287
  end
288
+ File.delete(InstallCodePathFile)
288
289
  end
289
- File.delete(InstallCodePathFile)
290
- UI.puts 'Successful Clean!'
290
+ UI.puts 'Clear successful!'
291
291
  end
292
292
 
293
293
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsLzsource
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-lzsource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ningyuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-28 00:00:00.000000000 Z
11
+ date: 2019-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,7 +59,7 @@ files:
59
59
  - lib/cocoapods_plugin.rb
60
60
  - spec/command/lzsource_spec.rb
61
61
  - spec/spec_helper.rb
62
- homepage: https://github.com/Jeremi-LZ
62
+ homepage: https://github.com/Jeremi-LZ/LZSource/
63
63
  licenses:
64
64
  - MIT
65
65
  metadata: {}