mongo_logs_on_roids 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: d2dc3e286069213c9fd659853527b025e790c549
4
- data.tar.gz: e7f1c201e0a22fed17675e183435ee0839730c2a
3
+ metadata.gz: 31679ca4a009a070423a0f3931fc5fe83c0281f5
4
+ data.tar.gz: 52463364d0ebc91f141c36ffa9ad0361a7dc44ce
5
5
  SHA512:
6
- metadata.gz: bf7e529c572148a86d9dcb8998edb6a8bfb80b6c576a2abc5f69aae3cfd6d8d6e15f5a14e81dacc4218921c694d902ab569f82e300195f9d4546b4d12382264e
7
- data.tar.gz: df0da61a49b27c6d790f30f59ccf5eb7a25f1630891e3192ca753b3be375ced585bf6cfae1c873c39b8574ad7915a453e9de4df4fe6b6826ad730c3586f0118c
6
+ metadata.gz: 8dc9fce8b3828e701d08dcfab8748bd6eb92711d3a841e939857d2e8a45a3e5eefea391e0a760561aa9fd296c867f0e2bc057c46e832893490a684ad2c6b39c4
7
+ data.tar.gz: b02266f7be32c3cc329fec7e26fb823f341ecdd98d2a4166468344dfc7089918d55649751b9e8c6f86d5fa13169eeae1ae85bea548037fcc90d1cb35eadbde2e
data/README.md CHANGED
@@ -25,11 +25,6 @@ gem 'mongo_logs_on_roids'
25
25
 
26
26
  Under normal circumstances, should activate itself automatically.
27
27
 
28
- <!-- ## Development
29
-
30
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
31
-
32
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). -->
33
28
 
34
29
  ## Contributing
35
30
 
@@ -37,10 +37,6 @@ module MongoLogsOnRoids
37
37
  def format_command(args)
38
38
  message = super
39
39
  WHITE+message.gsub(/=>/){|m| MAGENTA+m+WHITE }+BLUE
40
- # message.gsub(/\[?\{.+?\}\]?(\s|$)/) do |m|
41
- # m.gsub!(/=>/) {|m2| color(m2, MAGENTA) + WHITE }
42
- # color(m, WHITE)+BLUE
43
- # end
44
40
  end
45
41
 
46
42
  PREFIX = Mongo::Loggable::PREFIX
@@ -53,17 +49,5 @@ module MongoLogsOnRoids
53
49
  "#{event.address.to_s} | #{CYAN}#{event.database_name}#{BLUE}.#{YELLOW}#{event.command_name}#{BLUE}"
54
50
  end
55
51
 
56
-
57
- # def color(text, color, bold=false)
58
- # # return text unless colorize_logging
59
- # color = self.class.const_get(color.upcase) if color.is_a?(Symbol)
60
- # bold = bold ? BOLD : ""
61
- # "#{bold}#{color}#{text}#{CLEAR}"
62
- # end
63
- # def color(text, color, bold=false)
64
- # color = self.class.const_get(color.to_s.upcase) if color.is_a?(Symbol)
65
- # "#{BOLD if bold}#{color}#{text}#{CLEAR}"
66
- # end
67
-
68
52
  end
69
53
  end
@@ -1,3 +1,3 @@
1
1
  module MongoLogsOnRoids
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -14,14 +14,6 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/zarqman/mongo_logs_on_roids"
15
15
  spec.license = "MIT"
16
16
 
17
- # # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
- # # delete this section to allow pushing this gem to any host.
19
- # if spec.respond_to?(:metadata)
20
- # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
- # else
22
- # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
- # end
24
-
25
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
18
  spec.bindir = "exe"
27
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -31,6 +23,6 @@ Gem::Specification.new do |spec|
31
23
  spec.add_development_dependency "rake", "~> 10.0"
32
24
  spec.add_development_dependency "minitest"
33
25
  spec.add_development_dependency "mongoid", "~> 5.0"
34
- spec.add_development_dependency "rails", "~> 4.2"
26
+ spec.add_development_dependency "rails", ">= 4.2", "< 5.1"
35
27
  spec.add_dependency "mongo", "~> 2.1"
36
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_logs_on_roids
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-09 00:00:00.000000000 Z
11
+ date: 2016-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,16 +70,22 @@ dependencies:
70
70
  name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '4.2'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '5.1'
76
79
  type: :development
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
- - - "~>"
83
+ - - ">="
81
84
  - !ruby/object:Gem::Version
82
85
  version: '4.2'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '5.1'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: mongo
85
91
  requirement: !ruby/object:Gem::Requirement
@@ -135,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
141
  version: '0'
136
142
  requirements: []
137
143
  rubyforge_project:
138
- rubygems_version: 2.4.3
144
+ rubygems_version: 2.4.8
139
145
  signing_key:
140
146
  specification_version: 4
141
147
  summary: Better logging for mongodb. Compatible w/Mongoid 5, Rails, etc.