Skip to content

Commit f7541cb

Browse files
authored
Merge pull request #77 from sebyx07/master
rails 8 support
1 parent c21a6d3 commit f7541cb

11 files changed

Lines changed: 34 additions & 177 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
matrix:
1616
gemfile:
1717
- Gemfile
18-
- Gemfile.6.1
18+
- Gemfile.7.1
1919
env:
2020
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Set up Ruby ${{ matrix.ruby-version }}
2424
uses: ruby/setup-ruby@v1
2525
with:
26-
ruby-version: 3.1
26+
ruby-version: 3.4.1
2727
- name: Install dependencies
2828
run: bundle install
2929
- name: Run tests

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ build-iPhoneSimulator/
4444

4545
# for a library or gem, you might want to ignore these files since the code is
4646
# intended to run in multiple environments; otherwise, check them in:
47+
Gemfile.7.1.lock
4748
Gemfile.lock
4849
# .ruby-version
4950
# .ruby-gemset

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

3-
gem "activerecord", ">=7"
4-
gem "sqlite3", "~> 1.4"
5+
gem 'activerecord', '>=8.0.0'
6+
57
# Specify your gem's dependencies in jit_preloader.gemspec
68
gemspec

Gemfile.6.0

Lines changed: 0 additions & 6 deletions
This file was deleted.

Gemfile.6.0.lock

Lines changed: 0 additions & 72 deletions
This file was deleted.

Gemfile.6.1.lock

Lines changed: 0 additions & 72 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://rubygems.org'
22

3-
gem "activerecord", "~>6.1"
3+
gem "activerecord", ">=7.1"
44

55
# Specify your gem's dependencies in jit_preloader.gemspec
66
gemspec

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Add this line to your application's Gemfile:
7272
gem 'jit_preloader'
7373
```
7474

75+
As of v8.0 of this gem, it requires Rails 7.1 or higher. If you need to use it with an older version of Rails use v3.1.0.
76+
7577
And then execute:
7678

7779
$ bundle

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
require "bundler/gem_tasks"
1+
# frozen_string_literal: true
22

3+
require 'bundler/gem_tasks'

jit_preloader.gemspec

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
# coding: utf-8
2-
lib = File.expand_path('../lib', __FILE__)
1+
# frozen_string_literal: true
2+
3+
lib = File.expand_path('lib', __dir__)
34
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
45
require 'jit_preloader/version'
56

67
Gem::Specification.new do |spec|
7-
spec.name = "jit_preloader"
8+
spec.name = 'jit_preloader'
89
spec.version = JitPreloader::VERSION
910
spec.authors = ["Kyle d'Oliveira"]
10-
spec.email = ["kyle.doliveira@clio.com"]
11-
spec.summary = %q{Tool to understand N+1 queries and to remove them}
12-
spec.description = %q{The JitPreloader has the ability to send notifications when N+1 queries occur to help guage how problematic they are for your code base and a way to remove all of the commons explicitly or automatically}
13-
spec.homepage = "https://github.com/clio/jit_preloader"
14-
spec.metadata["homepage_uri"] = spec.homepage
15-
spec.metadata["source_code_uri"] = spec.homepage
11+
spec.email = ['kyle.doliveira@clio.com']
12+
spec.summary = 'Tool to understand N+1 queries and to remove them'
13+
spec.description = 'The JitPreloader has the ability to send notifications when N+1 queries occur to help guage how problematic they are for your code base and a way to remove all of the commons explicitly or automatically'
14+
spec.homepage = 'https://github.com/clio/jit_preloader'
15+
spec.metadata['homepage_uri'] = spec.homepage
16+
spec.metadata['source_code_uri'] = spec.homepage
1617

17-
spec.license = "MIT"
18+
spec.license = 'MIT'
1819

1920
spec.files = `git ls-files -z`.split("\x0")
2021
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
2122
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22-
spec.require_paths = ["lib"]
23+
spec.require_paths = ['lib']
2324

24-
spec.add_dependency "activerecord", "< 8"
25-
spec.add_dependency "activesupport"
25+
spec.add_dependency 'activerecord', '>= 7.1', '< 9'
26+
spec.add_dependency 'activesupport'
2627

27-
spec.add_development_dependency "bundler"
28-
spec.add_development_dependency "rake", "~> 13.0"
29-
spec.add_development_dependency "rspec"
30-
spec.add_development_dependency "database_cleaner"
31-
spec.add_development_dependency "sqlite3"
32-
spec.add_development_dependency "byebug"
33-
spec.add_development_dependency "db-query-matchers"
28+
spec.add_development_dependency 'bundler'
29+
spec.add_development_dependency 'byebug'
30+
spec.add_development_dependency 'database_cleaner'
31+
spec.add_development_dependency 'db-query-matchers'
32+
spec.add_development_dependency 'rake', '~> 13.0'
33+
spec.add_development_dependency 'rspec'
34+
spec.add_development_dependency 'sqlite3'
3435
end

0 commit comments

Comments
 (0)