Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
GEM
remote: http://rubygems.org/
specs:
coderay (1.1.0)
diff-lcs (1.2.5)
coderay (1.1.1)
diff-lcs (1.3)
method_source (0.8.2)
pry (0.10.1)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rspec (3.1.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
rspec-mocks (~> 3.1.0)
rspec-core (3.1.4)
rspec-support (~> 3.1.0)
rspec-expectations (3.1.2)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.1.0)
rspec-mocks (3.1.2)
rspec-support (~> 3.1.0)
rspec-support (3.1.1)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
slop (3.6.0)

PLATFORMS
ruby
x86-mingw32

DEPENDENCIES
pry
rspec

BUNDLED WITH
1.14.3
9 changes: 8 additions & 1 deletion parser.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
def word_in_string?(word, string)
# implement with your code here
string = string.gsub('_',' ')
string = string.gsub('-', ' ')
string = string.split.to_a
if string.include? word
:yes
else
:no
end
end