u-menu 0.8.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +6 -3
- data/Gemfile.lock +11 -3
- data/bin/u-menu +6 -1
- data/lib/micro/menu/icons.rb +72 -1
- data/lib/micro/menu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81e7fceb9a93546bc4faf4e7b03b6e6433e507dd2b2c4cfdfb4682e205e22869
|
4
|
+
data.tar.gz: 96603b243c958dee0033e0b64a9e9d665a895ea6df4da4578db5b4d93fd62573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 897f5db9b62aaa5b63a31a440014d4f9feb24ccb96c3d06bb8377da5fa4641742e452399183806570bc99e2387691f05ea98c7591b7278e49a61a4240c436a60
|
7
|
+
data.tar.gz: 242a1bbdc6c5960eb19f6557a84092fc4a91af5c802c6350d8ea812efef6032cd4a6223253b2a8cb4d767bd96b465e9fc16c3ae2bed2347c565369dcec87e9b9
|
data/Gemfile
CHANGED
@@ -9,8 +9,11 @@ gem 'rake', '~> 13.0'
|
|
9
9
|
gem 'rspec', '~> 3.0'
|
10
10
|
|
11
11
|
group :development do
|
12
|
-
gem
|
13
|
-
gem
|
14
|
-
gem
|
12
|
+
gem 'guard-rspec', '~> 4.7'
|
13
|
+
gem 'rubocop', '~> 1.51'
|
14
|
+
gem 'rubocop-rspec', '~> 2.22'
|
15
15
|
end
|
16
16
|
|
17
|
+
group :test do
|
18
|
+
gem 'simplecov', '~> 0.22.0', require: false
|
19
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
u-menu (0.
|
5
|
-
pastel
|
6
|
-
tty-prompt
|
4
|
+
u-menu (0.8.0)
|
5
|
+
pastel (~> 0.8.0)
|
6
|
+
tty-prompt (~> 0.23.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -11,6 +11,7 @@ GEM
|
|
11
11
|
ast (2.4.2)
|
12
12
|
coderay (1.1.3)
|
13
13
|
diff-lcs (1.5.0)
|
14
|
+
docile (1.4.0)
|
14
15
|
ffi (1.15.5)
|
15
16
|
formatador (1.1.0)
|
16
17
|
guard (2.18.0)
|
@@ -87,6 +88,12 @@ GEM
|
|
87
88
|
rubocop-factory_bot (~> 2.22)
|
88
89
|
ruby-progressbar (1.13.0)
|
89
90
|
shellany (0.0.1)
|
91
|
+
simplecov (0.22.0)
|
92
|
+
docile (~> 1.1)
|
93
|
+
simplecov-html (~> 0.11)
|
94
|
+
simplecov_json_formatter (~> 0.1)
|
95
|
+
simplecov-html (0.12.3)
|
96
|
+
simplecov_json_formatter (0.1.4)
|
90
97
|
thor (1.2.2)
|
91
98
|
tty-color (0.6.0)
|
92
99
|
tty-cursor (0.7.1)
|
@@ -110,6 +117,7 @@ DEPENDENCIES
|
|
110
117
|
rspec (~> 3.0)
|
111
118
|
rubocop (~> 1.51)
|
112
119
|
rubocop-rspec (~> 2.22)
|
120
|
+
simplecov (~> 0.22.0)
|
113
121
|
u-menu!
|
114
122
|
|
115
123
|
BUNDLED WITH
|
data/bin/u-menu
CHANGED
@@ -43,7 +43,7 @@ options = options.sort { |a, b| a[:name] <=> b[:name] }
|
|
43
43
|
options.each do |option|
|
44
44
|
if option[:name].match(/\{\{(?<icon_name>.*)\}\}/)
|
45
45
|
icon_name = Regexp.last_match('icon_name')
|
46
|
-
option[:name].sub!("{{#{icon_name}}}
|
46
|
+
option[:name].sub!("{{#{icon_name}}}", use_icons ? icons[icon_name] : '')
|
47
47
|
else
|
48
48
|
option[:name] = "#{use_icons ? icons['terminal'] : ''} #{option[:name]}" if option[:type] == 'command'
|
49
49
|
option[:name] = "#{use_icons ? icons['link'] : ''} #{option[:name]}" if option[:type] == 'link'
|
@@ -62,6 +62,11 @@ loop do
|
|
62
62
|
puts "#{colors.bold('Sure... opening link')} '#{colors.cyan(action[:execute])}'"
|
63
63
|
system "open #{action[:execute]} &"
|
64
64
|
when 'edit'
|
65
|
+
unless config.dig(:settings, :editor)
|
66
|
+
warn '[error] key `settings > editor` not found into config file.'
|
67
|
+
exit(1)
|
68
|
+
end
|
69
|
+
|
65
70
|
puts "#{colors.bold('Sure... opening file')} '#{colors.cyan(action[:execute])}'"
|
66
71
|
system "#{config[:settings][:editor]} #{action[:execute]}"
|
67
72
|
end
|
data/lib/micro/menu/icons.rb
CHANGED
@@ -10,7 +10,78 @@ module Micro
|
|
10
10
|
'chart' => "\ue760",
|
11
11
|
'jira' => "\ue75c",
|
12
12
|
'settings' => "\ue615",
|
13
|
-
'link' => "\ueb15"
|
13
|
+
'link' => "\ueb15",
|
14
|
+
'ai' => '',
|
15
|
+
'android' => '',
|
16
|
+
'apple' => '',
|
17
|
+
'audio' => '',
|
18
|
+
'avro' => '',
|
19
|
+
'c' => '',
|
20
|
+
'clj' => '',
|
21
|
+
'coffee' => '',
|
22
|
+
'conf' => '',
|
23
|
+
'cpp' => '',
|
24
|
+
'css' => '',
|
25
|
+
'd' => '',
|
26
|
+
'dart' => '',
|
27
|
+
'db' => '',
|
28
|
+
'diff' => '',
|
29
|
+
'doc' => '',
|
30
|
+
'docker' => '',
|
31
|
+
'ebook' => '',
|
32
|
+
'env' => '',
|
33
|
+
'epub' => '',
|
34
|
+
'erl' => '',
|
35
|
+
'file' => '',
|
36
|
+
'font' => '',
|
37
|
+
'gform' => '',
|
38
|
+
'git' => '',
|
39
|
+
'go' => '',
|
40
|
+
'gruntfile' => '',
|
41
|
+
'hs' => '',
|
42
|
+
'html' => '',
|
43
|
+
'image' => '',
|
44
|
+
'iml' => '',
|
45
|
+
'java' => '',
|
46
|
+
'js' => '',
|
47
|
+
'json' => '',
|
48
|
+
'jsx' => '',
|
49
|
+
'less' => '',
|
50
|
+
'log' => '',
|
51
|
+
'lua' => '',
|
52
|
+
'md' => '',
|
53
|
+
'mustache' => '',
|
54
|
+
'npmignore' => '',
|
55
|
+
'pdf' => '',
|
56
|
+
'php' => '',
|
57
|
+
'pl' => '',
|
58
|
+
'ppt' => '',
|
59
|
+
'psd' => '',
|
60
|
+
'py' => '',
|
61
|
+
'r' => '',
|
62
|
+
'rb' => '',
|
63
|
+
'rdb' => '',
|
64
|
+
'react' => 'ﰆ',
|
65
|
+
'rss' => '',
|
66
|
+
'rubydoc' => '',
|
67
|
+
'sass' => '',
|
68
|
+
'scala' => '',
|
69
|
+
'shell' => '',
|
70
|
+
'sqlite3' => '',
|
71
|
+
'styl' => '',
|
72
|
+
'tex' => '',
|
73
|
+
'ts' => '',
|
74
|
+
'twig' => '',
|
75
|
+
'txt' => '',
|
76
|
+
'video' => '',
|
77
|
+
'vim' => '',
|
78
|
+
'vue' => '﵂',
|
79
|
+
'windows' => '',
|
80
|
+
'xls' => '',
|
81
|
+
'xml' => '',
|
82
|
+
'yarn' => '',
|
83
|
+
'yml' => '',
|
84
|
+
'zip' => ''
|
14
85
|
}
|
15
86
|
|
16
87
|
def self.all
|
data/lib/micro/menu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: u-menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Vinciguerra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pastel
|