first_gem_better_carl 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd62d89f2575d339cb8a50d1809141836aaa984d
4
- data.tar.gz: 58566c510b14e93153160abb6e6e3aac5926a694
3
+ metadata.gz: 0fd8fbf8e4ee2b3aac6e7aca3247b0c2628a097c
4
+ data.tar.gz: 9f6535031183085b4715d90a9d483223e58026aa
5
5
  SHA512:
6
- metadata.gz: ebb37261ac23526d15c06a0f54865ecabe1a01432bcaa53e7f88d06fb9b2cbf0462828fef9fe4ffd56614e8ebbb960fff4978feef123245444fffaa130337af0
7
- data.tar.gz: 5c7442490baa0d31cde9a587bdaba416a9fa34148d5f29bdc43d7b1213d9c7d79f51cfb4bbf09306f3eba1522ca688d1720872f026cea2bc3b3585e87f0bda21
6
+ metadata.gz: 79f453c531210c44f4e6855c8784916409ea9ba6dd59eaec82750a194a91bdd66766e4a8cc210a998019602cc279e0aa904fd6562ddd2495c7b1e0a922cab3b3
7
+ data.tar.gz: 0d7ce6c091ca7030276c6a37a0b650a75c6ef801d00ac818e83fa296d0e394b5d8d39bfec162deab92a714d902c9d0979314c8aa1fc881279f06036e9111c9a2
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FirstGemBetterCarl
2
2
 
3
- TODO: Write a gem description
3
+ This gem adds methods to the String class.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = FirstGemBetterCarl::VERSION
9
9
  spec.authors = ["Mike Stone"]
10
10
  spec.email = ["mikestone14@gmail.com"]
11
- spec.summary = %q{Nice new gem for finding the word count of strings.}
12
- spec.description = %q{This gem finds the word count of strings.}
11
+ spec.summary = %q{This gem adds methods to the String class.}
12
+ spec.description = %q{}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
@@ -1,3 +1,3 @@
1
1
  module FirstGemBetterCarl
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -4,4 +4,12 @@ class String
4
4
  def word_count
5
5
  self.split.count
6
6
  end
7
+
8
+ def unique_words
9
+ self.split.uniq
10
+ end
11
+
12
+ def unique_words_count
13
+ self.split.uniq.count
14
+ end
7
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: first_gem_better_carl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Stone
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: This gem finds the word count of strings.
41
+ description: ''
42
42
  email:
43
43
  - mikestone14@gmail.com
44
44
  executables: []
@@ -76,6 +76,6 @@ rubyforge_project:
76
76
  rubygems_version: 2.2.0
77
77
  signing_key:
78
78
  specification_version: 4
79
- summary: Nice new gem for finding the word count of strings.
79
+ summary: This gem adds methods to the String class.
80
80
  test_files: []
81
81
  has_rdoc: