ruby-zoom 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/string.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3d8f9a2c4a13c6888b0646c45251a6e74cd24a5
|
4
|
+
data.tar.gz: 1258ee615ba8ec986da795db445bd9481d8af52a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 168111d450c81875b4cc8a1ae0555e5c14a0b31bca8b8dcbb337beb95fb1202fda7d6f121c6d245acc4ab1347bc3a26bb0f8908a150f8809eb958520f6dade0d
|
7
|
+
data.tar.gz: 9bfe3375c694b3f4797316dccdb9af9c57758fc0fd97f6311e559fc68e084ddc6944a92b00071a4f21c097a72fb89eff4db13cb86e9b1f5decb5cbc19c3a9332
|
data/lib/string.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Redefine String class to allow for colorizing and
|
1
|
+
# Redefine String class to allow for colorizing, rsplit, and word wrap
|
2
2
|
class String
|
3
3
|
def blue
|
4
4
|
return colorize(36)
|
@@ -16,6 +16,12 @@ class String
|
|
16
16
|
return colorize(31)
|
17
17
|
end
|
18
18
|
|
19
|
+
def rsplit(pattern)
|
20
|
+
ret = rpartition(pattern)
|
21
|
+
ret.delete_at(1)
|
22
|
+
return ret
|
23
|
+
end
|
24
|
+
|
19
25
|
def white
|
20
26
|
return colorize(37)
|
21
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-zoom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|