rubeepass 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/string.rb +5 -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: cfefd448c97d47dcc449c6b1d39ee8124cabbfaf
|
4
|
+
data.tar.gz: 4f97d802ed81c524e41eed2baeb4e7c58660ce73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eece648d3b73a81717e46749a967076ef713c8ad9dee3cc66699e0e86b8b20e4be2484ef1c2b709ed0c338f8f9af9c1ce9b6f1fb182a665563f955d52f156a9
|
7
|
+
data.tar.gz: e8a77c7a1d19448917d7639cbe9b8cec331d53c0c81c6db3b40fdc0a56ad3cd8186d51d1c0cb644e260a392e98a280da62ed085eda2f55f95f5a604528c3b9a2
|
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)
|
@@ -36,4 +36,8 @@ class String
|
|
36
36
|
def white
|
37
37
|
return colorize(37)
|
38
38
|
end
|
39
|
+
|
40
|
+
def word_wrap(width = 70)
|
41
|
+
return scan(/\S.{0,#{width}}\S(?=\s|$)|\S+/).join("\n")
|
42
|
+
end
|
39
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubeepass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
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-
|
11
|
+
date: 2015-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|