string-utility 1.0.0 → 1.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/utils.rb +1 -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: 4a7d6edffa1aff2a4cd0f0db086cf0036dca0bc8
|
4
|
+
data.tar.gz: cc9b94d9b745e3cda02ddfb77e104e443c33d59a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f37408adc6b7414c2812780fe7da0f580dbbec1efc0f4148f1901efaf3f1156f14488ba6be811a1193e1525e8c87bfed5d171d38e30386f22e9775ff1b08d672
|
7
|
+
data.tar.gz: 112f84b0457a14321efb0debbe25a8a4f1c7f86247a63cd91a032d1f5cbbc8a59e6754cffca140b071360822900b1f9371314a3c2f4dc9798c5522234e786ce9
|
data/CHANGELOG.md
CHANGED
data/lib/utils.rb
CHANGED
@@ -8,7 +8,7 @@ class StringUtility
|
|
8
8
|
# @param count [Int] The number of integers to separate by. Defaults to 3.
|
9
9
|
# @param separator [String] The string to use as a separator. Can only be 1 character long. Will use the first character if it is greater than 1 character long. Defaults to a comma.
|
10
10
|
# @return [String] Formatted version of the provided string.
|
11
|
-
def separate_with(string, count = 3, separator = ',')
|
11
|
+
def self.separate_with(string, count = 3, separator = ',')
|
12
12
|
if separator.length > 1
|
13
13
|
separator = separator[0]
|
14
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: string-utility
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Foster
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
Some simple but handy methods to interact with string objects.
|