rails-footnotes 3.7.5.rc2 → 3.7.5.rc3

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.rdoc CHANGED
@@ -19,6 +19,10 @@ Install Rails Footnotes is very easy.
19
19
 
20
20
  gem 'rails-footnotes', '>= 3.7', :group => :development
21
21
 
22
+ After you install RailsFootnotes and add it to your Gemfile, you need to run the generator:
23
+
24
+ rails generate rails_footnotese:install
25
+
22
26
  === Rails 2.x
23
27
 
24
28
  In RAILS_ROOT/config/environments/development.rb (yes, you want it only in development):
@@ -0,0 +1,17 @@
1
+ module RailsFootnotes
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../../templates", __FILE__)
5
+
6
+ desc "Creates and copy RailsFootnotes default files to your application."
7
+
8
+ def copy_initializer
9
+ template "rails_footnotes.rb", "config/initializers/rails_footnotes.rb"
10
+ end
11
+
12
+ def copy_dotfile
13
+ template ".rails_footnotes", ".rails_footnotes"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ if defined?(Footnotes) && Rails.env.development?
2
+ Footnotes.run! # first of all
3
+
4
+ # ... other init code
5
+ end
@@ -32,6 +32,8 @@ module Footnotes
32
32
 
33
33
  ActionController::Base.send(:include, RailsFootnotesExtension)
34
34
 
35
+ load Rails.root.join('.rails_footnotes') if Rails.root.join('.rails_footnotes').exist?
36
+ #TODO DEPRECATED
35
37
  load Rails.root.join('.footnotes') if Rails.root.join('.footnotes').exist?
36
38
  end
37
39
 
@@ -1,3 +1,3 @@
1
1
  module Footnotes
2
- VERSION = "3.7.5.rc2"
2
+ VERSION = "3.7.5.rc3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-footnotes
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.5.rc2
4
+ version: 3.7.5.rc3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-07 00:00:00.000000000Z
12
+ date: 2011-09-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2153385440 !ruby/object:Gem::Requirement
16
+ requirement: &2153125580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153385440
24
+ version_requirements: *2153125580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &2153384940 !ruby/object:Gem::Requirement
27
+ requirement: &2153125080 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2153384940
35
+ version_requirements: *2153125080
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &2153384560 !ruby/object:Gem::Requirement
38
+ requirement: &2153124700 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2153384560
46
+ version_requirements: *2153124700
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: watchr
49
- requirement: &2153384100 !ruby/object:Gem::Requirement
49
+ requirement: &2153124240 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2153384100
57
+ version_requirements: *2153124240
58
58
  description: Every Rails page has footnotes that gives information about your application
59
59
  and links back to your editor.
60
60
  email:
@@ -72,6 +72,8 @@ files:
72
72
  - MIT-LICENSE
73
73
  - README.rdoc
74
74
  - Rakefile
75
+ - lib/generators/rails_footnotes/install_generator.rb
76
+ - lib/generators/templates/rails_footnotes.rb
75
77
  - lib/rails-footnotes.rb
76
78
  - lib/rails-footnotes/abstract_note.rb
77
79
  - lib/rails-footnotes/backtracer.rb