color-logger 0.0.3 → 0.0.4

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.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,7 @@
1
+ 0.0.4
2
+ =====
3
+ Migrate to rails 3.1
4
+
1
5
  0.0.3
2
6
  =====
3
7
  Fix error with private method calling
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{color-logger}
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Evgeny Gurin"]
@@ -6,7 +6,7 @@
6
6
  class Object
7
7
  # Show object with default Rails logger
8
8
  def cdebug(tag=nil)
9
- RAILS_DEFAULT_LOGGER.info "\n\033[1;33;44m#{tag}\033[1;32;40m#{self.class} \033[0;30;47m#{self.inspect}\033[0m"
9
+ Rails.logger.info "\n\033[1;33;44m#{tag}\033[1;32;40m#{self.class} \033[0;30;47m#{self.inspect}\033[0m"
10
10
  end
11
11
 
12
12
  # Show object with console
@@ -29,7 +29,7 @@ class Object
29
29
 
30
30
  # Show object dump with default Rails logger
31
31
  def cdump(tag=nil)
32
- RAILS_DEFAULT_LOGGER.info self.prepare_dump(tag).join("\n")
32
+ Rails.logger.info self.prepare_dump(tag).join("\n")
33
33
  @c_d_stack = []
34
34
  end
35
35
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: color-logger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Evgeny Gurin
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  requirements: []
94
94
 
95
95
  rubyforge_project: color-logger
96
- rubygems_version: 1.3.7
96
+ rubygems_version: 1.5.3
97
97
  signing_key:
98
98
  specification_version: 3
99
99
  summary: Colorized ruby logger
metadata.gz.sig CHANGED
Binary file