string-utility 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -0
  3. data/lib/utils.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad9a5ec9570803ab007444736656b204f3a0464b
4
- data.tar.gz: 5d6e5f984a218af1c45d5fbc6d848442408aa6b8
3
+ metadata.gz: 4a7d6edffa1aff2a4cd0f0db086cf0036dca0bc8
4
+ data.tar.gz: cc9b94d9b745e3cda02ddfb77e104e443c33d59a
5
5
  SHA512:
6
- metadata.gz: 5e909a2bc0d719cb233bb261d72e4437b2dcab9dbf0419c3b46012c61b6bd287e1ff1598fc93530b27bf27aa2f83f54991dad774579c7dcb475a918707d0b209
7
- data.tar.gz: cabb063efab640757a281d4341cede1775137931a9aa69e3a2f59559fdd21d18a061173a99af1046d5bc9c181d1e7f9b76c47f4a1550e1b87b86404caae03f90
6
+ metadata.gz: f37408adc6b7414c2812780fe7da0f580dbbec1efc0f4148f1901efaf3f1156f14488ba6be811a1193e1525e8c87bfed5d171d38e30386f22e9775ff1b08d672
7
+ data.tar.gz: 112f84b0457a14321efb0debbe25a8a4f1c7f86247a63cd91a032d1f5cbbc8a59e6754cffca140b071360822900b1f9371314a3c2f4dc9798c5522234e786ce9
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # Changelog
2
2
  ## Version 1
3
+ ### Version 1.0.1
4
+ * No longer need to create an instance of StringUtility. Not really sure why I made that the case in the first place.
3
5
  ### Version 1.0.0
4
6
  * Initial version. Currently only includes separate_with.
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.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-01 00:00:00.000000000 Z
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.