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 +4 -4
- data/first_gem_becky_bell.gemspec +1 -1
- data/lib/first_gem_becky_bell.rb +12 -2
- data/lib/first_gem_becky_bell/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 525702dc5b6f5d420181bb83a4466e886388ef3d
|
|
4
|
+
data.tar.gz: 460169bdb1d4c43c09968ee153d31551c46d2793
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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{
|
|
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"
|
data/lib/first_gem_becky_bell.rb
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
require "first_gem_becky_bell/version"
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
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
|
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.
|
|
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:
|
|
79
|
+
summary: A gem that counts the characters in a string
|
|
80
80
|
test_files: []
|
|
81
|
-
has_rdoc:
|