Skip to content

Commit

Permalink
Avoid using a global variable (#2)
Browse files Browse the repository at this point in the history
This change replaces require + $LOAD_PATH with require_relative so that
this gemspec file doesn't include any global variables.
  • Loading branch information
Yuma2000 authored Feb 6, 2025
1 parent e140632 commit 5208b01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions red-datastock.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ clean_white_space = lambda do |entry|
entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
require "datastock/version"
require_relative "lib/datastock/version"

Gem::Specification.new do |spec|
spec.name = "red-datastock"
Expand Down

0 comments on commit 5208b01

Please sign in to comment.