Skip to content

Commit

Permalink
chore: use require_relative instead of require
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Oct 10, 2023
1 parent dc6fdb0 commit b1039b9
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.7, '3.0', '3.1', '3.2']
ruby: ['2.7', '3.0', '3.1', '3.2']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
ruby: [jruby, jruby-head]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
ruby: [2.5, 2.6]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_truffleruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
ruby: [truffleruby, truffleruby-head]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
50 changes: 25 additions & 25 deletions lib/trailblazer/finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
require "dry-types"
require "ostruct"

require "trailblazer/finder/utils/array"
require "trailblazer/finder/utils/hash"
require "trailblazer/finder/utils/string"
require "trailblazer/finder/utils/splitter"
require "trailblazer/finder/utils/extra"
require "trailblazer/finder/adapters/active_record/predicates"
require "trailblazer/finder/adapters/active_record/paging"
require "trailblazer/finder/adapters/active_record/sorting"
require "trailblazer/finder/adapters/kaminari/paging"
require "trailblazer/finder/adapters/will_paginate/paging"
require "trailblazer/finder/adapters/sequel/predicates"
require "trailblazer/finder/adapters/sequel/paging"
require "trailblazer/finder/adapters/sequel/sorting"
require "trailblazer/finder/adapters/basic/predicates"
require "trailblazer/finder/adapters/basic/paging"
require "trailblazer/finder/adapters/basic/sorting"
require "trailblazer/finder/activities/prepare"
require "trailblazer/finder/activities/process"
require "trailblazer/finder/activities/find"
require "trailblazer/finder/helpers/basic"
require "trailblazer/finder/helpers/sorting"
require "trailblazer/finder/dsl"
require "trailblazer/finder/find"
require "trailblazer/finder/base"
require "trailblazer/operation/finder"
require_relative "finder/utils/array"
require_relative "finder/utils/hash"
require_relative "finder/utils/string"
require_relative "finder/utils/splitter"
require_relative "finder/utils/extra"
require_relative "finder/adapters/active_record/predicates"
require_relative "finder/adapters/active_record/paging"
require_relative "finder/adapters/active_record/sorting"
require_relative "finder/adapters/kaminari/paging"
require_relative "finder/adapters/will_paginate/paging"
require_relative "finder/adapters/sequel/predicates"
require_relative "finder/adapters/sequel/paging"
require_relative "finder/adapters/sequel/sorting"
require_relative "finder/adapters/basic/predicates"
require_relative "finder/adapters/basic/paging"
require_relative "finder/adapters/basic/sorting"
require_relative "finder/activities/prepare"
require_relative "finder/activities/process"
require_relative "finder/activities/find"
require_relative "finder/helpers/basic"
require_relative "finder/helpers/sorting"
require_relative "finder/dsl"
require_relative "finder/find"
require_relative "finder/base"
require_relative "operation/finder"

module Trailblazer
class Finder
Expand Down

0 comments on commit b1039b9

Please sign in to comment.