rails3-footnotes 4.0.0.pre → 4.0.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ == Footnotes v4.0.0.pre.1
2
+ * escapes TextMate links correctly (thanks reedlaw)
3
+
4
+ == Footnotes v4.0.0.pre
5
+ * works with Rails 3 (mostly thanks to mperham)
6
+
1
7
  == Footnotes v3.6.7
2
8
  * fixed log_note error - long overdue (thanks to many including Moritz Heidkamp)
3
9
  * 1.9: ignore more assigns (thanks to justin case)
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # Rails Footnotes
2
- #### Version 4.0.0.pre (The Rails 3 Edition™)
1
+ # Rails 3 Footnotes
2
+ #### Version 4.0.0.pre
3
3
  #### MIT License
4
4
 
5
5
  ## Rails 3
@@ -1,5 +1,5 @@
1
1
  module Footnotes
2
-
2
+
3
3
  # The footnotes are applied by default to all actions. You can change this
4
4
  # behavior commenting the after_filter line below and putting it in Your
5
5
  # application. Then you can cherrypick in which actions it will appear.
@@ -10,13 +10,13 @@ module Footnotes
10
10
  base.after_filter Footnotes::AfterFilter
11
11
  end
12
12
  end
13
-
13
+
14
14
  def self.run!
15
15
  require 'rails-footnotes/footnotes'
16
16
  require 'rails-footnotes/backtracer'
17
-
17
+
18
18
  Dir[File.join(File.dirname(__FILE__), 'rails-footnotes', 'notes', '*.rb')].each { |note| require note }
19
-
20
- ActionController::Base.send(:include, RailsFootnotesExtension)
19
+
20
+ ActionController::Base.send(:include, RailsFootnotesExtension)
21
21
  end
22
22
  end
@@ -22,7 +22,7 @@ module Footnotes
22
22
  @@klasses = []
23
23
 
24
24
  # Default link prefix is textmate
25
- @@prefix = 'txmt://open?url=file://%s&line=%d&column=%d'
25
+ @@prefix = 'txmt://open?url=file://%s&line=%d&column=%d'.html_safe
26
26
 
27
27
  # Edit notes
28
28
  @@notes = [ :controller, :view, :layout, :partials, :stylesheets, :javascripts ]
@@ -219,14 +219,14 @@ module Footnotes
219
219
  function hideAll(){
220
220
  #{close unless @@multiple_notes}
221
221
  }
222
-
222
+
223
223
  function hideAllAndToggle(id) {
224
224
  hideAll();
225
225
  toggle(id)
226
226
 
227
227
  location.href = '#footnotes_debug';
228
- }
229
-
228
+ }
229
+
230
230
  function toggle(id){
231
231
  var el = document.getElementById(id);
232
232
  if (el.style.display == 'none') {
@@ -235,11 +235,11 @@ module Footnotes
235
235
  Footnotes.hide(el);
236
236
  }
237
237
  }
238
-
238
+
239
239
  function show(element) {
240
240
  element.style.display = 'block'
241
241
  }
242
-
242
+
243
243
  function hide(element) {
244
244
  element.style.display = 'none'
245
245
  }
@@ -356,7 +356,7 @@ module Footnotes
356
356
  end
357
357
 
358
358
  # Instance each_with_rescue method
359
- #
359
+ #
360
360
  def each_with_rescue(*args, &block)
361
361
  self.class.each_with_rescue(*args, &block)
362
362
  end
@@ -0,0 +1,3 @@
1
+ module Footnotes
2
+ VERSION = "4.0.0.pre.1"
3
+ end
@@ -0,0 +1 @@
1
+ require 'rails-footnotes'
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails3-footnotes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961915908
4
+ hash: 1923831851
5
5
  prerelease: true
6
6
  segments:
7
7
  - 4
8
8
  - 0
9
9
  - 0
10
10
  - pre
11
- version: 4.0.0.pre
11
+ - 1
12
+ version: 4.0.0.pre.1
12
13
  platform: ruby
13
14
  authors:
14
15
  - "Andr\xC3\xA9 Arko"
@@ -18,8 +19,22 @@ cert_chain: []
18
19
 
19
20
  date: 2011-02-14 00:00:00 -08:00
20
21
  default_executable:
21
- dependencies: []
22
-
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: rails
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ~>
30
+ - !ruby/object:Gem::Version
31
+ hash: 7
32
+ segments:
33
+ - 3
34
+ - 0
35
+ version: "3.0"
36
+ type: :runtime
37
+ version_requirements: *id001
23
38
  description: Adds footnotes to each page in your Rails app, containing useful development information as well as links to edit the controllers and views in your editor.
24
39
  email: andre@arko.net
25
40
  executables: []
@@ -54,7 +69,9 @@ files:
54
69
  - lib/rails-footnotes/notes/session_note.rb
55
70
  - lib/rails-footnotes/notes/stylesheets_note.rb
56
71
  - lib/rails-footnotes/notes/view_note.rb
72
+ - lib/rails-footnotes/version.rb
57
73
  - lib/rails-footnotes.rb
74
+ - lib/rails3-footnotes.rb
58
75
  - test/footnotes_test.rb
59
76
  - test/notes/abstract_note_test.rb
60
77
  - test/test_helper.rb
@@ -79,14 +96,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
96
  required_rubygems_version: !ruby/object:Gem::Requirement
80
97
  none: false
81
98
  requirements:
82
- - - ">"
99
+ - - ">="
83
100
  - !ruby/object:Gem::Version
84
- hash: 25
101
+ hash: 23
85
102
  segments:
86
103
  - 1
87
104
  - 3
88
- - 1
89
- version: 1.3.1
105
+ - 6
106
+ version: 1.3.6
90
107
  requirements: []
91
108
 
92
109
  rubyforge_project: rails-footnotes