josevalim-rails-footnotes 3.3.1 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +4 -4
- data/lib/{backtracer.rb → backtracer/backtracer.rb} +0 -0
- data/lib/{footnotes.rb → footnotes/footnotes.rb} +0 -0
- data/lib/rails-footnotes.rb +20 -0
- metadata +5 -6
- data/init.rb +0 -14
- data/lib/loader.rb +0 -14
data/README
CHANGED
|
@@ -2,7 +2,7 @@ Copyright (c) 2008 José Valim (jose.valim at gmail dot com)
|
|
|
2
2
|
Site: http://www.pagestacker.com/
|
|
3
3
|
Blog: http://josevalim.blogspot.com/
|
|
4
4
|
License: MIT
|
|
5
|
-
Version: 3.3.
|
|
5
|
+
Version: 3.3.2
|
|
6
6
|
|
|
7
7
|
You can also read this README in pretty html at the GitHub project Wiki page
|
|
8
8
|
|
|
@@ -56,7 +56,7 @@ in an initializer do:
|
|
|
56
56
|
Where you are going to choose a prefix compatible with your text editor. The %s is
|
|
57
57
|
replaced by the name of the file, the first %d is replaced by the line number and
|
|
58
58
|
the second %d is replaced by the column. You can also enable this behaviour in other
|
|
59
|
-
following the steps in the link below:
|
|
59
|
+
editors following the steps in the link below:
|
|
60
60
|
|
|
61
61
|
http://josevalim.blogspot.com/2008/06/textmate-protocol-behavior-on-any.html
|
|
62
62
|
|
|
@@ -138,8 +138,8 @@ Then put in your environment:
|
|
|
138
138
|
Footnotes::Filter.notes += [:current_user]
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
Version 2.0
|
|
142
|
+
-----------
|
|
143
143
|
|
|
144
144
|
Until version 2.0, this plugin was created and maintained by:
|
|
145
145
|
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
if RAILS_ENV == 'development'
|
|
2
|
+
dir = File.dirname(__FILE__)
|
|
3
|
+
require File.join(dir, 'footnotes', 'footnotes')
|
|
4
|
+
require File.join(dir, 'backtracer', 'backtracer')
|
|
5
|
+
|
|
6
|
+
# Load all notes
|
|
7
|
+
#
|
|
8
|
+
Dir[File.join(dir, 'notes', '*.rb')].each do |note|
|
|
9
|
+
require note
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# The footnotes are applied by default to all actions. You can change this
|
|
13
|
+
# behavior commenting the after_filter line below and putting it in Your
|
|
14
|
+
# application. Then you can cherrypick in which actions it will appear.
|
|
15
|
+
#
|
|
16
|
+
class ActionController::Base
|
|
17
|
+
prepend_before_filter Footnotes::Filter
|
|
18
|
+
after_filter Footnotes::Filter
|
|
19
|
+
end
|
|
20
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: josevalim-rails-footnotes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.3.
|
|
4
|
+
version: 3.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Jos\xC3\xA9 Valim"
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-01-
|
|
12
|
+
date: 2009-01-04 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -25,10 +25,9 @@ files:
|
|
|
25
25
|
- MIT-LICENSE
|
|
26
26
|
- README
|
|
27
27
|
- Rakefile
|
|
28
|
-
-
|
|
29
|
-
- lib/backtracer.rb
|
|
30
|
-
- lib/footnotes.rb
|
|
31
|
-
- lib/loader.rb
|
|
28
|
+
- lib/rails-footnotes.rb
|
|
29
|
+
- lib/backtracer/backtracer.rb
|
|
30
|
+
- lib/footnotes/footnotes.rb
|
|
32
31
|
- lib/notes/abstract_note.rb
|
|
33
32
|
- lib/notes/components_note.rb
|
|
34
33
|
- lib/notes/controller_note.rb
|
data/init.rb
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Footnotes is divided in three main files:
|
|
2
|
-
#
|
|
3
|
-
# * loader.rb: Initialize the plugin and apply the footnotes as an after_filter;
|
|
4
|
-
#
|
|
5
|
-
# * footnotes.rb: Is the core and adds the debug options at the bottom of each page;
|
|
6
|
-
#
|
|
7
|
-
# * backtracer.rb: Append links to your favorite editor in backtraces.
|
|
8
|
-
#
|
|
9
|
-
if RAILS_ENV == 'development'
|
|
10
|
-
dir = File.dirname(__FILE__)
|
|
11
|
-
require File.join(dir,'lib','footnotes')
|
|
12
|
-
require File.join(dir,'lib','loader')
|
|
13
|
-
require File.join(dir,'lib','backtracer')
|
|
14
|
-
end
|
data/lib/loader.rb
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Load all notes
|
|
2
|
-
#
|
|
3
|
-
Dir[File.join(File.dirname(__FILE__),'notes','*.rb')].each do |note|
|
|
4
|
-
require note
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
# The footnotes are applied by default to all actions. You can change this
|
|
8
|
-
# behavior commenting the after_filter line below and putting it in Your
|
|
9
|
-
# application. Then you can cherrypick in which actions it will appear.
|
|
10
|
-
#
|
|
11
|
-
class ActionController::Base
|
|
12
|
-
prepend_before_filter Footnotes::Filter
|
|
13
|
-
after_filter Footnotes::Filter
|
|
14
|
-
end
|