dry-monitor 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 79d679b29fb37de532a1855d9d9225bb1337f9675c93ec509b6ea2f70f2123d7
4
- data.tar.gz: 3308df70e50a3d4bf2c95a772846e3c6229ef764d6ec679e5a3760249f48afb6
3
+ metadata.gz: 34309d32f94041d825568804c30507d69178437c5b433f6aa9628338dd09ad3a
4
+ data.tar.gz: efbf86392a682aaf4685631c407f8dd92adea9cc151522fa88de139362d7372a
5
5
  SHA512:
6
- metadata.gz: 2bb851503a4caa35361e751bb68367d71b04d3c005f08d47090cb5646b7756be257ecc7bbaff5b22aff18e7cf34770af3b39b196886bb35d221002c4b6996d31
7
- data.tar.gz: e2247a4b41a7430b1a609556aab0dbfca7c0bf7fe115ef19a91c772e3f47707d57aa80bb024ad9bfc222d73d50ddba5904ab08c08ef66505208bcaaf20e43316
6
+ metadata.gz: cf0da9d876fb8fa59b324f0f9c268860e089f2b630af6e4d4ba4e59da732404fa298832f50a9f61a1052c32562748834ebd8526e97bf8eb68a7e6016caf27446
7
+ data.tar.gz: 05a53f3834257a284e598027bc653a38cfc09bb421fce97c639a74210b19f2d966f170778e47e0990b3b6632743b927e9b1a768baa03a73a950d080ee62c4574
@@ -0,0 +1,15 @@
1
+ version: "2"
2
+
3
+ prepare:
4
+ fetch:
5
+ - url: "https://raw.githubusercontent.com/dry-rb/devtools/master/.rubocop.yml"
6
+ path: ".rubocop.yml"
7
+
8
+ exclude_patterns:
9
+ - "benchmarks/"
10
+ - "examples/"
11
+ - "spec/"
12
+
13
+ plugins:
14
+ rubocop:
15
+ enabled: true
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ tmp/
7
7
  .idea/
8
8
  Gemfile.lock
9
9
  spec/test_logs/*.log
10
+ .rubocop.yml
@@ -1,16 +1,76 @@
1
- # Generated by `rubocop --auto-gen-config`
2
- inherit_from: .rubocop_todo.yml
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+
4
+ Style/EachWithObject:
5
+ Enabled: false
6
+
7
+ Style/StringLiterals:
8
+ Enabled: true
9
+ EnforcedStyle: single_quotes
10
+
11
+ Style/Alias:
12
+ Enabled: false
13
+
14
+ Style/LambdaCall:
15
+ Enabled: false
16
+
17
+ Style/StabbyLambdaParentheses:
18
+ Enabled: false
19
+
20
+ Style/FormatString:
21
+ Enabled: false
22
+
23
+ Style/Documentation:
24
+ Enabled: false
25
+
26
+ Layout/SpaceInLambdaLiteral:
27
+ Enabled: false
28
+
29
+ Layout/MultilineMethodCallIndentation:
30
+ Enabled: true
31
+ EnforcedStyle: indented
3
32
 
4
33
  Metrics/LineLength:
5
34
  Max: 100
6
35
 
7
- Style/Documentation:
36
+ Metrics/MethodLength:
37
+ Max: 22
38
+
39
+ Metrics/ClassLength:
40
+ Max: 150
41
+
42
+ Metrics/AbcSize:
43
+ Max: 20
44
+
45
+ Metrics/BlockLength:
46
+ Enabled: true
47
+ Exclude:
48
+ - 'spec/**/*_spec.rb'
49
+
50
+ Metrics/CyclomaticComplexity:
51
+ Enabled: true
52
+ Max: 10
53
+
54
+ Lint/BooleanSymbol:
8
55
  Enabled: false
9
56
 
57
+ Style/AccessModifierDeclarations:
58
+ Enabled: false
59
+
60
+ Style/BlockDelimiters:
61
+ Enabled: false
62
+
63
+ Layout/IndentFirstArrayElement:
64
+ EnforcedStyle: consistent
65
+
66
+ Style/ClassAndModuleChildren:
67
+ Exclude:
68
+ - 'spec/**/*_spec.rb'
69
+
10
70
  Lint/HandleExceptions:
11
71
  Exclude:
12
- - rakelib/*.rake
72
+ - 'spec/spec_helper.rb'
13
73
 
14
- Style/FileName:
74
+ Naming/FileName:
15
75
  Exclude:
16
- - lib/dry-logic.rb
76
+ - 'lib/dry-*.rb'
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  cache: bundler
3
- sudo: false
4
3
  bundler_args: --without benchmarks tools
5
4
  before_install: gem update --system
6
5
  before_script:
@@ -12,11 +11,10 @@ after_script:
12
11
  script:
13
12
  - bundle exec rake ci
14
13
  rvm:
15
- - 2.6.0
16
- - 2.5.3
17
- - 2.4.5
18
- - 2.3.8
19
- - jruby-9.2.5.0
14
+ - 2.6.3
15
+ - 2.5.5
16
+ - 2.4.6
17
+ - jruby-9.2.7.0
20
18
  env:
21
19
  global:
22
20
  - COVERAGE=true
@@ -1,3 +1,9 @@
1
+ # v0.3.1 2019-06-18
2
+
3
+ ### Fixed
4
+
5
+ * Uninitialized constant `Dry::Monitor::Notifications::EMPTY_HASH` when no payload given (@mensfeld)
6
+
1
7
  # v0.3.0 2019-01-29
2
8
 
3
9
  ### Fixed
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  [gem]: https://rubygems.org/gems/dry-monitor
2
2
  [travis]: https://travis-ci.org/dry-rb/dry-monitor
3
- [gemnasium]: https://gemnasium.com/dry-rb/dry-monitor
4
3
  [codeclimate]: https://codeclimate.com/github/dry-rb/dry-monitor
5
4
  [coveralls]: https://coveralls.io/r/dry-rb/dry-monitor
6
5
  [inchpages]: http://inch-ci.org/github/dry-rb/dry-monitor
@@ -9,7 +8,6 @@
9
8
 
10
9
  [![Gem Version](https://badge.fury.io/rb/dry-monitor.svg)][gem]
11
10
  [![Build Status](https://travis-ci.org/dry-rb/dry-monitor.svg?branch=master)][travis]
12
- [![Dependency Status](https://gemnasium.com/dry-rb/dry-monitor.svg)][gemnasium]
13
11
  [![Code Climate](https://codeclimate.com/github/dry-rb/dry-monitor/badges/gpa.svg)][codeclimate]
14
12
  [![Test Coverage](https://codeclimate.com/github/dry-rb/dry-monitor/badges/coverage.svg)][codeclimate]
15
13
  [![Inline docs](http://inch-ci.org/github/dry-rb/dry-monitor.svg?branch=master)][inchpages]
data/Rakefile CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env rake
2
+ # frozen_string_literal: true
3
+
2
4
  require 'bundler/gem_tasks'
3
5
 
4
6
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
@@ -1,5 +1,6 @@
1
- # coding: utf-8
2
- require File.expand_path('../lib/dry/monitor/version', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path('lib/dry/monitor/version', __dir__)
3
4
 
4
5
  Gem::Specification.new do |spec|
5
6
  spec.name = 'dry-monitor'
@@ -15,13 +16,13 @@ Gem::Specification.new do |spec|
15
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
17
  spec.require_paths = ['lib']
17
18
 
18
- spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
19
19
  spec.add_runtime_dependency 'dry-configurable', '~> 0.5'
20
- spec.add_runtime_dependency 'dry-events', '~> 0.1'
21
20
  spec.add_runtime_dependency 'dry-core', '~> 0.4'
21
+ spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
22
+ spec.add_runtime_dependency 'dry-events', '~> 0.1'
22
23
 
23
- spec.add_development_dependency 'rouge', '~> 2.0', '>= 2.2.1'
24
24
  spec.add_development_dependency 'bundler'
25
25
  spec.add_development_dependency 'rake'
26
+ spec.add_development_dependency 'rouge', '~> 2.0', '>= 2.2.1'
26
27
  spec.add_development_dependency 'rspec'
27
28
  end
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'dry/monitor'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'dry/monitor/logger'
2
4
  require 'dry/monitor/notifications'
3
5
  require 'dry/core/extensions'
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dry/core/constants'
4
+
5
+ module Dry
6
+ module Monitor
7
+ include Dry::Core::Constants
8
+ end
9
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'logger'
2
4
 
3
5
  module Dry
@@ -5,7 +7,7 @@ module Dry
5
7
  class Logger < ::Logger
6
8
  def initialize(*args)
7
9
  super
8
- self.formatter = proc do |severity, datetime, progname, msg|
10
+ self.formatter = proc do |_severity, _datetime, _progname, msg|
9
11
  "#{msg}\n"
10
12
  end
11
13
  end
@@ -1,4 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'dry/events/publisher'
4
+ require 'dry/monitor/constants'
2
5
 
3
6
  module Dry
4
7
  module Monitor
@@ -37,9 +40,7 @@ module Dry
37
40
  end
38
41
 
39
42
  def instrument(event_id, payload = EMPTY_HASH)
40
- if block_given?
41
- result, time = @clock.measure { yield }
42
- end
43
+ result, time = @clock.measure { yield } if block_given?
43
44
 
44
45
  process(event_id, payload) do |event, listener|
45
46
  if time
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'dry/configurable'
2
4
  require 'dry/monitor/rack/middleware'
3
5
 
@@ -9,15 +11,15 @@ module Dry
9
11
 
10
12
  setting :filtered_params, %w[_csrf password]
11
13
 
12
- REQUEST_METHOD = 'REQUEST_METHOD'.freeze
13
- PATH_INFO = 'PATH_INFO'.freeze
14
- REMOTE_ADDR = 'REMOTE_ADDR'.freeze
15
- QUERY_STRING = 'QUERY_STRING'.freeze
14
+ REQUEST_METHOD = 'REQUEST_METHOD'
15
+ PATH_INFO = 'PATH_INFO'
16
+ REMOTE_ADDR = 'REMOTE_ADDR'
17
+ QUERY_STRING = 'QUERY_STRING'
16
18
 
17
- START_MSG = %(Started %s "%s" for %s at %s).freeze
18
- STOP_MSG = %(Finished %s "%s" for %s in %sms [Status: %s]\n).freeze
19
- QUERY_MSG = %( Query parameters %s).freeze
20
- FILTERED = '[FILTERED]'.freeze
19
+ START_MSG = %(Started %s "%s" for %s at %s)
20
+ STOP_MSG = %(Finished %s "%s" for %s in %sms [Status: %s]\n)
21
+ QUERY_MSG = %( Query parameters %s)
22
+ FILTERED = '[FILTERED]'
21
23
 
22
24
  attr_reader :logger
23
25
 
@@ -42,29 +44,29 @@ module Dry
42
44
  end
43
45
  end
44
46
 
45
- def log_exception(e)
46
- logger.error e.message
47
- logger.error filter_backtrace(e.backtrace).join("\n")
47
+ def log_exception(err)
48
+ logger.error err.message
49
+ logger.error filter_backtrace(err.backtrace).join("\n")
48
50
  end
49
51
 
50
52
  def log_start_request(request)
51
53
  info START_MSG % [
52
- request[REQUEST_METHOD],
53
- request[PATH_INFO],
54
- request[REMOTE_ADDR],
55
- Time.now
56
- ]
54
+ request[REQUEST_METHOD],
55
+ request[PATH_INFO],
56
+ request[REMOTE_ADDR],
57
+ Time.now
58
+ ]
57
59
  log_request_params(request)
58
60
  end
59
61
 
60
62
  def log_stop_request(request, status, time)
61
63
  info STOP_MSG % [
62
- request[REQUEST_METHOD],
63
- request[PATH_INFO],
64
- request[REMOTE_ADDR],
65
- time,
66
- status
67
- ]
64
+ request[REQUEST_METHOD],
65
+ request[PATH_INFO],
66
+ request[REMOTE_ADDR],
67
+ time,
68
+ status
69
+ ]
68
70
  end
69
71
 
70
72
  def log_request_params(request)
@@ -80,9 +82,7 @@ module Dry
80
82
  def with_http_params(params)
81
83
  params = ::Rack::Utils.parse_nested_query(params)
82
84
 
83
- if params.size > 0
84
- yield(filter_params(params))
85
- end
85
+ yield(filter_params(params)) unless params.empty?
86
86
  end
87
87
 
88
88
  def filter_backtrace(backtrace)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'dry/monitor/notifications'
2
4
 
3
5
  module Dry
@@ -1,10 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Dry
2
4
  module Monitor
3
5
  module SQL
4
6
  module Colorizers
5
7
  class Default
6
- def initialize(_theme)
7
- end
8
+ def initialize(_theme); end
8
9
 
9
10
  def call(string)
10
11
  string
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rouge/util'
2
4
  require 'rouge/token'
3
5
  require 'rouge/theme'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'dry-configurable'
2
4
  require 'dry/core/extensions'
3
5
  require 'dry/monitor/notifications'
@@ -28,7 +30,7 @@ module Dry
28
30
  end
29
31
 
30
32
  setting :theme, nil
31
- setting :message_template, %( Loaded %s in %sms %s).freeze
33
+ setting :message_template, %( Loaded %s in %sms %s)
32
34
 
33
35
  attr_reader :config
34
36
  attr_reader :logger
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Dry
2
4
  module Monitor
3
- VERSION = '0.3.0'.freeze
5
+ VERSION = '0.3.1'
4
6
  end
5
7
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'rubocop/rake_task'
3
5
 
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe 'Subscribing to instrumentation events' do
2
4
  subject(:notifications) { Dry::Monitor::Notifications.new(:app) }
3
5
 
4
6
  before do
5
- Dry::Monitor::Notifications.register_event(:sql, { name: 'rom[sql]' })
7
+ Dry::Monitor::Notifications.register_event(:sql, name: 'rom[sql]')
6
8
  end
7
9
 
8
10
  describe '#instrument' do
@@ -33,5 +35,17 @@ RSpec.describe 'Subscribing to instrumentation events' do
33
35
 
34
36
  expect(captured).to eql([[:sql, 'SELECT 1 FROM users']])
35
37
  end
38
+
39
+ it 'allows instrumenting via block when no payload given' do
40
+ captured = []
41
+
42
+ notifications.subscribe(:sql) do |event|
43
+ captured << [event.id]
44
+ end
45
+
46
+ notifications.instrument(:sql) {}
47
+
48
+ expect(captured).to eql([[:sql]])
49
+ end
36
50
  end
37
51
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Dry::Monitor::Logger do
2
4
  subject(:logger) do
3
5
  Dry::Monitor::Logger.new($stdout)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Dry::Monitor::Rack::Middleware do
2
4
  subject(:middleware) { Dry::Monitor::Rack::Middleware.new(notifications).new(rack_app) }
3
5
 
@@ -26,16 +28,16 @@ RSpec.describe Dry::Monitor::Rack::Middleware do
26
28
 
27
29
  let(:query_params) do
28
30
  %w[
29
- _csrf=123456
30
- password=secret
31
- user[password]=secret
32
- others[][password]=secret1
33
- others[][password]=secret2
34
- foo=bar
35
- one=1
36
- ids[]=1
37
- ids[]=2
38
- ].join('&')
31
+ _csrf=123456
32
+ password=secret
33
+ user[password]=secret
34
+ others[][password]=secret1
35
+ others[][password]=secret2
36
+ foo=bar
37
+ one=1
38
+ ids[]=1
39
+ ids[]=2
40
+ ].join('&')
39
41
  end
40
42
 
41
43
  describe '#call' do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Dry::Monitor::SQL::Logger do
2
4
  subject(:logger) { sql_logger.new(Dry::Monitor::Logger.new(log_file_path)) }
3
5
 
@@ -1,14 +1,21 @@
1
- if RUBY_ENGINE == 'ruby' && ENV['CI'] == 'true'
2
- require 'simplecov'
3
- SimpleCov.start do
4
- add_filter '/spec/'
1
+ # frozen_string_literal: true
2
+
3
+ if RUBY_ENGINE == 'ruby' && ENV['COVERAGE'] == 'true'
4
+ require 'yaml'
5
+ rubies = YAML.safe_load(File.read(File.join(__dir__, '..', '.travis.yml')))['rvm']
6
+ latest_mri = rubies.select { |v| v =~ /\A\d+\.\d+.\d+\z/ }.max
7
+
8
+ if RUBY_VERSION == latest_mri
9
+ require 'simplecov'
10
+ SimpleCov.start do
11
+ add_filter '/spec/'
12
+ end
5
13
  end
6
14
  end
7
15
 
8
16
  begin
9
17
  require 'byebug'
10
18
  rescue LoadError; end
11
-
12
19
  require 'dry-monitor'
13
20
  Dry::Monitor.load_extensions(:sql, :rack)
14
21
 
@@ -17,6 +24,4 @@ SPEC_ROOT = Pathname(__dir__)
17
24
  Dir[SPEC_ROOT.join('shared/**/*.rb')].each(&method(:require))
18
25
  Dir[SPEC_ROOT.join('support/**/*.rb')].each(&method(:require))
19
26
 
20
- RSpec.configure do |config|
21
- config.disable_monkey_patching!
22
- end
27
+ RSpec.configure(&:disable_monkey_patching!)
metadata CHANGED
@@ -1,93 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-29 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: dry-equalizer
14
+ name: dry-configurable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: dry-configurable
28
+ name: dry-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.5'
33
+ version: '0.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.5'
40
+ version: '0.4'
41
41
  - !ruby/object:Gem::Dependency
42
- name: dry-events
42
+ name: dry-equalizer
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.1'
47
+ version: '0.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.1'
54
+ version: '0.2'
55
55
  - !ruby/object:Gem::Dependency
56
- name: dry-core
56
+ name: dry-events
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.4'
61
+ version: '0.1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.4'
68
+ version: '0.1'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rouge
70
+ name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '2.0'
76
73
  - - ">="
77
74
  - !ruby/object:Gem::Version
78
- version: 2.2.1
75
+ version: '0'
79
76
  type: :development
80
77
  prerelease: false
81
78
  version_requirements: !ruby/object:Gem::Requirement
82
79
  requirements:
83
- - - "~>"
84
- - !ruby/object:Gem::Version
85
- version: '2.0'
86
80
  - - ">="
87
81
  - !ruby/object:Gem::Version
88
- version: 2.2.1
82
+ version: '0'
89
83
  - !ruby/object:Gem::Dependency
90
- name: bundler
84
+ name: rake
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - ">="
@@ -101,19 +95,25 @@ dependencies:
101
95
  - !ruby/object:Gem::Version
102
96
  version: '0'
103
97
  - !ruby/object:Gem::Dependency
104
- name: rake
98
+ name: rouge
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.0'
107
104
  - - ">="
108
105
  - !ruby/object:Gem::Version
109
- version: '0'
106
+ version: 2.2.1
110
107
  type: :development
111
108
  prerelease: false
112
109
  version_requirements: !ruby/object:Gem::Requirement
113
110
  requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: '2.0'
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '0'
116
+ version: 2.2.1
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: rspec
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -135,10 +135,10 @@ executables: []
135
135
  extensions: []
136
136
  extra_rdoc_files: []
137
137
  files:
138
+ - ".codeclimate.yml"
138
139
  - ".gitignore"
139
140
  - ".rspec"
140
141
  - ".rubocop.yml"
141
- - ".rubocop_todo.yml"
142
142
  - ".travis.yml"
143
143
  - CHANGELOG.md
144
144
  - CONTRIBUTING.md
@@ -149,6 +149,7 @@ files:
149
149
  - dry-monitor.gemspec
150
150
  - lib/dry-monitor.rb
151
151
  - lib/dry/monitor.rb
152
+ - lib/dry/monitor/constants.rb
152
153
  - lib/dry/monitor/logger.rb
153
154
  - lib/dry/monitor/notifications.rb
154
155
  - lib/dry/monitor/rack/logger.rb
@@ -183,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
184
  - !ruby/object:Gem::Version
184
185
  version: '0'
185
186
  requirements: []
186
- rubygems_version: 3.0.2
187
+ rubygems_version: 3.0.3
187
188
  signing_key:
188
189
  specification_version: 4
189
190
  summary: Monitoring and instrumentation APIs
@@ -1,7 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2015-10-30 01:32:46 +0000 using RuboCop version 0.34.2.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.