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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9b94a5faff77184b699b59eabc97be415fe5e6705a80a9f25cfce64a308e015
4
- data.tar.gz: b65ec87bb4591f18fe873167206ab3940b31e11b792d67a14e3f71d6328c218f
3
+ metadata.gz: 57395f5481cef82d1b55ca91626d91bc8ee89a0b6e081a9d4eb3821eec5f1715
4
+ data.tar.gz: 35044c8dc835a21abda4c455df1ea58f0bb8ea76f973bc9cebad6cc46413a2c7
5
5
  SHA512:
6
- metadata.gz: c5e826a824e9772406c8bd5d73e76fe8481582edc010da923b94da00e1e60ce5b0b94c91a61022caba8ba9244becd238387f6603a721440b96806325f1df3884
7
- data.tar.gz: 71ee4d753be2add54da18b87202b444ad2c8fcd88a42a1cb4a0b732471f0f384453d8ce6d61117da9ac1305142c550873e1eaf6047c07fe4d8837da80ade964b
6
+ metadata.gz: 5153a66ec8a46e5b4c482c851dbae3ed8fa37400e7b0207a2a1f5a6df6865b072364d11fb24cb53402f6bcd8b46506819366ff66c1384210eb8063d00fbbdbe4
7
+ data.tar.gz: 80799554d9f43813f1b0bbae3b7aa821c5d4c2184192f9d559f6583bc37db7d177faf583b942171e4512ac33e1873a9280f02da53602ee5daea41cbff4dbf196
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jmpod (0.1.3)
4
+ jmpod (0.2.3)
5
5
  claide (>= 1.0.2, < 2.0)
6
6
  cocoapods (>= 1.8.4)
7
7
  colored2 (~> 3.1)
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
- pp argv
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
- p 'config === '
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
- CLAide::Argument.new('NAME', true),
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
@@ -2,5 +2,5 @@ module Jmpod
2
2
  # freeze 冻结对象,将对象变成一个常量
3
3
  # unless 右边的代码块成立,才会运行左边的代码块
4
4
  # defined? 是用来判断本地变量是否存在,也可用来判断是否存在方法
5
- VERSION = "0.2.2".freeze unless defined? Jmpod::VERSION
5
+ VERSION = "0.2.4".freeze unless defined? Jmpod::VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jmpod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jieming