Skip to content

Commit e159a1e

Browse files
authored
Merge pull request #2622 from ruby-grape/use_require_relative_in_gemspec
Use require_relative instead of $LOAD_PATH in gemspec
2 parents cc82601 + cbfe67c commit e159a1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* [#2595](https://github.com/ruby-grape/grape/pull/2595): Keep `within_namespace` as part of our internal api - [@ericproulx](https://github.com/ericproulx).
3636
* [#2596](https://github.com/ruby-grape/grape/pull/2596): Remove `namespace_reverse_stackable_with_hash` from public scope - [@ericproulx](https://github.com/ericproulx).
3737
* [#2621](https://github.com/ruby-grape/grape/pull/2621): Update upgrading notes regarding `return` usage and simplify endpoint execution - [@ericproulx](https://github.com/ericproulx).
38+
* [#2622](https://github.com/ruby-grape/grape/pull/2622): Use `require_relative` instead of `$LOAD_PATH` in gemspec - [@ericproulx](https://github.com/ericproulx).
3839
* Your contribution here.
3940

4041
### 2.4.0 (2025-06-18)

grape.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

3-
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
4-
require 'grape/version'
3+
require_relative 'lib/grape/version'
54

65
Gem::Specification.new do |s|
76
s.name = 'grape'

0 commit comments

Comments
 (0)