summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorotherl <lgdmiller@gmail.com>2013-11-24 16:17:50 +0000
committerotherl <lgdmiller@gmail.com>2014-08-17 19:58:01 +0100
commit610eee148281ac5b86dd76ce09841d72379ea4b7 (patch)
tree20249ca41b7cf2534cfa8cf4feaed62b230350cc
parent468c60360dc50b400119d12a30a368a2e9d19f7c (diff)
Fixed a typo
-rw-r--r--blatube.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/blatube.rb b/blatube.rb
index 14fd7b3..12de2c0 100644
--- a/blatube.rb
+++ b/blatube.rb
@@ -192,7 +192,7 @@ def get_line_status
if @line == 'SUMMARY'
line_summary = ''
sorted_lines.each {|xml| line_summary << "#{xml.xpath('.//line/@name').text}: #{xml.xpath('./@statusdetails').text} " unless xml.xpath('./@statusdetails').text == ''}
- @output << (line_summary == '' ? 'Good Serice on all lines.' : "#{line_summary}Good Service on all other lines.")
+ @output << (line_summary == '' ? 'Good Service on all lines.' : "#{line_summary}Good Service on all other lines.")
else
l_s_xml = sorted_lines.find {|xml| xml.xpath('.//line/@name').text.upcase.match line}
@output << ("#{l_s_xml.xpath('.//line/@name').text}: #{l_s_xml.xpath('.//status/@description').text}. #{l_s_xml.xpath('./@statusdetails').text}")