jmpod 0.2.2 → 0.2.4
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/Gemfile.lock +1 -1
- data/bin/jmpod +1 -1
- data/lib/jmpod/command/analyze.rb +6 -5
- data/lib/jmpod/command/config/set.rb +8 -8
- data/lib/jmpod/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57395f5481cef82d1b55ca91626d91bc8ee89a0b6e081a9d4eb3821eec5f1715
|
4
|
+
data.tar.gz: 35044c8dc835a21abda4c455df1ea58f0bb8ea76f973bc9cebad6cc46413a2c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5153a66ec8a46e5b4c482c851dbae3ed8fa37400e7b0207a2a1f5a6df6865b072364d11fb24cb53402f6bcd8b46506819366ff66c1384210eb8063d00fbbdbe4
|
7
|
+
data.tar.gz: 80799554d9f43813f1b0bbae3b7aa821c5d4c2184192f9d559f6583bc37db7d177faf583b942171e4512ac33e1873a9280f02da53602ee5daea41cbff4dbf196
|
data/Gemfile.lock
CHANGED
data/bin/jmpod
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require "bundler/setup"
|
4
4
|
require "jmpod"
|
5
5
|
require "cocoapods"
|
6
|
-
|
6
|
+
require_relative '../lib/cocoapods/analyze'
|
7
7
|
|
8
8
|
# You can add fixtures and/or initialization code here to make experimenting
|
9
9
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -1,13 +1,10 @@
|
|
1
1
|
require 'cocoapods'
|
2
2
|
require 'pathname'
|
3
|
-
require 'pp'
|
4
3
|
require 'tmpdir'
|
5
|
-
require 'colored2'
|
6
4
|
|
7
5
|
module Jmpod
|
8
6
|
class Command
|
9
7
|
class Analyze < Command
|
10
|
-
self.abstract_command = true
|
11
8
|
self.summary = '分析podfile完整依赖链'
|
12
9
|
self.description = <<-DESC
|
13
10
|
分析podfile完整依赖链,并输出json文件.
|
@@ -15,7 +12,7 @@ module Jmpod
|
|
15
12
|
|
16
13
|
def initialize(argv)
|
17
14
|
puts 'analyze starting ......'.green
|
18
|
-
|
15
|
+
@podfile_dir_path = argv.shift_argument
|
19
16
|
super
|
20
17
|
end
|
21
18
|
|
@@ -44,8 +41,12 @@ module Jmpod
|
|
44
41
|
[].concat(super)
|
45
42
|
end
|
46
43
|
|
44
|
+
def validate!
|
45
|
+
super
|
46
|
+
end
|
47
|
+
|
47
48
|
def run
|
48
|
-
|
49
|
+
puts 'config === '
|
49
50
|
pp config.podfile
|
50
51
|
analyze_with_podfile(nil, config.podfile)
|
51
52
|
end
|
@@ -8,22 +8,22 @@ module Jmpod
|
|
8
8
|
设置jmpod全局配置.
|
9
9
|
DESC
|
10
10
|
|
11
|
-
self.arguments = [
|
12
|
-
|
13
|
-
]
|
11
|
+
# self.arguments = [
|
12
|
+
# CLAide::Argument.new('NAME', true),
|
13
|
+
# ]
|
14
14
|
|
15
15
|
def initialize(argv)
|
16
16
|
@name = argv.shift_argument
|
17
17
|
super
|
18
|
-
@additional_args = argv.remainder!
|
18
|
+
# @additional_args = argv.remainder!
|
19
19
|
end
|
20
20
|
|
21
21
|
def validate!
|
22
22
|
super
|
23
|
-
help! 'A name for the Pod is required.' unless @name
|
24
|
-
help! 'The Pod name cannot contain spaces.' if @name =~ /\s/
|
25
|
-
help! 'The Pod name cannot contain plusses.' if @name =~ /\+/
|
26
|
-
help! "The Pod name cannot begin with a '.'" if @name[0, 1] == '.'
|
23
|
+
# help! 'A name for the Pod is required.' unless @name
|
24
|
+
# help! 'The Pod name cannot contain spaces.' if @name =~ /\s/
|
25
|
+
# help! 'The Pod name cannot contain plusses.' if @name =~ /\+/
|
26
|
+
# help! "The Pod name cannot begin with a '.'" if @name[0, 1] == '.'
|
27
27
|
end
|
28
28
|
|
29
29
|
def run
|
data/lib/jmpod/version.rb
CHANGED