lib/awesome_bot/result.rb in awesome_bot-1.4.0 vs lib/awesome_bot/result.rb in awesome_bot-1.5.0

- old
+ new

@@ -7,18 +7,19 @@ attr_accessor :dupes attr_accessor :skip_dupe attr_accessor :status attr_accessor :white_listed - attr_reader :rejected + attr_reader :links_white_listed attr_reader :links def initialize(links, white_list_from_cli) @links = links @w = white_list_from_cli return if @w.nil? - @rejected, @links = links.partition { |u| AwesomeBot.white_list @w, u } + @links_white_listed, + @links = links.partition { |u| AwesomeBot.white_list @w, u } end def statuses_issues(allow_redirects = false, allow_timeouts = false) s = status.select { |x| x['status'] != 200 } r = s.reject { |x| (x['status'] > 299) && (x['status'] < 400) }