Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: moved hooks to a separate project to be reused by esse-sequel #13

Merged
merged 3 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v4
- name: Install sqlite3
run: sudo apt-get install -y libsqlite3-dev
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.3.9 - 2025-01-21
* Move hooks to a separate gem, [esse-hooks](https://github.com/marcosgz/esse-hooks)

## 0.3.8 - 2024-08-08
* Add `connect_with:` option to the collection definition.
* Adjust UpdateLazyAttribute callback to not use keyword arguments for better compatibility with older versions of Ruby.
Expand Down
11 changes: 7 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PATH
remote: .
specs:
esse-active_record (0.3.8)
esse-active_record (0.3.9)
activerecord (>= 4.2, < 8)
esse (>= 0.3.0)
esse-hooks

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -39,9 +40,11 @@ GEM
elasticsearch-transport (7.17.10)
faraday (>= 1, < 3)
multi_json
esse (0.3.4)
esse (0.3.5)
multi_json
thor (>= 0.19)
esse-hooks (0.0.1)
esse (>= 0.3.0)
esse-rspec (0.0.6)
esse (>= 0.2.4)
rspec (>= 3)
Expand Down Expand Up @@ -122,7 +125,7 @@ GEM
standard-performance (1.0.1)
lint_roller (~> 1.0)
rubocop-performance (~> 1.16.0)
thor (1.3.1)
thor (1.3.2)
thread_safe (0.3.6)
tzinfo (1.2.11)
thread_safe (~> 0.1)
Expand Down Expand Up @@ -157,4 +160,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.3.22
2.3.26
7 changes: 5 additions & 2 deletions ci/Gemfile.rails-5.2.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PATH
remote: ..
specs:
esse-active_record (0.3.8)
esse-active_record (0.3.9)
activerecord (>= 4.2, < 8)
esse (>= 0.3.0)
esse-hooks

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -45,6 +46,8 @@ GEM
esse (0.3.4)
multi_json
thor (>= 0.19)
esse-hooks (0.0.1)
esse (>= 0.3.0)
esse-rspec (0.0.6)
esse (>= 0.2.4)
rspec (>= 3)
Expand Down Expand Up @@ -156,4 +159,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.3.22
2.3.26
7 changes: 5 additions & 2 deletions ci/Gemfile.rails-6.0.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PATH
remote: ..
specs:
esse-active_record (0.3.8)
esse-active_record (0.3.9)
activerecord (>= 4.2, < 8)
esse (>= 0.3.0)
esse-hooks

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -44,6 +45,8 @@ GEM
esse (0.3.4)
multi_json
thor (>= 0.19)
esse-hooks (0.0.1)
esse (>= 0.3.0)
esse-rspec (0.0.6)
esse (>= 0.2.4)
rspec (>= 3)
Expand Down Expand Up @@ -157,4 +160,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.3.22
2.3.26
7 changes: 5 additions & 2 deletions ci/Gemfile.rails-6.1.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PATH
remote: ..
specs:
esse-active_record (0.3.8)
esse-active_record (0.3.9)
activerecord (>= 4.2, < 8)
esse (>= 0.3.0)
esse-hooks

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -44,6 +45,8 @@ GEM
esse (0.3.4)
multi_json
thor (>= 0.19)
esse-hooks (0.0.1)
esse (>= 0.3.0)
esse-rspec (0.0.6)
esse (>= 0.2.4)
rspec (>= 3)
Expand Down Expand Up @@ -157,4 +160,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.3.22
2.3.26
7 changes: 5 additions & 2 deletions ci/Gemfile.rails-7.0.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PATH
remote: ..
specs:
esse-active_record (0.3.8)
esse-active_record (0.3.9)
activerecord (>= 4.2, < 8)
esse (>= 0.3.0)
esse-hooks

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -44,6 +45,8 @@ GEM
esse (0.3.4)
multi_json
thor (>= 0.19)
esse-hooks (0.0.1)
esse (>= 0.3.0)
esse-rspec (0.0.6)
esse (>= 0.2.4)
rspec (>= 3)
Expand Down Expand Up @@ -157,4 +160,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.3.22
2.3.26
7 changes: 5 additions & 2 deletions ci/Gemfile.rails-7.1.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PATH
remote: ..
specs:
esse-active_record (0.3.8)
esse-active_record (0.3.9)
activerecord (>= 4.2, < 8)
esse (>= 0.3.0)
esse-hooks

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -51,6 +52,8 @@ GEM
esse (0.3.4)
multi_json
thor (>= 0.19)
esse-hooks (0.0.1)
esse (>= 0.3.0)
esse-rspec (0.0.6)
esse (>= 0.2.4)
rspec (>= 3)
Expand Down Expand Up @@ -165,4 +168,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.3.22
2.3.26
1 change: 1 addition & 0 deletions esse-active_record.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_dependency 'esse', '>= 0.3.0'
spec.add_dependency 'esse-hooks', '>= 0.0.0'
spec.add_dependency 'activerecord', '>= 4.2', '< 8'
spec.add_development_dependency 'awesome_print'
spec.add_development_dependency 'dotenv'
Expand Down
1 change: 1 addition & 0 deletions lib/esse/active_record.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'esse'
require 'esse-hooks'
require 'active_record'
require_relative 'active_record/version'
require_relative 'active_record/callbacks'
Expand Down
Loading
Loading