Sha256: 21fd0ac74845d9d7e546f7f23192af01c8c8bdebcf6bd06a263cf68a3797b1e2

Contents?: true

Size: 501 Bytes

Versions: 12

Compression:

Stored size: 501 Bytes

Contents

module Gluttonberg
  module Content
    require 'despamilator/filter'

    module DespamilatorFilter

      class TrailingNumber < Despamilator::Filter

        def name
          'Trailing Number'
        end

        def description
          'Detects a trailing cache busting number'
        end

        def parse subject
          subject.register_match!({:score => 0.1, :filter => self}) if subject.text.without_uris =~ /\b\d+\s*$/
        end

      end

    end
  end #Content
end #Gluttonberg

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-3.0.1 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-3.0.0 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.6.4 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.6.3 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.6.2 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.6.1 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.6.0 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.5.9 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.5.8 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.5.7 lib/gluttonberg/content/despamilator/filter/trailing_number.rb
gluttonberg-core-2.5.6 lib/gluttonberg/content/despamilator/filter/trailing_number.rb