rails-footnotes 4.1.7 → 4.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e2343ef7d62b4ef197387788f0ff7dd42e86441
4
- data.tar.gz: 72282e6373b9b1519d1cd6ba2eedea85aaf39d60
3
+ metadata.gz: 21fa093ff6eaf5b53695cfaed61637fa8e4c8187
4
+ data.tar.gz: 79e79b4486adcd087d948cc6d2d9f4959b6ac2bd
5
5
  SHA512:
6
- metadata.gz: bb376b0a2f6ee0414db7c4923bd0d9d81813852241cccee6f5a0861c6f92d99f5f19b69eb2a25812694245c62048a4f75dadc46406963e4dc714bc7e1c4dbc60
7
- data.tar.gz: c202eef9eb88ba4327a00c046763e5572269b863ac528bb6a58644f2bda6f29ee99902cff4102daf1da9f3fecdc052e79fc0d36aa68807fda0a91b48820f8c42
6
+ metadata.gz: 0873a5dbe0233b3f87b43748bfe402227116892233b09fb964c2ab692c35dc0a09e6f02f348ba5696b5bb9922b08490afabb04805be9af994a72856420581826
7
+ data.tar.gz: 1b88bc094b480f831319fa08b8c56fe0ac43356b5ca31ad1d492eee4cbe1bdadd438b05fc46bb22a5232fa1447398dd2a7d64e776177238e24c8f59f2f23c2cc
@@ -1,10 +1,13 @@
1
- script: "bundle exec rake spec"
1
+ cache: bundler
2
+ sudo: false
3
+ script: "bundle exec rake"
2
4
  rvm:
3
5
  - 1.9.3
4
6
  - 2.0.0
5
- - 2.1.1
7
+ - 2.1.7
8
+ - 2.2.3
6
9
  gemfile:
7
- - gemfiles/Gemfile.rails-3.2.x
10
+ - gemfiles/Gemfile.rails-3.2.22
8
11
  - gemfiles/Gemfile.rails-4.0.x
9
12
  - gemfiles/Gemfile.rails-4.1.x
10
13
  - gemfiles/Gemfile.rails-4.2.x
@@ -12,3 +15,11 @@ gemfile:
12
15
  matrix:
13
16
  allow_failures:
14
17
  - gemfile: gemfiles/Gemfile.rails-edge
18
+ - gemfile: gemfiles/Gemfile.rails-3.2.22
19
+ exclude:
20
+ - rvm: 1.9.3
21
+ gemfile: gemfiles/Gemfile.rails-edge
22
+ - rvm: 2.0.0
23
+ gemfile: gemfiles/Gemfile.rails-edge
24
+ - rvm: 2.1.7
25
+ gemfile: gemfiles/Gemfile.rails-edge
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == Footnotes v4.1.8 ==
2
+ * Fix the issue of undefined method using Log4r and Rails 3.2
3
+ * Fix some rails 5 compatibility issues (#140) *
4
+ * Fix bad timing shown in SQL note (#145) *
1
5
  == Footnotes v4.1.7 ==
2
6
  * Fix notes not collapsing when clicking on them again (#130)*
3
7
  == Footnotes v4.1.6 ==
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
data/Rakefile CHANGED
@@ -5,12 +5,7 @@ require 'rdoc/task'
5
5
 
6
6
  desc 'Default: run tests'
7
7
  task :default => :spec
8
-
9
- desc 'Run tests for Footnotes.'
10
- RSpec::Core::RakeTask.new(:spec) do |t|
11
- t.pattern = 'spec/**/*_spec.rb'
12
- # t.rcov = false
13
- end
8
+ RSpec::Core::RakeTask.new(:spec)
14
9
 
15
10
  desc 'Generate documentation for Footnotes.'
16
11
  RDoc::Task.new(:rdoc) do |rdoc|
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec :path => '..'
4
4
 
5
- gem 'rails', '~> 3.2.0'
5
+ gem 'rails', '~> 3.2.22'
@@ -6,8 +6,13 @@ module Footnotes
6
6
  extend ActiveSupport::Concern
7
7
 
8
8
  included do
9
- prepend_before_filter :rails_footnotes_before_filter
10
- after_filter :rails_footnotes_after_filter
9
+ if Rails::VERSION::MAJOR >= 5
10
+ prepend_before_action :rails_footnotes_before_filter
11
+ after_action :rails_footnotes_after_filter
12
+ else
13
+ prepend_before_filter :rails_footnotes_before_filter
14
+ after_filter :rails_footnotes_after_filter
15
+ end
11
16
  end
12
17
 
13
18
  def rails_footnotes_before_filter
@@ -20,7 +20,7 @@ module Footnotes
20
20
  end
21
21
  # Rails 3 don't have ActiveSupport::Logger#broadcast so we backported it
22
22
  extend_module = defined?(ActiveSupport::Logger) ? ActiveSupport::Logger.broadcast(note_logger) : NoteLogger.broadcast(note_logger)
23
- Rails.logger = self.original_logger.dup.extend(extend_module)
23
+ Rails.logger = self.original_logger.clone.extend(extend_module)
24
24
  end
25
25
 
26
26
  def title
@@ -2,7 +2,11 @@ module Footnotes
2
2
  module Notes
3
3
  class ParamsNote < AbstractNote
4
4
  def initialize(controller)
5
- @params = controller.params.symbolize_keys
5
+ @params = if Rails::VERSION::MAJOR >= 5
6
+ controller.params.to_unsafe_h
7
+ else
8
+ controller.params
9
+ end
6
10
  end
7
11
 
8
12
  def title
@@ -47,7 +47,7 @@ module Footnotes
47
47
  <td>
48
48
  <span id="sql_#{index}">#{print_query(event.payload[:sql])}</span>
49
49
  </td>
50
- <td>#{print_name_and_time(event.payload[:name], event.duration / 1000.0)}</td>
50
+ <td>#{print_name_and_time(event.payload[:name], event.duration)}</td>
51
51
  </tr>
52
52
  HTML
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module Footnotes
2
- VERSION = "4.1.7"
2
+ VERSION = "4.1.8"
3
3
  end
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency "rails", ">= 3.2"
18
18
 
19
- s.add_development_dependency "rspec-rails", '~> 3.2.1'
20
- s.add_development_dependency "test-unit"
19
+ s.add_development_dependency "rspec-rails", '~> 3.3.2'
20
+ s.add_development_dependency "sprockets-rails", '~> 2.0'
21
21
  s.add_development_dependency "capybara"
22
22
 
23
23
  s.files = `git ls-files`.split("\n")
@@ -126,21 +126,3 @@ describe FootnotesController, type: :controller do
126
126
  end
127
127
 
128
128
  end
129
-
130
-
131
- HTML_DOCUMENT = <<EOF
132
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
133
- <html>
134
- <head>
135
- <title>HTML to XHTML Example: HTML page</title>
136
- <link rel="Stylesheet" href="htmltohxhtml.css" type="text/css" media="screen">
137
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
138
- </head>
139
- <body>
140
- <p>This is the HTML page. It works and is encoded just like any HTML page you
141
- have previously done. View <a href="htmltoxhtml2.htm">the XHTML version</a> of
142
- this page to view the difference between HTML and XHTML.</p>
143
- <p>You will be glad to know that no changes need to be made to any of your CSS files.</p>
144
- </body>
145
- </html>
146
- EOF
@@ -230,21 +230,4 @@ describe "Footnotes" do
230
230
  end
231
231
  end
232
232
 
233
- HTML_DOCUMENT = <<EOF
234
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
235
- <html>
236
- <head>
237
- <title>HTML to XHTML Example: HTML page</title>
238
- <link rel="Stylesheet" href="htmltohxhtml.css" type="text/css" media="screen">
239
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
240
- </head>
241
- <body>
242
- <p>This is the HTML page. It works and is encoded just like any HTML page you
243
- have previously done. View <a href="htmltoxhtml2.htm">the XHTML version</a> of
244
- this page to view the difference between HTML and XHTML.</p>
245
- <p>You will be glad to know that no changes need to be made to any of your CSS files.</p>
246
- </body>
247
- </html>
248
- EOF
249
-
250
233
  end
@@ -48,3 +48,20 @@ end
48
48
 
49
49
  require 'rspec/rails'
50
50
  require 'capybara/rails'
51
+
52
+ HTML_DOCUMENT = <<EOF
53
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
54
+ <html>
55
+ <head>
56
+ <title>HTML to XHTML Example: HTML page</title>
57
+ <link rel="Stylesheet" href="htmltohxhtml.css" type="text/css" media="screen">
58
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
59
+ </head>
60
+ <body>
61
+ <p>This is the HTML page. It works and is encoded just like any HTML page you
62
+ have previously done. View <a href="htmltoxhtml2.htm">the XHTML version</a> of
63
+ this page to view the difference between HTML and XHTML.</p>
64
+ <p>You will be glad to know that no changes need to be made to any of your CSS files.</p>
65
+ </body>
66
+ </html>
67
+ EOF
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: 4.1.7
4
+ version: 4.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman V. Babenko
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-05-09 00:00:00.000000000 Z
15
+ date: 2016-01-15 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
@@ -34,28 +34,28 @@ dependencies:
34
34
  requirements:
35
35
  - - "~>"
36
36
  - !ruby/object:Gem::Version
37
- version: 3.2.1
37
+ version: 3.3.2
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - "~>"
43
43
  - !ruby/object:Gem::Version
44
- version: 3.2.1
44
+ version: 3.3.2
45
45
  - !ruby/object:Gem::Dependency
46
- name: test-unit
46
+ name: sprockets-rails
47
47
  requirement: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - ">="
49
+ - - "~>"
50
50
  - !ruby/object:Gem::Version
51
- version: '0'
51
+ version: '2.0'
52
52
  type: :development
53
53
  prerelease: false
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - ">="
56
+ - - "~>"
57
57
  - !ruby/object:Gem::Version
58
- version: '0'
58
+ version: '2.0'
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: capybara
61
61
  requirement: !ruby/object:Gem::Requirement
@@ -86,7 +86,7 @@ files:
86
86
  - MIT-LICENSE
87
87
  - README.rdoc
88
88
  - Rakefile
89
- - gemfiles/Gemfile.rails-3.2.x
89
+ - gemfiles/Gemfile.rails-3.2.22
90
90
  - gemfiles/Gemfile.rails-4.0.x
91
91
  - gemfiles/Gemfile.rails-4.1.x
92
92
  - gemfiles/Gemfile.rails-4.2.x
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project: rails-footnotes
161
- rubygems_version: 2.4.6
161
+ rubygems_version: 2.5.0
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Every Rails page has footnotes that gives information about your application