summaryrefslogtreecommitdiff
path: root/lib/rbot/core/utils/utils.rb
AgeCommit message (Expand)Author
2013-11-02ruby 1.9+: specify file encodingsGiuseppe Bilotta
2013-04-25utils: fixed secs_to_string output for one-element arraysJay Thomas
2012-05-14utils: support hex HTML entitiesGiuseppe Bilotta
2011-12-08Improve first par detection without hpricotGiuseppe Bilotta
2011-04-02utils: support new HTMLEntities interfaceGiuseppe Bilotta
2011-03-16Add – to known HTML charactersGiuseppe Bilotta
2011-01-26html entities: add degGiuseppe Bilotta
2010-10-14safe_exec fixesGiuseppe Bilotta
2009-08-30Revert "utils: try nokogiri/hpricot if hpricot is not available"Giuseppe Bilotta
2009-08-30utils: try nokogiri/hpricot if hpricot is not availableGiuseppe Bilotta
2009-04-11utils: Utils.try_execGiuseppe Bilotta
2009-04-11utils: fix safe_exec failuresGiuseppe Bilotta
2009-03-06load rubygems if availableGiuseppe Bilotta
2009-03-03utils: add a helper method for creating comma separated listsRaine Virta
2009-02-19remove whitespaceRaine Virta
2009-02-15+ @bot.path and datafile methodsGiuseppe Bilotta
2009-02-11utils: htmlinfo filtering doc cleanupsGiuseppe Bilotta
2008-12-16utils.rb: Utils.age_string to replace distance_of_time_in_wordsGiuseppe Bilotta
2008-12-16utils.rb: fix Utils.timeago for explicit date outputGiuseppe Bilotta
2008-12-16utils.rb: fix Utils.distance_of_time_in_words for negative offsetsGiuseppe Bilotta
2008-07-03utils.rb: added timeago and distance_of_time_in_words functionsCasey Link
2008-04-22Licensing uniformity: dual-license rbot core under MIT+acknowledgement and GPLv2Giuseppe Bilotta
2008-04-14utils: URI fragment is sometimes found in id attribute to A tagGiuseppe Bilotta
2008-04-14utils: don't hang when getting first par with nonexistant uri-fragmentGiuseppe Bilotta
2008-03-24utils: Utils.secs_to_short convert seconds into hour:minute:seconds format etcGiuseppe Bilotta
2008-03-19utils: Utils.check_location returns an array of locations if check succeedsGiuseppe Bilotta
2008-03-17utils: Utils.check_location comfort method for :htmlinfo filtersGiuseppe Bilotta
2008-03-17filters: HTML info extraction is now a filterGiuseppe Bilotta
2008-01-30utils: fix decode_html_entities for numerical entities without HTMLEntitiesGiuseppe Bilotta
2007-10-11first_html_par: detect fragment at the right placeGiuseppe Bilotta
2007-10-01* (utils) should use partial_body() for non-text responses as wellDmitry Kim
2007-09-21Utils.decode_html_entities: get rid of commented table and implement latin-1 ...Giuseppe Bilotta
2007-09-21Utils: we are an UTF-8 aware bot now, no need to ASCIIfy HTML entitiesGiuseppe Bilotta
2007-09-21Utils.decode_html_entities: fix decoding of unknown symbolsGiuseppe Bilotta
2007-09-18first_html_par: after-paragraph matches should prefer divs and spans to other...Giuseppe Bilotta
2007-09-18first_html_par: make Hpricot handling more robustGiuseppe Bilotta
2007-09-18first_html_par: constify the 'after par' searches with HpricotGiuseppe Bilotta
2007-09-18utils: require 'hpricot' the second time, not 'htmlentities' againGiuseppe Bilotta
2007-09-18first_html_par: it's doc.root.search, not doc.root.eachGiuseppe Bilotta
2007-09-18first_html_par: build lists 'manually' when using HpricotGiuseppe Bilotta
2007-09-18HTML processing refactoring: remove obsolete commentGiuseppe Bilotta
2007-09-18Hpricot first par: it's el[:class], not el.classGiuseppe Bilotta
2007-09-18HTML processing refactoring: fix options passed by Utils.get_string_html_info...Giuseppe Bilotta
2007-09-18HTML processing refactoring: Utils.get_first_pars now uses Utils.get_html_infoGiuseppe Bilotta
2007-09-18HTML processing refactoring: Utils.get_html_info and related methods factored...Giuseppe Bilotta
2007-09-18HTML processing refactoring: HTML title extraction is now a String methodGiuseppe Bilotta
2007-09-13more rdoc-ificationGiuseppe Bilotta
2007-09-12namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*Giuseppe Bilotta
2007-09-11first_html_par: only initialize element collections onceGiuseppe Bilotta
2007-09-11first_html_par: use hpricot if availableGiuseppe Bilotta