string-utility 2.5.0 → 2.5.1

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/lib/utils.rb +4 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbed80c84e8c9dc5be73278ee680d7ca18725cb6
4
- data.tar.gz: 6d56ccbb30cd8d20f5c8f46e91d6344740b8aba3
3
+ metadata.gz: 7880b3c35d659af05a90be338b24fcaba8120fea
4
+ data.tar.gz: 4dad1d4406a7da5cedd1a92c81f1daadff07b117
5
5
  SHA512:
6
- metadata.gz: 8d957ddac0fdd2075c069439174712302e6494a643f757154c1ba612564a6126d10e4d9642458a372c7f222b3a2ffe78b0b58bcb68996a2d64fea2b08757d82a
7
- data.tar.gz: ceadb86fd6073c37802427ac3c8b80bc080f168a17ef360b81646c3dbee021803d0a3f125d9db1c7efc844da1025eb867eaee07eeca8e6f137493eaa059f7892
6
+ metadata.gz: c1e532a1139acf27729507682924604722b6964887bc7014fbb9eb8d4f3c913821dd16df9eb7a92493047cd6e3239a1e128d95fdd3d40e2c4cde5ad45714355c
7
+ data.tar.gz: c49251f194755f8789342d2b378c354ef99d60050b6fd3ffd265bd25da1860df2d410a7a7bba5c539d8e41fd3348f58113810cce45a598388a06e6e78f784127
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
  ## Version 2
3
+ ### Version 2.5.1
4
+ * Docs for the new color methods
5
+
3
6
  ### Version 2.5.0
4
7
  * Improved spacify performance slightly.
5
8
  * New methods for getting web colors.
data/lib/utils.rb CHANGED
@@ -54,11 +54,15 @@ module StringUtility
54
54
  read[rand(read.size)].chomp
55
55
  end
56
56
 
57
+ # Gets a random three-digit hexidecimal web color string.
58
+ # @return [String] A random hexidecimal.
57
59
  def self.random_color_three
58
60
  string = random_color(0..2)
59
61
  "##{string}"
60
62
  end
61
63
 
64
+ # Gets a random six-digit hexidecimal web color string.
65
+ # @return [String] See #random_color_three
62
66
  def self.random_color_six
63
67
  string = random_color(0..5)
64
68
  "##{string}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string-utility
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eli Foster