first_gem_becky_bell 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ee5333ebd55046eb26c8271a95fa9a6f528c59a
4
- data.tar.gz: 9ddb1f37ae51527e5d62172ddba95badfe5d92fb
3
+ metadata.gz: 525702dc5b6f5d420181bb83a4466e886388ef3d
4
+ data.tar.gz: 460169bdb1d4c43c09968ee153d31551c46d2793
5
5
  SHA512:
6
- metadata.gz: 63ebd8546b99093b2f4038c13829abf84e2e836a75ea97a11fdd88d799c02532185fbe684952c80049e7a61f292a478c5953fa3bd014f2f875604e7493e888d7
7
- data.tar.gz: c501c25e657131fa526a8e4033985c3ac46c911b907eeb5435db75d05aeba0c5d834b0e2ee0c2944b12e0a248e8b8ac20a9a6b07ee57742af0fd6fc697fd4df8
6
+ metadata.gz: 019e0e21f0461fe1ea188f914fa04cdf8e14ce421546c5290fc66ca445f8ddbf7b4ef67daff1525a378eea4fae2c6a492cd7616904aeeb3c24d57903beb789b1
7
+ data.tar.gz: b843e7de442fcc363591dcc87656a71e80a03b828428431cfc83ce6b1d1d9d5326ed1cc855444c7e156b32b7f2aa4fef0a7c943da0db8b0627e337c5ce15ec68
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = FirstGemBeckyBell::VERSION
9
9
  spec.authors = ["Becky Bell"]
10
10
  spec.email = ["rlbell@alum.bu.edu"]
11
- spec.summary = %q{String gem}
11
+ spec.summary = %q{A gem that counts the characters in a string}
12
12
  spec.description = %q{Write a longer description. Optional.}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
@@ -1,5 +1,15 @@
1
1
  require "first_gem_becky_bell/version"
2
2
 
3
- module FirstGemBeckyBell
4
- # Your code goes here...
3
+ class String
4
+ def word_count
5
+ self.split.count
6
+ end
7
+
8
+ def unique_words
9
+ self.split.uniq
10
+ end
5
11
  end
12
+
13
+ # module FirstGemBeckyBell
14
+ # # Your code goes here...
15
+ # end
@@ -1,3 +1,3 @@
1
1
  module FirstGemBeckyBell
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: first_gem_becky_bell
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
  - Becky Bell
@@ -76,6 +76,5 @@ rubyforge_project:
76
76
  rubygems_version: 2.2.0
77
77
  signing_key:
78
78
  specification_version: 4
79
- summary: String gem
79
+ summary: A gem that counts the characters in a string
80
80
  test_files: []
81
- has_rdoc: