whoopsie
This commit is contained in:
parent
137e0eb0a8
commit
fa8ee9d02e
1 changed files with 3 additions and 2 deletions
|
@ -3,8 +3,9 @@ require 'nokogiri'
|
||||||
|
|
||||||
Client.register_command("bug") { |args|
|
Client.register_command("bug") { |args|
|
||||||
if args[0] =~ /^[0-9]+$/ then
|
if args[0] =~ /^[0-9]+$/ then
|
||||||
doc = Nokogiri::HTML(Net::HTTP.get(URI(Config.lookup("commands::bug::url") + args:0)))
|
doc = Nokogiri::HTML(Net::HTTP.get(URI(Config.lookup("commands::bug::url") + args[0])))
|
||||||
:Config.lookup("commands::bug::url") + args:0, doc.title().delete!('\n'),
|
[
|
||||||
|
Config.lookup("commands::bug::url") + args[0], doc.title().delete!('\n'),
|
||||||
doc.xpath('//span[@id="static_bug_status"]').inner_text.split,
|
doc.xpath('//span[@id="static_bug_status"]').inner_text.split,
|
||||||
doc.xpath('//td[@id="field_container_product"]').inner_text,
|
doc.xpath('//td[@id="field_container_product"]').inner_text,
|
||||||
].join('; ')
|
].join('; ')
|
||||||
|
|
Loading…
Reference in a new issue