jmpod 0.1.3 → 0.1.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/lib/jmpod/command/create/swift.rb +2 -1
- data/lib/jmpod/command/create/third.rb +2 -2
- data/lib/jmpod/version.rb +1 -1
- data/lib/jmpod.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: 0b5f5f64f043c358705054d45b3f83898d35e8d04bcb3b4c4a836cfc52a8dcf1
|
4
|
+
data.tar.gz: ec7ad6e22dd3d09546cd2c7c7951dd7deb6de7312a500117676b7d9d68e3f731
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f550964b65037997bc9d257adb09e2ffe1ba4451429d0f051e85d4dc5efea237bad53f9588600ffeab0c02358078532ea05ab312c238e6e5a2a4b8b28e02802f
|
7
|
+
data.tar.gz: 48237406b40d4596f1c4e05bb32a4ddcb5a856a79f208fa8785db7546eebee8b63ab11abb7dea172ff2f766227eeb7edbd0e779f66d7a40f49b3edb899fb1b59
|
data/Gemfile.lock
CHANGED
@@ -14,6 +14,7 @@ module Jmpod
|
|
14
14
|
|
15
15
|
def initialize(argv)
|
16
16
|
@name = argv.shift_argument
|
17
|
+
@constant = Constant.new(self)
|
17
18
|
super
|
18
19
|
@additional_args = argv.remainder!
|
19
20
|
end
|
@@ -27,7 +28,7 @@ module Jmpod
|
|
27
28
|
end
|
28
29
|
|
29
30
|
def run
|
30
|
-
system "pod lib create #{@name} swift --template-url
|
31
|
+
system "pod lib create #{@name} swift --template-url=#{@constant.GitURL}pod-template"
|
31
32
|
# TODO 将podspec上传到私有specs上
|
32
33
|
puts "一个新的swift pod创建成功!".green
|
33
34
|
end
|
@@ -14,6 +14,7 @@ module Jmpod
|
|
14
14
|
|
15
15
|
def initialize(argv)
|
16
16
|
@url = argv.shift_argument
|
17
|
+
@constant = Constant.new(self)
|
17
18
|
super
|
18
19
|
@additional_args = argv.remainder!
|
19
20
|
end
|
@@ -28,11 +29,10 @@ module Jmpod
|
|
28
29
|
|
29
30
|
def run
|
30
31
|
# fork 第三方仓库流程
|
31
|
-
puts "run"
|
32
32
|
`git clone #{@url}`
|
33
33
|
dir = @url.match(/[a-z|\-]+(?=\.git)/)
|
34
34
|
`cd dir`
|
35
|
-
`git remote set-url origin
|
35
|
+
`git remote set-url origin #{@constant.GitURL}#{dir}.git`
|
36
36
|
`git push origin master`
|
37
37
|
`git push --tags`
|
38
38
|
# TODO 将podspec上传到私有specs上
|
data/lib/jmpod/version.rb
CHANGED
data/lib/jmpod.rb
CHANGED