first_gem_janice_smith 0.0.2 → 0.0.3
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/.rspec +2 -0
- data/first_gem_janice_smith.gemspec +1 -0
- data/lib/first_gem_janice_smith/version.rb +1 -1
- data/spec/first_gem_janice_smith_spec.rb +44 -0
- data/spec/spec_helper.rb +12 -0
- metadata +21 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37df9f8e6048dc8e77a9177d76d173c2e3b42aeb
|
4
|
+
data.tar.gz: 824bf813c480550d8e9adbf996028ff4f872ae05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b9a152d352e989cfc1b5d92141516b1e1f24730af5c57a75ff3aefd9d415ec5e40c5ace509c1e4a232d86acb63f7a1d6f0a8230149443520231677295cd6f52
|
7
|
+
data.tar.gz: fdabbf0ddf628bfa0cb08985b1bc3f6a87f944a6a96c0987bb94d8fb143cfae1ad34ff1a290358723cc16f36d8464e7ecbeb1248213781cc33647f160df5fd66
|
data/.rspec
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe String, '#word_count' do
|
4
|
+
it "should have a method called word_count" do
|
5
|
+
should respond_to :word_count
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should have return 1" do
|
9
|
+
x = "omg"
|
10
|
+
count = x.word_count
|
11
|
+
expect(count).to eq 1
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should have return 1" do
|
15
|
+
x = "omg omg omg omg omg omg"
|
16
|
+
count = x.word_count
|
17
|
+
expect(count).to eq 6
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe String, '#unique_words' do
|
22
|
+
it "should have a method called unique_words" do
|
23
|
+
should respond_to :unique_words
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should have return 1" do
|
27
|
+
x = "omg omg omg"
|
28
|
+
words = x.unique_words
|
29
|
+
expect(words.length).to eq 1
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should have return 1" do
|
33
|
+
x = "omg omg omg UGH UGH"
|
34
|
+
words = x.unique_words
|
35
|
+
expect(words.length).to eq 2
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should have return 1" do
|
39
|
+
x = "omg omg omg UGH UGH"
|
40
|
+
words = x.unique_words
|
41
|
+
expect(words).to eq ["omg","UGH"]
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'first_gem_janice_smith'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: first_gem_janice_smith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janice Smith
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0beta
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0beta
|
41
55
|
description: optional here - about my first gem
|
42
56
|
email:
|
43
57
|
- janice.k.n.smith@gmail.com
|
@@ -46,6 +60,7 @@ extensions: []
|
|
46
60
|
extra_rdoc_files: []
|
47
61
|
files:
|
48
62
|
- ".gitignore"
|
63
|
+
- ".rspec"
|
49
64
|
- Gemfile
|
50
65
|
- LICENSE.txt
|
51
66
|
- README.md
|
@@ -53,6 +68,8 @@ files:
|
|
53
68
|
- first_gem_janice_smith.gemspec
|
54
69
|
- lib/first_gem_janice_smith.rb
|
55
70
|
- lib/first_gem_janice_smith/version.rb
|
71
|
+
- spec/first_gem_janice_smith_spec.rb
|
72
|
+
- spec/spec_helper.rb
|
56
73
|
homepage: ''
|
57
74
|
licenses:
|
58
75
|
- MIT
|
@@ -77,5 +94,7 @@ rubygems_version: 2.2.0
|
|
77
94
|
signing_key:
|
78
95
|
specification_version: 4
|
79
96
|
summary: my first test gem
|
80
|
-
test_files:
|
97
|
+
test_files:
|
98
|
+
- spec/first_gem_janice_smith_spec.rb
|
99
|
+
- spec/spec_helper.rb
|
81
100
|
has_rdoc:
|