jmpod 0.1.5 → 0.1.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: fee5e5dcb7bd55bc15985aad190a536dda2d285ef3d3a841b47f7f01f13477d9
4
- data.tar.gz: e6f1b02fdf6c0949af3f542bf8515bdca29c30854dc926c0b78b5a2ec7e33530
3
+ metadata.gz: ca6ec4ce730db501ddf5b12cedc01b07c3910c7469a65c6eb9b5f2d2688063d7
4
+ data.tar.gz: 4a79884416517d90431801c8895f7ba5ea3621277e51224c9e9e88ab2d14f16f
5
5
  SHA512:
6
- metadata.gz: 0e4b5bb39b91ac924a1a2030bf45535d623a823e0611826a4908840b52d5e9a1481f56ea443dbfc9c87ac19ec53dbe7647579a802f4b8c3322772a06f732c5aa
7
- data.tar.gz: b0a0e2a4b82c007da07b23475502555eaa774f9896f4fa9ef306a0145b67577916a36ef044ced15012b81383d853d4d93a2fc11ec0feeed2aaf988cedfe203a8
6
+ metadata.gz: 3c1028687ede34374bd11c20cf3f8d14fc5862be33fb54bfa2d8b3bce52b95f31573f3f5083b8d21e731d197162c3a0709fe58ccaac80d084d9fad2546e6834c
7
+ data.tar.gz: c74e4d1232743f5c629541e57ad1d9148462b0e060ed39e4c4d757e97e874fc07a7f969152aa9244b43f0e95005889a302a09fdb4daf9579a7bf29c8a6eb382d
@@ -14,7 +14,6 @@ module Jmpod
14
14
 
15
15
  def initialize(argv)
16
16
  @name = argv.shift_argument
17
- @constant = Constant.new(self)
18
17
  super
19
18
  @additional_args = argv.remainder!
20
19
  end
@@ -28,7 +27,7 @@ module Jmpod
28
27
  end
29
28
 
30
29
  def run
31
- system "pod lib create #{@name} objc --template-url=#{@constant.GitURL}pod-template.git"
30
+ system "pod lib create #{@name} objc --template-url=#{Constant.GitURL}pod-template.git"
32
31
  # TODO 将podspec上传到私有specs上
33
32
  puts "一个新的oc pod创建成!".green
34
33
  end
@@ -14,7 +14,6 @@ module Jmpod
14
14
 
15
15
  def initialize(argv)
16
16
  @name = argv.shift_argument
17
- @constant = Constant.new(self)
18
17
  super
19
18
  @additional_args = argv.remainder!
20
19
  end
@@ -28,7 +27,7 @@ module Jmpod
28
27
  end
29
28
 
30
29
  def run
31
- system "pod lib create #{@name} swift --template-url=#{@constant.GitURL}pod-template"
30
+ system "pod lib create #{@name} swift --template-url=#{Constant.GitURL}pod-template"
32
31
  # TODO 将podspec上传到私有specs上
33
32
  puts "一个新的swift pod创建成功!".green
34
33
  end
@@ -14,7 +14,6 @@ module Jmpod
14
14
 
15
15
  def initialize(argv)
16
16
  @url = argv.shift_argument
17
- @constant = Constant.new(self)
18
17
  super
19
18
  @additional_args = argv.remainder!
20
19
  end
@@ -32,7 +31,7 @@ module Jmpod
32
31
  `git clone #{@url}`
33
32
  dir = @url.match(/[a-z|\-]+(?=\.git)/)
34
33
  `cd dir`
35
- `git remote set-url origin #{@constant.GitURL}#{dir}.git`
34
+ `git remote set-url origin #{Constant.GitURL}#{dir}.git`
36
35
  `git push origin master`
37
36
  `git push --tags`
38
37
  # TODO 将podspec上传到私有specs上
@@ -14,7 +14,6 @@ module Jmpod
14
14
 
15
15
  def initialize(argv)
16
16
  @name = argv.shift_argument
17
- @constant = Constant.new(self)
18
17
  super
19
18
  @additional_args = argv.remainder!
20
19
  end
@@ -14,7 +14,6 @@ module Jmpod
14
14
 
15
15
  def initialize(argv)
16
16
  @name = argv.shift_argument
17
- @constant = Constant.new(self)
18
17
  super
19
18
  @additional_args = argv.remainder!
20
19
  end
data/lib/jmpod/version.rb CHANGED
@@ -2,5 +2,5 @@ module Jmpod
2
2
  # freeze 冻结对象,将对象变成一个常量
3
3
  # unless 右边的代码块成立,才会运行左边的代码块
4
4
  # defined? 是用来判断本地变量是否存在,也可用来判断是否存在方法
5
- VERSION = "0.1.5".freeze unless defined? Jmpod::VERSION
5
+ VERSION = "0.1.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.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - jieming