jmpod 0.2.6 → 0.3.6

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: c149657a53dfafa8b7c34a75c5d34177fe46a0bd57a3fb332fca4c3545f9fea1
4
- data.tar.gz: 7de2b6c3c55ca864195c7e19911a87eef1c9e257cd1e31e1321287f6f1f4c64d
3
+ metadata.gz: 575ce1e67a03e6846b8c52690dfd5b13841dbd66ebed97409080585915373684
4
+ data.tar.gz: dabac51d660931dd0b6686c0c7e21d72b2c939b520a755c5379b946d0351aae0
5
5
  SHA512:
6
- metadata.gz: a3af982b6113eff69162ee2600cc260a4ad53c731abc43e615c6d485dce1c0014e4afdc9c61a186739bfba6360d5e3e7a50633d7ce90c70940f8360e1ee2c08a
7
- data.tar.gz: 67ab8567a230448d97e07002ae129ce9404a3f2330407d254c4ff1c1facc4a1987a715e8b3484e5a9a0515135901e4fef20e240179102693b3ef61d39aa7f512
6
+ metadata.gz: 0ad96620eeb2ccfd7a749e8ba6601b325fa03264c22debcf23975c5d6d0ef2809ab5b43a33138e39c2a7d5667e1752f13317c5ea02ed93ee07bfcd9ad27bd972
7
+ data.tar.gz: 2b0d315eed47eab0a12e74e11d492d7369f14e22c0fed89b5b77010935ae25dd5e3ad44a8d947d62474dbc8ef2805b43d33b9324b7a1c148f91c1990df023faa
data/jmpod-0.2.7.gem ADDED
Binary file
data/jmpod-0.2.8.gem ADDED
Binary file
data/jmpod-0.2.9.gem ADDED
Binary file
data/jmpod-0.3.0.gem ADDED
Binary file
data/jmpod-0.3.1.gem ADDED
Binary file
data/jmpod-0.3.2.gem ADDED
Binary file
data/jmpod-0.3.3.gem ADDED
Binary file
data/jmpod-0.3.4.gem ADDED
Binary file
@@ -9,10 +9,6 @@ module Jmpod
9
9
  self.description = <<-DESC
10
10
  配置全局链接等
11
11
  DESC
12
-
13
- # def config_dir
14
- # @home_dir ||= Pathname.new(ENV['CP_HOME_DIR'] || '~/.jmpodconfig').expand_path
15
- # end
16
12
  end
17
13
  end
18
14
  end
@@ -21,9 +21,6 @@ module Jmpod
21
21
  def validate!
22
22
  super
23
23
  help! 'A url for the Pod is required.' unless @url
24
- help! 'The Pod url cannot contain spaces.' if @url =~ /\s/
25
- help! 'The Pod url cannot contain plusses.' if @url =~ /\+/
26
- help! "The Pod url cannot begin with a '.'" if @url[0, 1] == '.'
27
24
  end
28
25
 
29
26
  def run
@@ -1,7 +1,7 @@
1
1
  module Jmpod
2
2
  class Command
3
3
  class Init < Command
4
- class Ci < Create
4
+ class Ci < Init
5
5
 
6
6
  self.summary = '创建ci'
7
7
  self.description = <<-DESC
@@ -1,7 +1,7 @@
1
1
  module Jmpod
2
2
  class Command
3
3
  class Init < Command
4
- class Unit < Create
4
+ class Unit < Init
5
5
 
6
6
  self.summary = '创建unit'
7
7
  self.description = <<-DESC
@@ -0,0 +1,33 @@
1
+ module Jmpod
2
+ class Command
3
+ class Op < Command
4
+ class Gems < Op
5
+
6
+ self.summary = '打开gems文件夹'
7
+ self.description = <<-DESC
8
+ 打开gems文件夹
9
+ DESC
10
+
11
+ self.arguments = [
12
+ ]
13
+
14
+ def initialize(argv)
15
+ super
16
+ end
17
+
18
+ def validate!
19
+ super
20
+ end
21
+
22
+ def run
23
+ openGems
24
+ end
25
+
26
+ def openGems
27
+ puts 'gem路径为:/Library/Ruby/Gems/'.green
28
+ system 'open /Library/Ruby/Gems/'
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,34 @@
1
+ module Jmpod
2
+ class Command
3
+ class Op < Command
4
+ class Gitconf < Op
5
+
6
+ self.summary = '打开.gitconfig文件'
7
+ self.description = <<-DESC
8
+ 打开.gitconfig文件
9
+ DESC
10
+
11
+ self.arguments = [
12
+ ]
13
+
14
+ def initialize(argv)
15
+ super
16
+ end
17
+
18
+ def validate!
19
+ super
20
+ end
21
+
22
+ def run
23
+ openGitConfig
24
+ end
25
+
26
+ def openGitConfig
27
+ puts 'git config路径为:~/.gitconfig'.green
28
+ puts 'git命令为: git config --list'
29
+ `git config --list`
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,33 @@
1
+ module Jmpod
2
+ class Command
3
+ class Op < Command
4
+ class Xcache < Op
5
+
6
+ self.summary = '打开Xcode 缓存文件夹'
7
+ self.description = <<-DESC
8
+ 打开Xcode 缓存文件夹
9
+ DESC
10
+
11
+ self.arguments = [
12
+ ]
13
+
14
+ def initialize(argv)
15
+ super
16
+ end
17
+
18
+ def validate!
19
+ super
20
+ end
21
+
22
+ def run
23
+ openXcodeCache
24
+ end
25
+
26
+ def openXcodeCache
27
+ puts 'Xcode缓存路径为:~/Library/Developer/Xcode/DerivedData/'.green
28
+ system 'open ~/Library/Developer/Xcode/DerivedData/'
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,15 @@
1
+ require 'jmpod/command/op/gems'
2
+ require 'jmpod/command/op/gitconf'
3
+ require 'jmpod/command/op/xcache'
4
+
5
+ module Jmpod
6
+ class Command
7
+ class Op < Command
8
+ self.abstract_command = true
9
+ self.summary = '打开常用文件'
10
+ self.description = <<-DESC
11
+ 打开常用文件夹,并输出路径
12
+ DESC
13
+ end
14
+ end
15
+ end
data/lib/jmpod/command.rb CHANGED
@@ -18,6 +18,7 @@ module Jmpod
18
18
  require 'jmpod/command/init'
19
19
  require 'jmpod/command/config'
20
20
  require 'jmpod/command/analyze'
21
+ require 'jmpod/command/op'
21
22
 
22
23
  self.abstract_command = true
23
24
  self.command = 'jmpod'
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.6".freeze unless defined? Jmpod::VERSION
5
+ VERSION = "0.3.6".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.6
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - jieming
@@ -116,6 +116,14 @@ files:
116
116
  - Rakefile
117
117
  - bin/jmpod
118
118
  - bin/setup
119
+ - jmpod-0.2.7.gem
120
+ - jmpod-0.2.8.gem
121
+ - jmpod-0.2.9.gem
122
+ - jmpod-0.3.0.gem
123
+ - jmpod-0.3.1.gem
124
+ - jmpod-0.3.2.gem
125
+ - jmpod-0.3.3.gem
126
+ - jmpod-0.3.4.gem
119
127
  - jmpod.gemspec
120
128
  - lib/jmpod.rb
121
129
  - lib/jmpod/command.rb
@@ -130,6 +138,10 @@ files:
130
138
  - lib/jmpod/command/init.rb
131
139
  - lib/jmpod/command/init/ci.rb
132
140
  - lib/jmpod/command/init/unit.rb
141
+ - lib/jmpod/command/op.rb
142
+ - lib/jmpod/command/op/gems.rb
143
+ - lib/jmpod/command/op/gitconf.rb
144
+ - lib/jmpod/command/op/xcache.rb
133
145
  - lib/jmpod/constant.rb
134
146
  - lib/jmpod/version.rb
135
147
  homepage: http://34.80.176.10:8080/iOS-third/jmpod