sequelize-rails 0.2.0 → 0.2.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: 6a6436860299eb2c361e5301b17ed80ecb416ec1b2a4b0c775b83abb4425a7aa
4
- data.tar.gz: '095e1782c0742e4682e1de70d49018a80661222cb5db591ddc613294ed1c3e68'
3
+ metadata.gz: 28ba0f80f8f390c7a6e735f81466cf6de3afa6a583fa468356165dc16f6b464f
4
+ data.tar.gz: aea26a334f90d64997e596fa6830f204d59bb35f58616e34795b5e0edfdf06f7
5
5
  SHA512:
6
- metadata.gz: 698afc25ec353669f34a355519f6cac981ec590de4c94bb94ca423693856601fb184a7e226183bc61deb23847f27d8145c76d17eaac698bcef47e2a9d8273394
7
- data.tar.gz: 97294ea426455e6983b38d552146abcaa8568753ea7013da12f1781cfb8c1c6cd78671f77ab9276bd3e401549a339caf174753879f7de6211808c3b0f714efe2
6
+ metadata.gz: 10aff2b60e7c26aa6f3ae61292372689c77574e51c8aed46529b5a90989a3f013cb3661195ba83c48e98e3df4027e6afb0b18d91ba150b73f385acd05c81bbf5
7
+ data.tar.gz: 3ad6415360fa05680722111e912d6c13be37204c76a8410e69ad18c19c2bde2a63fb9a2adf41728b6b286ae70847f1d34bdae8ff6daf58ea7f3d51ba90a7ae4e
@@ -10,7 +10,7 @@ require "action_controller/railtie"
10
10
  require "sequelize_rails/railties/log_subscriber"
11
11
  require "sequelize_rails/railties/controller_runtime"
12
12
 
13
- # Load instrumentation before any database connections are established
13
+ # Load instrumentation (before any database connections are established)
14
14
  Sequel.extension :sequel_instrumentation
15
15
 
16
16
  # Monkey patches
@@ -18,7 +18,11 @@ require "sequelize_rails/db_console"
18
18
 
19
19
  module SequelizeRails
20
20
  class Railtie < Rails::Railtie
21
+ # Log subscriber
21
22
  ::SequelizeRails::Railties::LogSubscriber.attach_to :sequel
23
+ ::SequelizeRails::Railties::LogSubscriber.backtrace_cleaner.add_filter { |line| line.gsub(Rails.root.to_s + File::SEPARATOR, "") }
24
+
25
+ # Config initialization
22
26
  config.app_generators.orm :sequelize_rails, migration: :sequel_migration
23
27
  config.sequel = ActiveSupport::OrderedOptions.new
24
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SequelizeRails
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequelize-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenaniah Cerny