rubeepass 0.3.4 → 0.3.5

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/string.rb +17 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfefd448c97d47dcc449c6b1d39ee8124cabbfaf
4
- data.tar.gz: 4f97d802ed81c524e41eed2baeb4e7c58660ce73
3
+ metadata.gz: cd72d6abc3dc3d1c878e696df3a88e799e885760
4
+ data.tar.gz: 9c2a458d0da9acd7368b9354acec20b9fef386f5
5
5
  SHA512:
6
- metadata.gz: 6eece648d3b73a81717e46749a967076ef713c8ad9dee3cc66699e0e86b8b20e4be2484ef1c2b709ed0c338f8f9af9c1ce9b6f1fb182a665563f955d52f156a9
7
- data.tar.gz: e8a77c7a1d19448917d7639cbe9b8cec331d53c0c81c6db3b40fdc0a56ad3cd8186d51d1c0cb644e260a392e98a280da62ed085eda2f55f95f5a604528c3b9a2
6
+ metadata.gz: e1774ec88fc7ab6fb5d23d4ca5f224c71b45c319ce5f95a5ab595704be6d9b47a9b6223b868c7fa3f0e171bb7e4a8f5c61a1eca694429cfa70f919917fdff042
7
+ data.tar.gz: 14e50f21db984180540385699ffc2f2e2a8980a5e9efb0bec946053f4c771e1866ad84d7fd3bfae77e1604f08183dea36cd388f2b02434180c359ffec80dd81e
data/lib/string.rb CHANGED
@@ -1,13 +1,21 @@
1
1
  # Redefine String class to allow for colorizing, rsplit, and word wrap
2
2
  class String
3
+ def black
4
+ return colorize(30)
5
+ end
6
+
3
7
  def blue
4
- return colorize(36)
8
+ return colorize(34)
5
9
  end
6
10
 
7
11
  def colorize(color)
8
12
  return "\e[#{color}m#{self}\e[0m"
9
13
  end
10
14
 
15
+ def cyan
16
+ return colorise(36)
17
+ end
18
+
11
19
  def fix
12
20
  # Fix unicode (I think???)
13
21
  # Apparently sometimes length and bytesize don't always agree.
@@ -23,6 +31,10 @@ class String
23
31
  return colorize(32)
24
32
  end
25
33
 
34
+ def purple
35
+ return colorize(35)
36
+ end
37
+
26
38
  def red
27
39
  return colorize(31)
28
40
  end
@@ -40,4 +52,8 @@ class String
40
52
  def word_wrap(width = 70)
41
53
  return scan(/\S.{0,#{width}}\S(?=\s|$)|\S+/).join("\n")
42
54
  end
55
+
56
+ def yellow
57
+ return colorize(33)
58
+ end
43
59
  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
4
+ version: 0.3.5
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-07 00:00:00.000000000 Z
11
+ date: 2015-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -161,7 +161,7 @@ files:
161
161
  - lib/rubeepass/wish/show_all_wish.rb
162
162
  - lib/rubeepass/wish/show_wish.rb
163
163
  - lib/string.rb
164
- homepage: http://mjwhitta.github.io/rubeepass
164
+ homepage: https://mjwhitta.github.io/rubeepass
165
165
  licenses:
166
166
  - GPL-3.0
167
167
  metadata: {}