mongoid_colored_logger 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem 'mongoid', '~>2.4'
4
- gem 'mongo', '~>1.6.0', '<= 1.6.2'
4
+ gem 'mongo', '~>1.6'
5
5
 
6
6
  group :development do
7
7
  gem "rdoc", "~> 3.12"
data/Gemfile.lock CHANGED
@@ -7,21 +7,21 @@ GEM
7
7
  activesupport (3.2.8)
8
8
  i18n (~> 0.6)
9
9
  multi_json (~> 1.0)
10
- bson (1.6.4)
11
- builder (3.0.0)
10
+ bson (1.7.0)
11
+ builder (3.0.3)
12
12
  git (1.2.5)
13
- i18n (0.6.0)
13
+ i18n (0.6.1)
14
14
  jeweler (1.8.4)
15
15
  bundler (~> 1.0)
16
16
  git (>= 1.2.5)
17
17
  rake
18
18
  rdoc
19
19
  json (1.7.5)
20
- mongo (1.6.2)
21
- bson (~> 1.6.2)
22
- mongoid (2.4.12)
20
+ mongo (1.7.0)
21
+ bson (~> 1.7.0)
22
+ mongoid (2.5.0)
23
23
  activemodel (~> 3.1)
24
- mongo (<= 1.6.2)
24
+ mongo (~> 1.7)
25
25
  tzinfo (~> 0.3.22)
26
26
  multi_json (1.3.6)
27
27
  rake (0.9.2.2)
@@ -35,6 +35,6 @@ PLATFORMS
35
35
  DEPENDENCIES
36
36
  bundler (~> 1.0)
37
37
  jeweler (~> 1.8.0)
38
- mongo (~> 1.6.0, <= 1.6.2)
38
+ mongo (~> 1.6)
39
39
  mongoid (~> 2.4)
40
40
  rdoc (~> 3.12)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -27,7 +27,8 @@ module MongoidColoredLogger
27
27
  end
28
28
 
29
29
  def add(severity, message = nil, progname = nil, &block)
30
- message = message.sub('MONGODB', color('MONGODB', odd? ? CYAN : MAGENTA)).
30
+ message = block.call if message.nil? and block_given?
31
+ message = message.to_s.sub('MONGODB', color('MONGODB', odd? ? CYAN : MAGENTA)).
31
32
  sub(%r{(?<=\[')([^']+)}) {|m| color(m, BLUE)}.
32
33
  sub(%r{(?<=\]\.)\w+}) {|m| color(m, YELLOW)}
33
34
  @logger.add(severity, message, progname, &block)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mongoid_colored_logger"
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roman Shterenzon"]
12
- s.date = "2012-08-30"
12
+ s.date = "2012-09-10"
13
13
  s.description = "Beautiful logging for Mongoid"
14
14
  s.email = "romanbsd@yahoo.com"
15
15
  s.extra_rdoc_files = [
@@ -41,20 +41,20 @@ Gem::Specification.new do |s|
41
41
 
42
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
43
  s.add_runtime_dependency(%q<mongoid>, ["~> 2.4"])
44
- s.add_runtime_dependency(%q<mongo>, ["<= 1.6.2", "~> 1.6.0"])
44
+ s.add_runtime_dependency(%q<mongo>, ["~> 1.6"])
45
45
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
46
46
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
47
47
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.0"])
48
48
  else
49
49
  s.add_dependency(%q<mongoid>, ["~> 2.4"])
50
- s.add_dependency(%q<mongo>, ["<= 1.6.2", "~> 1.6.0"])
50
+ s.add_dependency(%q<mongo>, ["~> 1.6"])
51
51
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
52
52
  s.add_dependency(%q<bundler>, ["~> 1.0"])
53
53
  s.add_dependency(%q<jeweler>, ["~> 1.8.0"])
54
54
  end
55
55
  else
56
56
  s.add_dependency(%q<mongoid>, ["~> 2.4"])
57
- s.add_dependency(%q<mongo>, ["<= 1.6.2", "~> 1.6.0"])
57
+ s.add_dependency(%q<mongo>, ["~> 1.6"])
58
58
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
59
59
  s.add_dependency(%q<bundler>, ["~> 1.0"])
60
60
  s.add_dependency(%q<jeweler>, ["~> 1.8.0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_colored_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-30 00:00:00.000000000 Z
12
+ date: 2012-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -32,23 +32,17 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - <=
36
- - !ruby/object:Gem::Version
37
- version: 1.6.2
38
35
  - - ~>
39
36
  - !ruby/object:Gem::Version
40
- version: 1.6.0
37
+ version: '1.6'
41
38
  type: :runtime
42
39
  prerelease: false
43
40
  version_requirements: !ruby/object:Gem::Requirement
44
41
  none: false
45
42
  requirements:
46
- - - <=
47
- - !ruby/object:Gem::Version
48
- version: 1.6.2
49
43
  - - ~>
50
44
  - !ruby/object:Gem::Version
51
- version: 1.6.0
45
+ version: '1.6'
52
46
  - !ruby/object:Gem::Dependency
53
47
  name: rdoc
54
48
  requirement: !ruby/object:Gem::Requirement
@@ -132,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
126
  version: '0'
133
127
  segments:
134
128
  - 0
135
- hash: 4210424300748019740
129
+ hash: 32436982444610564
136
130
  required_rubygems_version: !ruby/object:Gem::Requirement
137
131
  none: false
138
132
  requirements: