Sha256: 1a6b64ba4bc2b2dab8ab841ea628f683f962291c94666aadaae26e873a1d1255

Contents?: true

Size: 333 Bytes

Versions: 40

Compression:

Stored size: 333 Bytes

Contents

require "#{File.dirname(__FILE__)}/files_note"

module Footnotes
  module Notes
    class StylesheetsNote < FilesNote
      def title
        "Stylesheets (#{@files.length})"
      end

      protected
        def scan_text(text)
          text.scan(/<link[^>]+href\s*=\s*['"]([^>?'"]+\.css)/im).flatten
        end
    end
  end
end

Version data entries

40 entries across 40 versions & 9 rubygems

Version Path
rails-footnotes-3.7.1.pre lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.10 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.9 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.8 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.7 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.6 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.5 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.4 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.3 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-3.7.0 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.2 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre.1 lib/rails-footnotes/notes/stylesheets_note.rb
rails3-footnotes-4.0.0.pre lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-3.6.7 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-3.6.6 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-3.6.5 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-3.6.4 lib/rails-footnotes/notes/stylesheets_note.rb
scharfie-rails-footnotes-3.5.0 lib/rails-footnotes/notes/stylesheets_note.rb
scharfie-rails-footnotes-3.4.2 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-linux-3.6.2 lib/rails-footnotes/notes/stylesheets_note.rb