rails6-footnotes 5.0.1 → 5.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84dc266763c0ef834cd2e913980241676326781ed543cb8efa5644312ab2ba8f
4
- data.tar.gz: bbe86fee1692848886f730bc42a99278b70bfdbad774195d9cc50230f6ec5e1f
3
+ metadata.gz: 603a02bd2fe09a3477ceeaef7c37e9cfdf6243781924b246c44de11460c3f8c0
4
+ data.tar.gz: 2569c59867361706353e9e3bb2b4fe68e8a317c26cdd783518f6fdaa849b91db
5
5
  SHA512:
6
- metadata.gz: 1b06be6f901eeb08d8e398ccb4b832617607e96d53d73d443ba44569d4a635e7d8131361066c248260536cddef30ce0efb508c29acdeb42e321f3d3fed800a88
7
- data.tar.gz: d8b9da49f664c71f5983dd56565e4c678ab4b5fc674783fe7b997f3c5d67107484ba8ba5976ecdceeb39c7e5fe4276c9142a5eb40d5f40e8f7e6b089df32e505
6
+ metadata.gz: 191418da6a761691a6ca0c3102788f9b8b88346d54d9420957a1873bb5ad42ba9025542a0bc525439235d5a973821fbe07c4ff36e9debf0d28e8aeff16853f20
7
+ data.tar.gz: 84ca7a1fba7cddafd553448b1f11c6a84b52893b06cb0fffd01566b5aaf88e1e6d7e95988bd96a2d0768c77369345ae801a49489a99b78459acf6e9386bede5b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails6-footnotes (5.0.1)
4
+ rails6-footnotes (5.0.2)
5
5
  rails (~> 6.0)
6
6
 
7
7
  GEM
data/README.rdoc CHANGED
@@ -1,6 +1,4 @@
1
- = Rails Footnotes
2
-
3
- {<img src="https://travis-ci.org/Intrepidd/rails-footnotes.svg?branch=master" />}[https://travis-ci.org/Intrepidd/rails-footnotes]
1
+ = Rails 6 Footnotes
4
2
 
5
3
  Rails footnotes displays footnotes in your application for easy debugging, such as sessions,
6
4
  request parameters, cookies, filter chain, routes, queries, etc.
@@ -10,17 +8,11 @@ your backtrace lines.
10
8
 
11
9
  == Installation
12
10
 
13
- NOTE: Since this branch aims for Rails 3.2+ support, if you want to use footnotes with Rails 2.3 you should use this branch:
14
-
15
- https://github.com/josevalim/rails-footnotes/tree/rails2
16
-
17
- Installing Rails Footnotes is very easy.
18
-
19
- === Rails 3.2.x/4.x
11
+ Add to your `Gemfile`:
20
12
 
21
- gem 'rails-footnotes', '~> 4.0'
13
+ gem "rails6-footnotes", "~> 5.0"
22
14
 
23
- After you install RailsFootnotes and add it to your Gemfile, you need to run the generator:
15
+ Run `bundle install`, then the generator:
24
16
 
25
17
  rails generate rails_footnotes:install
26
18
 
@@ -150,39 +142,7 @@ If you'd like the footnote, to be at a different place (perhaps for aesthetical
150
142
  <div id="footnotes_holder"></div>
151
143
  at an appropriate place, your notes will now appear inside div#footnotes_holder
152
144
 
153
- == Collaborators
154
-
155
- * Leon Li - http://github.com/scorpio
156
- * Keenan Brock - http://github.com/kbrock
157
- * Ivan Storck - http://github.com/ivanoats
158
- * Kris Chamber - http://github.com/kristopher
159
- * Roman V. Babenko - http://github.com/romanvbabenko
160
- * Adrien Siami - http://github.com/intrepidd
161
-
162
145
  == Bugs and Feedback
163
146
 
164
147
  If you discover any bugs, please open an issue.
165
148
  If you just want to give some positive feedback or drop a line, that's fine too!
166
-
167
- === Version 4.x
168
-
169
- Starting from version 4.0, Adren Siami is the maintainer of this plugin.
170
-
171
- === Version 3.x
172
-
173
- This plugin was maintained until version 4.0 by Roman V. Babenko
174
-
175
- Copyright (c) 2010-2014 Roman V. Babenko (romanvbabenko@gmail.com)
176
- http://romanvbabenko.com
177
-
178
- This plugin was maintained until version 3.6 by José Valim
179
-
180
- Copyright (c) 2009 José Valim (jose@plataformatec.com.br)
181
- http://blog.plataformatec.com.br
182
-
183
- === Version 2.0
184
-
185
- This plugin was created and maintained until version 2.0 by Duane Johnson:
186
-
187
- Copyright (c) 2006 InquiryLabs, Inc.
188
- http://blog.inquirylabs.com
@@ -33,7 +33,8 @@ module Footnotes
33
33
  protected
34
34
 
35
35
  def filename
36
- @filename ||= self.class.template[:file]
36
+ return @filename if defined?(@filename)
37
+ @filename = self.class.template.try(:[], :file)
37
38
  end
38
39
 
39
40
  end
@@ -1,3 +1,3 @@
1
1
  module Footnotes
2
- VERSION = "5.0.1"
2
+ VERSION = "5.0.2"
3
3
  end
@@ -2,11 +2,17 @@ require "spec_helper"
2
2
  require "rails-footnotes/notes/view_note"
3
3
 
4
4
  describe Footnotes::Notes::ViewNote do
5
-
6
5
  it "should not be valid if view file not exist" do
7
6
  note = Footnotes::Notes::ViewNote.new(double)
8
7
  allow(note).to receive(:filename).and_return(nil)
9
8
 
10
9
  expect(note).not_to be_valid
11
10
  end
11
+
12
+ it "should not explode if template is nil" do
13
+ Footnotes::Notes::ViewNote.template = nil
14
+
15
+ note = Footnotes::Notes::ViewNote.new(double)
16
+ expect(note).to_not be_valid
17
+ end
12
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails6-footnotes
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman V. Babenko