waldit 0.0.11 → 0.0.12

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
  SHA256:
3
- metadata.gz: d97512d549606ea52367df080d5c7fe181f894595d804b31fe578ed5f1f26410
4
- data.tar.gz: 9df7afe8818119e18391fd8b6284a2bf4ab40f87a75d0ca47979507e708395b8
3
+ metadata.gz: a3cb369606cb9c2a97b853b3f0d219c015cc92fdf0fcbbdb8089de5292fcebd9
4
+ data.tar.gz: d8a1c90d307333c38bae27e66164dbbd81f069b97bc6af390959802b073d6ca7
5
5
  SHA512:
6
- metadata.gz: aa935a49d7f9356ce6f0dc924b3fbf1bd9ba5c06923d45b893c92fb3e15df373dc6ce83d729b644bc0c9e6bef31f69f0804cf36e1acf5967ea66945da8e3f475
7
- data.tar.gz: d196dc919ab630fb49f40e0c556c196948332aab5b672d68115d6a0dfb04e8c7691ff1270bd1c742eebbef11465c6034edd20d4ef05e413ce73574a410f3c6a4
6
+ metadata.gz: ef09522f4b9b1bb22794726625491a04784b402ff38f8da791349b36bed4fae5d5764e4c5493b6b571ee3b0b05350efb178b8793a3201ad0989851ae32e7e9d2
7
+ data.tar.gz: 50b8c47faff3cd316f4dabd84221d9729484f41720d27d7768bae44539ec4058d840ca183e74eca9583119ecc8fe24c7429416460c392f6e76d43b1c24529cb8
data/README.md CHANGED
@@ -31,11 +31,11 @@ Or install it yourself as:
31
31
 
32
32
  1. **Configure your database adapter:**
33
33
 
34
- First step is to configure in your `config/database.yml` and change your adapter to `postgresqlwaldit`, which is a special adapter that allows injecting `waldit` contextual information on your transactions:
34
+ First step is to configure in your `config/database.yml` and change your adapter to `waldit`, which is a special adapter that allows injecting `waldit` contextual information on your transactions:
35
35
 
36
36
  ```yaml
37
37
  default: &default
38
- adapter: postgresqlwaldit
38
+ adapter: waldit
39
39
  # ...
40
40
  ```
41
41
 
@@ -5,13 +5,16 @@ require "rails/railtie"
5
5
  module Waldit
6
6
  class Railtie < Rails::Railtie
7
7
  config.before_configuration do
8
- ["waldit", "postgresqlwaldit"].each do |adapter_name|
9
- ActiveRecord::ConnectionAdapters.register(
10
- adapter_name,
11
- "Waldit::PostgreSQLAdapter",
12
- "waldit/postgresql_adapter",
13
- )
14
- end
8
+ ActiveRecord::ConnectionAdapters.register(
9
+ "waldit",
10
+ "Waldit::PostgreSQLAdapter",
11
+ "waldit/postgresql_adapter",
12
+ )
13
+
14
+ ActiveRecord::Tasks::DatabaseTasks.register_task(
15
+ "waldit",
16
+ "ActiveRecord::Tasks::PostgreSQLDatabaseTasks",
17
+ )
15
18
 
16
19
  require_relative "migration"
17
20
  ActiveRecord::Migration.include Waldit::Migration
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Waldit
4
- VERSION = "0.0.11"
4
+ VERSION = "0.0.12"
5
5
  end
data/rbi/waldit.rbi CHANGED
@@ -2,7 +2,7 @@
2
2
  module Waldit
3
3
  extend T::Sig
4
4
  extend Waldit::Context
5
- VERSION = "0.0.11"
5
+ VERSION = "0.0.12"
6
6
 
7
7
  class << self
8
8
  sig { returns(String) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waldit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Navarro