rails3-footnotes 4.0.0.pre.7 → 4.0.0.pre.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == Footnotes v4.0.0.pre.8 (April 5, 2011)
2
+ * fix log note to only activate in development
3
+
1
4
  == Footnotes v4.0.0.pre.7 (April 5, 2011)
2
5
  * rewrite the log note so it actually works! yay!
3
6
  * fix the view note to work again (oops)
@@ -23,8 +23,10 @@ module Footnotes
23
23
 
24
24
  # Hook into the logger so we can collect logs
25
25
  initializer "rails3-footnotes.hook_logger" do
26
- raise ArgumentError, "We need a logger to get logs" unless Rails.logger
27
- Rails.logger.extend Footnotes::LoggingExtensions
26
+ if ::Rails.env.development?
27
+ raise ArgumentError, "The logs footnote requires a logger" unless Rails.logger
28
+ Rails.logger.extend Footnotes::LoggingExtensions
29
+ end
28
30
  end
29
31
  end
30
32
 
@@ -1,3 +1,3 @@
1
1
  module Footnotes
2
- VERSION = "4.0.0.pre.7"
2
+ VERSION = "4.0.0.pre.8"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails3-footnotes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923831847
4
+ hash: 1923831865
5
5
  prerelease: true
6
6
  segments:
7
7
  - 4
8
8
  - 0
9
9
  - 0
10
10
  - pre
11
- - 7
12
- version: 4.0.0.pre.7
11
+ - 8
12
+ version: 4.0.0.pre.8
13
13
  platform: ruby
14
14
  authors:
15
15
  - "Andr\xC3\xA9 Arko"