-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rails-7' into 'master'
ADD rails-7 support See merge request oelmekki/activerecord_any_of!44
- Loading branch information
Showing
18 changed files
with
301 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.bundle/ | ||
log/*.log | ||
pkg/ | ||
Gemfile.lock | ||
gemfiles/*.gemfile.lock | ||
spec/debug.log | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
image: "ruby:latest" | ||
|
||
stages: | ||
- test | ||
|
||
before_script: | ||
- gem install bundler | ||
- bundle install | ||
|
||
rspec: | ||
stage: test | ||
script: | ||
- bundle exec rspec | ||
artifacts: | ||
when: on_failure | ||
paths: | ||
- coverage | ||
|
||
rubocop: | ||
stage: test | ||
script: | ||
- bundle exec rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require: | ||
- rubocop-rspec | ||
- rubocop-rake | ||
|
||
AllCops: | ||
NewCops: enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,15 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec :path => File.expand_path('../', __FILE__) | ||
|
||
gem 'combustion', :github => 'pat/combustion', :branch => 'master' | ||
# frozen_string_literal: true | ||
|
||
platforms :jruby do | ||
gem 'activerecord-jdbcsqlite3-adapter', '>= 1.3.0.beta2' | ||
gem 'activerecord-jdbcmysql-adapter', '>= 1.3.0.beta2' | ||
gem 'jdbc-mysql' | ||
gem 'activerecord-jdbcpostgresql-adapter', '>= 1.3.0.beta2' | ||
gem 'jruby-openssl' | ||
end | ||
|
||
platforms :ruby do | ||
gem 'sqlite3' | ||
gem 'mysql2', (MYSQL2_VERSION if defined? MYSQL2_VERSION) | ||
gem 'pg' | ||
end | ||
|
||
platforms :rbx do | ||
gem 'rubysl', '~> 2.0' | ||
gem 'rubysl-test-unit' | ||
end | ||
source 'https://rubygems.org' | ||
|
||
# Add Oracle Adapters | ||
# gem 'ruby-oci8' | ||
# gem 'activerecord-oracle_enhanced-adapter' | ||
gemspec path: File.expand_path(__dir__) | ||
|
||
# Debuggers | ||
gem 'database_cleaner' | ||
gem 'pry' | ||
gem 'pry-nav' | ||
gem 'rake' | ||
gem 'rspec-rails' | ||
gem 'rubocop' | ||
gem 'rubocop-rake' | ||
gem 'rubocop-rspec' | ||
gem 'simplecov' | ||
gem 'sqlite3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
require "bundler/gem_tasks" | ||
task :default => :spec | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
task default: :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
$:.push File.expand_path("../lib", __FILE__) | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH.push File.expand_path('lib', __dir__) | ||
|
||
# Maintain your gem's version: | ||
require "activerecord_any_of/version" | ||
require 'activerecord_any_of/version' | ||
|
||
# Describe your gem and declare its dependencies: | ||
Gem::Specification.new do |s| | ||
s.name = "activerecord_any_of" | ||
s.name = 'activerecord_any_of' | ||
s.version = ActiverecordAnyOf::VERSION | ||
s.authors = ["Olivier El Mekki"] | ||
s.email = ["olivier@el-mekki.com"] | ||
s.homepage = "https://github.com/oelmekki/activerecord_any_of" | ||
s.authors = ['Olivier El Mekki'] | ||
s.email = ['olivier@el-mekki.com'] | ||
s.homepage = 'https://github.com/oelmekki/activerecord_any_of' | ||
s.summary = "Mongoid's any_of like implementation for activerecord" | ||
s.description = "Any_of allows to compute dynamic OR queries." | ||
s.description = 'Any_of allows to compute dynamic OR queries.' | ||
s.license = 'MIT' | ||
s.required_ruby_version = '>= 2.7.0' | ||
|
||
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"] | ||
s.test_files = Dir["spec/**/*"] | ||
s.files = Dir['{app,config,db,lib}/**/*'] + ['MIT-LICENSE', 'Rakefile', 'README.md'] | ||
|
||
s.add_dependency "activerecord", ">= 3.2.13", '< 6' | ||
s.add_dependency 'activerecord', '>= 7', '< 8' | ||
|
||
s.add_development_dependency 'rspec-rails', '~> 2.12' | ||
s.add_development_dependency 'rake', '~> 10' | ||
s.add_development_dependency 'combustion', '>= 0.5.1' | ||
s.add_development_dependency 'database_cleaner' | ||
s.metadata['rubygems_mfa_required'] = 'true' | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.