├── .rspec.example ├── lib ├── rails-footnotes │ ├── version.rb │ ├── notes │ │ ├── all.rb │ │ ├── javascripts_note.rb │ │ ├── stylesheets_note.rb │ │ ├── general_note.rb │ │ ├── params_note.rb │ │ ├── cookies_note.rb │ │ ├── layout_note.rb │ │ ├── session_note.rb │ │ ├── env_note.rb │ │ ├── view_note.rb │ │ ├── files_note.rb │ │ ├── log_note.rb │ │ ├── controller_note.rb │ │ ├── filters_note.rb │ │ ├── assigns_note.rb │ │ ├── partials_note.rb │ │ ├── routes_note.rb │ │ └── queries_note.rb │ ├── backtracer.rb │ ├── abstract_note.rb │ └── footnotes.rb └── rails-footnotes.rb ├── .gitignore ├── spec ├── notes │ ├── partials_notes_spec.rb │ ├── javascripts_note_spec.rb │ ├── stylesheets_note_spec.rb │ └── assigns_note_spec.rb ├── spec_helper.rb ├── abstract_note_spec.rb └── footnotes_spec.rb ├── Gemfile ├── .watchr.example ├── Rakefile ├── MIT-LICENSE ├── rails-footnotes.gemspec ├── Gemfile.lock ├── CHANGELOG └── README.rdoc /.rspec.example: -------------------------------------------------------------------------------- 1 | --color 2 | -------------------------------------------------------------------------------- /lib/rails-footnotes/version.rb: -------------------------------------------------------------------------------- 1 | module Footnotes 2 | VERSION = "3.7.5.rc1" 3 | end 4 | -------------------------------------------------------------------------------- /lib/rails-footnotes/notes/all.rb: -------------------------------------------------------------------------------- 1 | Dir[File.join(File.dirname(__FILE__), '*_note.rb')].each {|note| require note} 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .* 2 | !.gitignore 3 | !.gitmodules 4 | !*.example 5 | *.gem 6 | .bundle 7 | Gemfile.lock 8 | pkg/* 9 | coverage 10 | tags 11 | doc 12 | -------------------------------------------------------------------------------- /spec/notes/partials_notes_spec.rb: -------------------------------------------------------------------------------- 1 | require "spec_helper" 2 | require "rails-footnotes/notes/partials_note" 3 | 4 | describe Footnotes::Notes::PartialsNote do 5 | pending 6 | end 7 | -------------------------------------------------------------------------------- /spec/notes/javascripts_note_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | require "rails-footnotes/notes/javascripts_note" 3 | 4 | describe Footnotes::Notes::JavascriptsNote do 5 | pending 6 | end 7 | -------------------------------------------------------------------------------- /spec/notes/stylesheets_note_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | require "rails-footnotes/notes/stylesheets_note" 3 | 4 | describe Footnotes::Notes::StylesheetsNote do 5 | pending 6 | end 7 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "http://rubygems.org" 2 | 3 | # Specify your gem's dependencies in mcutter.gemspec 4 | gemspec 5 | 6 | # gem "rails", ">= 3.0.5" 7 | # 8 | if RUBY_PLATFORM =~ /darwin/ 9 | group :test do 10 | gem 'simplecov', '>= 0.4.0', :require => false 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /lib/rails-footnotes/notes/javascripts_note.rb: -------------------------------------------------------------------------------- 1 | require "rails-footnotes/notes/files_note" 2 | 3 | module Footnotes 4 | module Notes 5 | class JavascriptsNote < FilesNote 6 | def title 7 | "Javascripts (#{@files.length})" 8 | end 9 | 10 | protected 11 | def scan_text(text) 12 | text.scan(/ 251 | 252 | 253 | HTML 254 | 255 | placeholder = /