Sha256: 447b412df17b1aede426ccb37053d405bdf56ca58bcf88c494302c895a3857ed

Contents?: true

Size: 333 Bytes

Versions: 40

Compression:

Stored size: 333 Bytes

Contents

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

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

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

Version data entries

40 entries across 40 versions & 9 rubygems

Version Path
artofmission-rails-footnotes-3.6.0.1 lib/rails-footnotes/notes/javascripts_note.rb
artofmission-rails-footnotes-3.6.2 lib/rails-footnotes/notes/javascripts_note.rb
ceritium-rails-footnotes-3.4.1.1 lib/rails-footnotes/notes/javascripts_note.rb
ceritium-rails-footnotes-3.4.1 lib/rails-footnotes/notes/javascripts_note.rb
ceritium-rails-footnotes-3.4 lib/rails-footnotes/notes/javascripts_note.rb
josevalim-rails-footnotes-3.3.1 lib/notes/javascripts_note.rb
josevalim-rails-footnotes-3.3.2 lib/notes/javascripts_note.rb
josevalim-rails-footnotes-3.4.1 lib/rails-footnotes/notes/javascripts_note.rb
josevalim-rails-footnotes-3.4 lib/rails-footnotes/notes/javascripts_note.rb
josevalim-rails-footnotes-3.5.0 lib/rails-footnotes/notes/javascripts_note.rb
josevalim-rails-footnotes-3.6.0 lib/rails-footnotes/notes/javascripts_note.rb
josevalim-rails-footnotes-3.6.1 lib/rails-footnotes/notes/javascripts_note.rb
josevalim-rails-footnotes-3.6.2 lib/rails-footnotes/notes/javascripts_note.rb
lexrupy-rails-footnotes-3.3.2 lib/rails-footnotes/notes/javascripts_note.rb
lexrupy-rails-footnotes-3.4.1 lib/rails-footnotes/notes/javascripts_note.rb
lexrupy-rails-footnotes-3.4 lib/rails-footnotes/notes/javascripts_note.rb
omghax-rails-footnotes-3.6.1 lib/rails-footnotes/notes/javascripts_note.rb
omghax-rails-footnotes-3.6.2 lib/rails-footnotes/notes/javascripts_note.rb
rails-footnotes-3.7.2 lib/rails-footnotes/notes/javascripts_note.rb
rails-footnotes-3.7.1 lib/rails-footnotes/notes/javascripts_note.rb