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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 311883c9ffe080198f6f0172db99761c699b72f700a93838b339447cc82a620b
4
- data.tar.gz: c0f21aa67e1eb61dbd59ae0f62ecd645bd2acd5cafd45802480b99d1b9a79ac0
3
+ metadata.gz: 42f6d120ab8628286834e79eb373915db74767a234f92d43aaa936a020941fbd
4
+ data.tar.gz: 38233cd868c014a4d2bc76af14adfc79c6d2405d46dfa8b99c4047648e3bd884
5
5
  SHA512:
6
- metadata.gz: cc8efadb60a4a03549f281e5ccbc5517dab40be5f7f203c063e6e3d4a65aae59b4b04a3e56151989074a50f16e01daabea600edff1e0122e002fc0b362e7816b
7
- data.tar.gz: 569f5bb8569cc60601f25ce8ee2c2a41b7a01fdeb03104d6f33bceae7f49d012674bb4d4d188c1a7f06b436b8af489e30ec3488c3a104d31b49425a3915773e7
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 '.blue + "Initing X environment."
18
+ UI.puts 'Pod::X '.magenta + "Initing X environment."
19
19
  project = Pod::X::Environment::init!
20
- UI.puts 'Pod::X '.blue + "'#{project.project_name}' initialization complete!".green
20
+ UI.puts 'Pod::X '.magenta + "'#{project.project_name}' initialization complete!".green
21
21
  rescue => exception
22
- UI.puts '[!] Pod::X '.blue + "#{exception}".red
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 '.blue + "Installing X environment."
18
+ UI.puts 'Pod::X '.magenta + "Installing X environment."
19
19
  Pod::X::Environment::install!
20
- UI.puts 'Pod::X '.blue + "Env installation complete!".green
20
+ UI.puts 'Pod::X '.magenta + "Env installation complete!".green
21
21
  rescue => exception
22
- UI.puts '[!] Pod::X '.blue + "#{exception}".red
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 '.blue + "Updating X environment."
18
+ UI.puts 'Pod::X '.magenta + "Updating X environment."
19
19
  Pod::X::Environment::update!
20
- UI.puts 'Pod::X '.blue + "Env installation complete!".green
20
+ UI.puts 'Pod::X '.magenta + "Env installation complete!".green
21
21
  rescue => exception
22
- UI.puts '[!] Pod::X '.blue + "#{exception}".red
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 '.blue + "fatal: destination path '#{project_name}' already exists and is not an empty directory.".red
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?
@@ -62,7 +62,7 @@ module Pod
62
62
  url = pods[index].location_url
63
63
  open_url! url
64
64
  rescue => exception
65
- UI.puts '[!] Pod::X '.blue + "#{exception}".red
65
+ UI.puts '[!] Pod::X '.magenta + "#{exception}".red
66
66
  end
67
67
 
68
68
  end
@@ -47,7 +47,7 @@ module Pod
47
47
  remove_files ['Pods', 'Podfile.lock', 'DerivedData']
48
48
  end
49
49
  rescue => exception
50
- UI.puts '[!] Pod::X '.blue + "#{exception}".red
50
+ UI.puts '[!] Pod::X '.magenta + "#{exception}".red
51
51
  end
52
52
  end
53
53
  end
@@ -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 '.blue + 'Working...'.green
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 '.blue + "You must specify a repository to clone for '#{name}'.".yellow
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 '.blue + "Cloning into '#{name}'...".green) do
68
- UI.puts 'Pod::X '.blue + "'#{name}' from: #{repo_url}".blue
69
- UI.puts 'Pod::X '.blue + "'#{name}' to: #{location_url}".blue
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 '.blue + "Installing #{name} (#{branch.red})".green
112
+ UI.puts 'Pod::X '.magenta + "Installing #{name} (#{branch.red})".green
113
113
  rescue => exception
114
- UI.puts 'Pod::X '.blue + "Installing #{name}".green
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 '.blue + "installation complete!".green
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 '.blue + "Cloning `#{repo_url}`.") do
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 '.blue + "#{exception}".red
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 '.blue + "Opening #{File.basename(url)}.") do
36
+ UI.section('Pod::X '.magenta + "Opening #{File.basename(url)}.") do
37
37
  open! [url]
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsX
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.3
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-15 00:00:00.000000000 Z
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.1.2
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'开发模式,