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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/string.rb +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54c82ec02a3f8fd56c99f71a28540f2bf2898002
4
- data.tar.gz: 47f87ffb3270ee86f957493fda358cd30aedf8f2
3
+ metadata.gz: c3d8f9a2c4a13c6888b0646c45251a6e74cd24a5
4
+ data.tar.gz: 1258ee615ba8ec986da795db445bd9481d8af52a
5
5
  SHA512:
6
- metadata.gz: dcf39b5c8eb4ba8f8c71fdb9138641dde45aea9c882c093fb5bebb8b2f29e3f9795841e6c9d0288e0ec3301380aa114035a29d41a1b484eacc73b9a6fe9aa227
7
- data.tar.gz: 55a81f2f64ce1864f3ff360481cf495c9cd74dc92d24b172a51db6bb0ecbb63a4b11143414b28d668b9afdf13e0263429897a4e6ea6471a8f0a44bae03010dca
6
+ metadata.gz: 168111d450c81875b4cc8a1ae0555e5c14a0b31bca8b8dcbb337beb95fb1202fda7d6f121c6d245acc4ab1347bc3a26bb0f8908a150f8809eb958520f6dade0d
7
+ data.tar.gz: 9bfe3375c694b3f4797316dccdb9af9c57758fc0fd97f6311e559fc68e084ddc6944a92b00071a4f21c097a72fb89eff4db13cb86e9b1f5decb5cbc19c3a9332
@@ -1,4 +1,4 @@
1
- # Redefine String class to allow for colorizing and rsplit
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.0
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-10-24 00:00:00.000000000 Z
11
+ date: 2015-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest