first_gem_laure_fischer 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/first_gem_laure_fischer.gemspec +1 -0
- data/lib/first_gem_laure_fischer/version.rb +1 -1
- data/spec/first_gem_laure_fischer_spec.rb +22 -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: 776bfda889be281c383c9b0fa5c43c90fe0430e2
|
4
|
+
data.tar.gz: 8da1250213ba972fac017ff941ab6055bc9a6ba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10cd364f8214893526a434d99b97652f7de0cc3b953e0da98cd60786f78cbe530bf43e99e82a0792f4c820f29b762f721d0c6fc886ea89323e706a78ef882f23
|
7
|
+
data.tar.gz: 3f5f1dc75ebc0ef99dd486e14fc30619c4a56056acbf516ee6a33959dd4c53927cb5d090328f28475227d62492333da585e10a0fa7c81a275d755dbdbb1ee410
|
data/.rspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe String, '#word_count' do
|
4
|
+
it "should have method called word_count" do
|
5
|
+
should respond_to :word_count
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should return 1 when string is one word long" do
|
9
|
+
a_string = "apple"
|
10
|
+
the_word_count = a_string.word_count
|
11
|
+
expect(the_word_count).to eq 1
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe String, '#unique_words' do
|
16
|
+
it "should return unique words in a string" do
|
17
|
+
a_string = "today is today"
|
18
|
+
unique = a_string.unique_words
|
19
|
+
expect(unique).to eq ['today', 'is']
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
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_laure_fischer'
|
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_laure_fischer
|
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
|
- Laure Fischer
|
@@ -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.0.beta
|
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.0.beta
|
41
55
|
description: A longer description about this this gem.
|
42
56
|
email:
|
43
57
|
- laurefischer27@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_laure_fischer.gemspec
|
54
69
|
- lib/first_gem_laure_fischer.rb
|
55
70
|
- lib/first_gem_laure_fischer/version.rb
|
71
|
+
- spec/first_gem_laure_fischer_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 gem.
|
80
|
-
test_files:
|
97
|
+
test_files:
|
98
|
+
- spec/first_gem_laure_fischer_spec.rb
|
99
|
+
- spec/spec_helper.rb
|
81
100
|
has_rdoc:
|