cocoapods-x 0.0.3 → 0.0.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/lib/cocoapods-x/command/environment/init.rb +3 -3
- data/lib/cocoapods-x/command/environment/install.rb +3 -3
- data/lib/cocoapods-x/command/environment/update.rb +3 -3
- data/lib/cocoapods-x/command/libary/create.rb +1 -1
- data/lib/cocoapods-x/command/repo.rb +1 -1
- data/lib/cocoapods-x/command/xcode/clean.rb +1 -1
- data/lib/cocoapods-x/extension/installer.rb +8 -8
- data/lib/cocoapods-x/extension/sandbox/template.rb +1 -1
- data/lib/cocoapods-x/extension/xcode/open.rb +2 -2
- data/lib/cocoapods-x/gem_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42f6d120ab8628286834e79eb373915db74767a234f92d43aaa936a020941fbd
|
4
|
+
data.tar.gz: 38233cd868c014a4d2bc76af14adfc79c6d2405d46dfa8b99c4047648e3bd884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 282fba66c0f61166fae1999a438622a4ef18f12a69d3dc149d9751258d288cf8c789c90e8a11742472ddcfba2f7eb03d55806d3f68e6a42838b33885f8bdde40
|
7
|
+
data.tar.gz: e76c09f47966545cf60303894e1b1a2dd15065bb8edadd55b4e0108d7bfd759dba7dfcd646ea1a480b3e7291c4cafb1051b243d8c0e4b9f31dc7e76a76969fa4
|
@@ -15,11 +15,11 @@ module Pod
|
|
15
15
|
|
16
16
|
def run
|
17
17
|
begin
|
18
|
-
UI.puts 'Pod::X '.
|
18
|
+
UI.puts 'Pod::X '.magenta + "Initing X environment."
|
19
19
|
project = Pod::X::Environment::init!
|
20
|
-
UI.puts 'Pod::X '.
|
20
|
+
UI.puts 'Pod::X '.magenta + "'#{project.project_name}' initialization complete!".green
|
21
21
|
rescue => exception
|
22
|
-
UI.puts '[!] Pod::X '.
|
22
|
+
UI.puts '[!] Pod::X '.magenta + "#{exception}".red
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -15,11 +15,11 @@ module Pod
|
|
15
15
|
|
16
16
|
def run
|
17
17
|
begin
|
18
|
-
UI.puts 'Pod::X '.
|
18
|
+
UI.puts 'Pod::X '.magenta + "Installing X environment."
|
19
19
|
Pod::X::Environment::install!
|
20
|
-
UI.puts 'Pod::X '.
|
20
|
+
UI.puts 'Pod::X '.magenta + "Env installation complete!".green
|
21
21
|
rescue => exception
|
22
|
-
UI.puts '[!] Pod::X '.
|
22
|
+
UI.puts '[!] Pod::X '.magenta + "#{exception}".red
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -15,11 +15,11 @@ module Pod
|
|
15
15
|
|
16
16
|
def run
|
17
17
|
begin
|
18
|
-
UI.puts 'Pod::X '.
|
18
|
+
UI.puts 'Pod::X '.magenta + "Updating X environment."
|
19
19
|
Pod::X::Environment::update!
|
20
|
-
UI.puts 'Pod::X '.
|
20
|
+
UI.puts 'Pod::X '.magenta + "Env installation complete!".green
|
21
21
|
rescue => exception
|
22
|
-
UI.puts '[!] Pod::X '.
|
22
|
+
UI.puts '[!] Pod::X '.magenta + "#{exception}".red
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -29,7 +29,7 @@ module Pod
|
|
29
29
|
configure_url = Pod::X::Sandbox::workspace::template::configure
|
30
30
|
template_url = Pod::X::Sandbox::workspace::template::ios_template
|
31
31
|
if Dir::exist?(target_url) && !Dir::empty?(target_url)
|
32
|
-
UI.puts 'Pod::X '.
|
32
|
+
UI.puts 'Pod::X '.magenta + "fatal: destination path '#{project_name}' already exists and is not an empty directory.".red
|
33
33
|
else
|
34
34
|
rm! ['-rf', target_url]
|
35
35
|
if !template_url.exist?
|
@@ -50,7 +50,7 @@ module Pod
|
|
50
50
|
@sources_builder::build(workspace.source_file)
|
51
51
|
@repos = build_repos()
|
52
52
|
@use_repos = Array::new
|
53
|
-
UI.puts 'Pod::X '.
|
53
|
+
UI.puts 'Pod::X '.magenta + 'Working...'.green
|
54
54
|
end
|
55
55
|
|
56
56
|
def monitor_initialize_end(defined_in_file = nil, internal_hash = {}, &block)
|
@@ -62,11 +62,11 @@ module Pod
|
|
62
62
|
repo_url = repo.repo_url
|
63
63
|
location_url = repo.location_url
|
64
64
|
if repo_url.nil? || location_url.nil?
|
65
|
-
UI.puts 'Pod::X '.
|
65
|
+
UI.puts 'Pod::X '.magenta + "You must specify a repository to clone for '#{name}'.".yellow
|
66
66
|
elsif !Dir::exist?(location_url) || Dir::empty?(location_url)
|
67
|
-
UI.section('Pod::X '.
|
68
|
-
UI.puts 'Pod::X '.
|
69
|
-
UI.puts 'Pod::X '.
|
67
|
+
UI.section('Pod::X '.magenta + "Cloning into '#{name}'...".green) do
|
68
|
+
UI.puts 'Pod::X '.magenta + "'#{name}' from: #{repo_url}".magenta
|
69
|
+
UI.puts 'Pod::X '.magenta + "'#{name}' to: #{location_url}".magenta
|
70
70
|
rm! ['-rf', location_url]
|
71
71
|
git! ['clone', repo_url, location_url]
|
72
72
|
end
|
@@ -109,14 +109,14 @@ module Pod
|
|
109
109
|
begin
|
110
110
|
branch = git! ['rev-parse', '--abbrev-ref', 'HEAD']
|
111
111
|
branch = branch.chomp
|
112
|
-
UI.puts 'Pod::X '.
|
112
|
+
UI.puts 'Pod::X '.magenta + "Installing #{name} (#{branch.red})".green
|
113
113
|
rescue => exception
|
114
|
-
UI.puts 'Pod::X '.
|
114
|
+
UI.puts 'Pod::X '.magenta + "Installing #{name}".green
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
119
|
-
UI.puts 'Pod::X '.
|
119
|
+
UI.puts 'Pod::X '.magenta + "installation complete!".green
|
120
120
|
end
|
121
121
|
|
122
122
|
def monitor_print_post_install_message_end
|
@@ -62,7 +62,7 @@ module Pod
|
|
62
62
|
|
63
63
|
def clone_template! to
|
64
64
|
repo_url = 'https://github.com/CocoaPodsX/project-template.git'
|
65
|
-
UI.section('Pod::X '.
|
65
|
+
UI.section('Pod::X '.magenta + "Cloning `#{repo_url}`.") do
|
66
66
|
git! ['clone', '--depth=1', repo_url, to]
|
67
67
|
end
|
68
68
|
|
@@ -24,7 +24,7 @@ module Pod
|
|
24
24
|
index = UI.choose_from_array(choices, 'Which file do you want to open?')
|
25
25
|
openxc!(urls[index])
|
26
26
|
rescue => exception
|
27
|
-
UI.puts '[!] Pod::X '.
|
27
|
+
UI.puts '[!] Pod::X '.magenta + "#{exception}".red
|
28
28
|
end
|
29
29
|
else
|
30
30
|
openxc!('/Applications/Xcode.app')
|
@@ -33,7 +33,7 @@ module Pod
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def openxc! url
|
36
|
-
UI.section('Pod::X '.
|
36
|
+
UI.section('Pod::X '.magenta + "Opening #{File.basename(url)}.") do
|
37
37
|
open! [url]
|
38
38
|
end
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-x
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- panghu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
104
|
+
rubygems_version: 3.0.8
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: 扩展pod x命令, 实现快速清理缓存, 快速打开Xcode等操作, 使用souce, pods两个dsl实现快速切换pod 'NAME', :path=>'url'开发模式,
|