cocoapods-modularization 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b925b205a25089b855e987449d99e414520a856300aa157a2348e5445df8583
|
4
|
+
data.tar.gz: af6e0f0d67e5501cbc5befce71370def7b9929af6812d0b4576e4958a88377fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e8fe207994fec10eee85bc7a3477d8158055b3ea00b3c852ccd35af1f6b577ef43a544c937576a7f57eff010ccc2e9f39f2e60e32a05f5f97d2ea33780cd677
|
7
|
+
data.tar.gz: f4f2b2c461351a998c23b318a2be65d2018e1685fbfd6865360e0207aaaa674969a89300d6ce61d2d8878d2eaeea0db4044ede7a7e8f1fbf972c9553cbe5d9c3
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module Pod
|
4
|
+
class Command
|
5
|
+
class Mod < Command
|
6
|
+
class Template < Mod
|
7
|
+
|
8
|
+
self.summary = 'Fetch build.rb from remote'
|
9
|
+
|
10
|
+
self.description = <<-DESC
|
11
|
+
Fetch build.rb from remote
|
12
|
+
DESC
|
13
|
+
|
14
|
+
def initialize(argv)
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
def validate!
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
22
|
+
def run
|
23
|
+
build_path = "#{Dir.pwd}/build.rb"
|
24
|
+
if File.exist?(build_path)
|
25
|
+
FileUtils.rm_rf(build_path)
|
26
|
+
end
|
27
|
+
system_build("http://gitlab.appshahe.com/ios-specs/template.git .build")
|
28
|
+
|
29
|
+
unless File.exist?("#{Dir.pwd}/.build")
|
30
|
+
puts "./.build not found"
|
31
|
+
return
|
32
|
+
end
|
33
|
+
|
34
|
+
FileUtils.mv("#{Dir.pwd}/.build/build.rb", "#{Dir.pwd}/build.rb")
|
35
|
+
FileUtils.rm_rf("#{Dir.pwd}/.build")
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -7,6 +7,7 @@ require 'cocoapods-modularization/command/mod/config'
|
|
7
7
|
require 'cocoapods-modularization/command/mod/add'
|
8
8
|
require 'cocoapods-modularization/command/mod/update'
|
9
9
|
require 'cocoapods-modularization/command/mod/base'
|
10
|
+
require 'cocoapods-modularization/command/mod/template'
|
10
11
|
|
11
12
|
module Pod
|
12
13
|
class Command
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-modularization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lazy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,6 +72,7 @@ files:
|
|
72
72
|
- lib/cocoapods-modularization/command/mod/inspect.rb
|
73
73
|
- lib/cocoapods-modularization/command/mod/source.rb
|
74
74
|
- lib/cocoapods-modularization/command/mod/sync.rb
|
75
|
+
- lib/cocoapods-modularization/command/mod/template.rb
|
75
76
|
- lib/cocoapods-modularization/command/mod/update.rb
|
76
77
|
- lib/cocoapods-modularization/gem_version.rb
|
77
78
|
- lib/cocoapods-modularization/generate.rb
|