ruaur 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ruaur +1 -1
- data/lib/ruaur/aur.rb +1 -1
- data/lib/ruaur/package.rb +2 -1
- data/lib/string.rb +2 -38
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7720310350f6565569d0d695021fcc4f210061f
|
4
|
+
data.tar.gz: 56279314c117f945d7d325ed284e3291876394de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df7a2f48421f575a3e1575222807702ec4e2320248f30570ed14d37274c6fabbd116265ceffdb8c31b369c573d567b8f8f248c926d777d1201d2fd0d4f6805e9
|
7
|
+
data.tar.gz: e99aa412d0396d3ea76a0753dd84be7356873b3d0b32fe5338fc6ba6d6fe08d71c41691f3131b2926e770c7fbf9659befc2317c8b17f4e2dc01a1f80122b75d3
|
data/bin/ruaur
CHANGED
data/lib/ruaur/aur.rb
CHANGED
@@ -181,7 +181,7 @@ class RuAUR::AUR
|
|
181
181
|
next if (dep.start_with?("$"))
|
182
182
|
|
183
183
|
if (!@installed.has_key?(dep))
|
184
|
-
puts "Installing dependency: #{dep}".
|
184
|
+
puts "Installing dependency: #{dep}".magenta
|
185
185
|
if (@pacman.exist?(dep))
|
186
186
|
@pacman.install(dep, noconfirm)
|
187
187
|
else
|
data/lib/ruaur/package.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require "colorize"
|
1
2
|
require "string"
|
2
3
|
|
3
4
|
class RuAUR::Package
|
@@ -84,7 +85,7 @@ class RuAUR::Package
|
|
84
85
|
end
|
85
86
|
header.push(@version.green)
|
86
87
|
header.push(@votes.white) if (@votes)
|
87
|
-
header.push("[installed]".
|
88
|
+
header.push("[installed]".magenta) if (@installed)
|
88
89
|
out.push(header.join(" "))
|
89
90
|
|
90
91
|
@description.word_wrap.each_line do |line|
|
data/lib/string.rb
CHANGED
@@ -1,48 +1,12 @@
|
|
1
|
-
#
|
1
|
+
# Modify String class to allow for rsplit and word wrap
|
2
2
|
class String
|
3
|
-
def black
|
4
|
-
return colorize(30)
|
5
|
-
end
|
6
|
-
|
7
|
-
def blue
|
8
|
-
return colorize(34)
|
9
|
-
end
|
10
|
-
|
11
|
-
def colorize(color)
|
12
|
-
return "\e[#{color}m#{self}\e[0m"
|
13
|
-
end
|
14
|
-
|
15
|
-
def cyan
|
16
|
-
return colorize(36)
|
17
|
-
end
|
18
|
-
|
19
|
-
def green
|
20
|
-
return colorize(32)
|
21
|
-
end
|
22
|
-
|
23
|
-
def purple
|
24
|
-
return colorize(35)
|
25
|
-
end
|
26
|
-
|
27
|
-
def red
|
28
|
-
return colorize(31)
|
29
|
-
end
|
30
|
-
|
31
3
|
def rsplit(pattern)
|
32
4
|
ret = rpartition(pattern)
|
33
5
|
ret.delete_at(1)
|
34
6
|
return ret
|
35
7
|
end
|
36
8
|
|
37
|
-
def
|
38
|
-
return colorize(37)
|
39
|
-
end
|
40
|
-
|
41
|
-
def word_wrap(width = 70)
|
9
|
+
def word_wrap(width = 80)
|
42
10
|
return scan(/\S.{0,#{width}}\S(?=\s|$)|\S+/).join("\n")
|
43
11
|
end
|
44
|
-
|
45
|
-
def yellow
|
46
|
-
return colorize(33)
|
47
|
-
end
|
48
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruaur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: archive-tar-minitar
|
@@ -30,6 +30,26 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.5.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: colorize
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.7'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.7.7
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.7'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.7.7
|
33
53
|
- !ruby/object:Gem::Dependency
|
34
54
|
name: scoobydoo
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|