mspac 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mspac +1 -1
- data/lib/mspac.rb +1 -1
- data/lib/mspac/pellet.rb +1 -1
- metadata +22 -3
- data/lib/string.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e386cfbe02203907947ce154b857df82129832f8
|
4
|
+
data.tar.gz: 009078909806e303299d6d56691e2809edeecc4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3709ae67232579bd1f033ebedc25b20693f90096330191a087fcf835494a0b8c1429f75c9dfd3608bb6927ad8f76f47deff1a566961411a3e889dd32d3160d6
|
7
|
+
data.tar.gz: 3d904d22450b07606bb3a7b96ce2502e38b0004deacaef08a321a217d1643915a2378aebd5cf255407a0576f4e4c32391f6b9eb92c994b5ec3befefa8cf6a2b1
|
data/bin/mspac
CHANGED
data/lib/mspac.rb
CHANGED
data/lib/mspac/pellet.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mspac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
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-02-
|
11
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colorize
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.7.7
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.7.7
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: scoobydoo
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +72,6 @@ files:
|
|
52
72
|
- lib/mspac/package_manager.rb
|
53
73
|
- lib/mspac/pellet.rb
|
54
74
|
- lib/mspac/version_control.rb
|
55
|
-
- lib/string.rb
|
56
75
|
homepage: https://mjwhitta.github.io/mspac
|
57
76
|
licenses:
|
58
77
|
- GPL-3.0
|
data/lib/string.rb
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# Redefine String class to allow for colorizing, rsplit, and word wrap
|
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
|
-
def rsplit(pattern)
|
32
|
-
ret = rpartition(pattern)
|
33
|
-
ret.delete_at(1)
|
34
|
-
return ret
|
35
|
-
end
|
36
|
-
|
37
|
-
def white
|
38
|
-
return colorize(37)
|
39
|
-
end
|
40
|
-
|
41
|
-
def word_wrap(width = 70)
|
42
|
-
return scan(/\S.{0,#{width}}\S(?=\s|$)|\S+/).join("\n")
|
43
|
-
end
|
44
|
-
|
45
|
-
def yellow
|
46
|
-
return colorize(33)
|
47
|
-
end
|
48
|
-
end
|