makara 0.4.0 → 0.4.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: 942671e3f14754da500b275f0da2354cef9d7d0e
4
- data.tar.gz: bfcd3be83e4101f627d10c0718afe41e5dae5b44
3
+ metadata.gz: 4637805d2e14a9aca08195048ebdd3f60ea0b570
4
+ data.tar.gz: 2d58a5e448c5044b90f7342ace6866ecde686ea2
5
5
  SHA512:
6
- metadata.gz: f51e87da7797bbb503ebe60e1e719d498f2cc8020e09578a6b9d2ed2c770c7d879ca2f32d7b7ab4b224c76f0c5ba00c8dc48bc91cf806dd24be6299e5424e209
7
- data.tar.gz: b1cacfad8294f8371f0c28ec6a76f0608ce9c0c23361cb256e9ba0b083bde43459ad2c18e575a166c6b3f258edbb562fc1ec7520f4653b5c30bcefdb9cef59ce
6
+ metadata.gz: 8c8238ca31368212caf4ee4fec672e6451a2a3f35303b4e5278af439534ce792676ee257be9edd8934a0adf2744404814aaa0654cc32448d135cd231d64eb2ad
7
+ data.tar.gz: c136a5a1a27b3df093c243412120df9ed4818d9a8b31606dc330f9acd23d5f9a11fe1faf443ca32f43e7a029849face4c853e1fe379190b0efb660bbcad42ea3
@@ -1,6 +1,12 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## v0.4.1 - 2019-03-25
5
+ [Full Changelog](https://github.com/taskrabbit/makara/compare/v0.4.0...v0.4.1)
6
+
7
+ - Fix crash by requiring makara in the adapter [#54](https://github.com/taskrabbit/makara/pull/54) Eric Saxby
8
+ - Add connection logging in non-Rails enviroments [#223](https://github.com/taskrabbit/makara/pull/223) Andrew Kane
9
+
4
10
  ## v0.4.0 - 2018-04-01
5
11
  [Full Changelog](https://github.com/taskrabbit/makara/compare/v0.3.10...v0.4.0)
6
12
 
@@ -1,4 +1,5 @@
1
1
  require 'active_record'
2
+ require 'makara'
2
3
 
3
4
  module ActiveRecord
4
5
  module ConnectionAdapters
@@ -1,3 +1,4 @@
1
+ require 'active_support'
1
2
  require 'makara/version'
2
3
  require 'makara/railtie' if defined?(Rails)
3
4
  module Makara
@@ -31,3 +32,9 @@ module Makara
31
32
  end
32
33
 
33
34
  end
35
+
36
+ ActiveSupport.on_load(:active_record) do
37
+ ActiveRecord::LogSubscriber.log_subscribers.each do |subscriber|
38
+ subscriber.extend ::Makara::Logging::Subscriber
39
+ end
40
+ end
@@ -5,11 +5,5 @@ module Makara
5
5
  app.middleware.use Makara::Middleware
6
6
  end
7
7
 
8
- initializer "makara.initialize_logger" do |app|
9
- ActiveRecord::LogSubscriber.log_subscribers.each do |subscriber|
10
- subscriber.extend ::Makara::Logging::Subscriber
11
- end
12
- end
13
-
14
8
  end
15
9
  end
@@ -3,7 +3,7 @@ module Makara
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 4
6
- PATCH = 0
6
+ PATCH = 1
7
7
  PRE = nil
8
8
 
9
9
  def self.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Nelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-09 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord