dry-monitor 0.2.0 → 0.3.0

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: b939a7f5ab22ce4c3eccccbcd71346e42facb0f70f2cc047281721fdf681e234
4
- data.tar.gz: 965e06b530acc58bf26b94595a345a04cc8a36c7b06851543e59b387da6ad06e
3
+ metadata.gz: 79d679b29fb37de532a1855d9d9225bb1337f9675c93ec509b6ea2f70f2123d7
4
+ data.tar.gz: 3308df70e50a3d4bf2c95a772846e3c6229ef764d6ec679e5a3760249f48afb6
5
5
  SHA512:
6
- metadata.gz: '09640a52032db43d45f511c7ddeab320d36174427c4414e013377d5c5091c569f195b187ea8db2228f5a27050ad6f553bdce7da2f8b43cf572f9adb80fdadf01'
7
- data.tar.gz: d0074aa61334f545f291e99dcb7a1b9c311e8b3e25f49fa3e0f3bb230f0a8c2653660ab60a5f894e4e7a45c00c1c68644bf196062733cb08690b83a4ebf1da20
6
+ metadata.gz: 2bb851503a4caa35361e751bb68367d71b04d3c005f08d47090cb5646b7756be257ecc7bbaff5b22aff18e7cf34770af3b39b196886bb35d221002c4b6996d31
7
+ data.tar.gz: e2247a4b41a7430b1a609556aab0dbfca7c0bf7fe115ef19a91c772e3f47707d57aa80bb024ad9bfc222d73d50ddba5904ab08c08ef66505208bcaaf20e43316
@@ -1,22 +1,30 @@
1
1
  language: ruby
2
2
  cache: bundler
3
- bundler_args: --without benchmarks console tools
4
- script: "bundle exec rake ci"
3
+ sudo: false
4
+ bundler_args: --without benchmarks tools
5
5
  before_install: gem update --system
6
- after_success:
7
- - '[ "${TRAVIS_JOB_NUMBER#*.}" = "1" ] && [ "$TRAVIS_BRANCH" = "master" ] && bundle exec codeclimate-test-reporter'
6
+ before_script:
7
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
8
+ - chmod +x ./cc-test-reporter
9
+ - ./cc-test-reporter before-build
10
+ after_script:
11
+ - "[ -d coverage ] && ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
12
+ script:
13
+ - bundle exec rake ci
8
14
  rvm:
9
- - 2.5.0
10
- - 2.4.3
11
- - 2.3.6
12
- - jruby-9.1.9.0
15
+ - 2.6.0
16
+ - 2.5.3
17
+ - 2.4.5
18
+ - 2.3.8
19
+ - jruby-9.2.5.0
13
20
  env:
14
21
  global:
15
- - COVERAGE='true'
22
+ - COVERAGE=true
16
23
  notifications:
24
+ email: false
17
25
  webhooks:
18
26
  urls:
19
27
  - https://webhooks.gitter.im/e/19098b4253a72c9796db
20
- on_success: change
21
- on_failure: always
22
- on_start: false
28
+ on_success: change # options: [always|never|change] default: always
29
+ on_failure: always # options: [always|never|change] default: always
30
+ on_start: false # default: false
@@ -1,3 +1,14 @@
1
+ # v0.3.0 2019-01-29
2
+
3
+ ### Fixed
4
+
5
+ * cannot load such file -- rack/utils (mensfeld)
6
+
7
+ ### Changed
8
+
9
+ * Make `rack` logger into a plugin (mensfeld)
10
+ * Make `sql` logger into a plugin (mensfeld)
11
+
1
12
  # v0.2.0 2018-01-21
2
13
 
3
14
  ### Changed
data/Gemfile CHANGED
@@ -7,7 +7,6 @@ gem 'dry-events', git: 'https://github.com/dry-rb/dry-events.git', branch: 'mast
7
7
  group :test do
8
8
  gem 'rack'
9
9
  gem 'simplecov', platform: :mri, require: false
10
- gem 'codeclimate-test-reporter', require: false
11
10
  end
12
11
 
13
12
  group :tools do
@@ -1,5 +1,18 @@
1
1
  require 'dry/monitor/logger'
2
2
  require 'dry/monitor/notifications'
3
- require 'dry/monitor/rack/middleware'
4
- require 'dry/monitor/rack/logger'
5
- require 'dry/monitor/sql/logger'
3
+ require 'dry/core/extensions'
4
+
5
+ module Dry
6
+ module Monitor
7
+ extend Dry::Core::Extensions
8
+
9
+ register_extension(:rack) do
10
+ require 'rack/utils'
11
+ require 'dry/monitor/rack/logger'
12
+ end
13
+
14
+ register_extension(:sql) do
15
+ require 'dry/monitor/sql/logger'
16
+ end
17
+ end
18
+ end
@@ -1,4 +1,5 @@
1
1
  require 'dry/configurable'
2
+ require 'dry/monitor/rack/middleware'
2
3
 
3
4
  module Dry
4
5
  module Monitor
@@ -1,4 +1,3 @@
1
- require 'rack/utils'
2
1
  require 'dry/monitor/notifications'
3
2
 
4
3
  module Dry
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Monitor
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
5
5
  end
@@ -10,6 +10,7 @@ begin
10
10
  rescue LoadError; end
11
11
 
12
12
  require 'dry-monitor'
13
+ Dry::Monitor.load_extensions(:sql, :rack)
13
14
 
14
15
  SPEC_ROOT = Pathname(__dir__)
15
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
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-21 00:00:00.000000000 Z
11
+ date: 2019-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-equalizer
@@ -183,8 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubyforge_project:
187
- rubygems_version: 2.7.6
186
+ rubygems_version: 3.0.2
188
187
  signing_key:
189
188
  specification_version: 4
190
189
  summary: Monitoring and instrumentation APIs