From 3ee29561b32ed3eda06608c73919b64b642d1e22 Mon Sep 17 00:00:00 2001 From: Thomas Roehr Date: Fri, 4 May 2018 15:08:31 +0200 Subject: [PATCH] Fix expanding LOAD_PATH in gemspec Otherwise Grape::VERSION might refer to another, e.g., system wide installed gem version --- CHANGELOG.md | 1 + grape.gemspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b11cb2a1af..574c0c02fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ #### Fixes * [#1759](/~https://github.com/ruby-grape/grape/pull/1759): Update appraisal for rails_edge - [@zvkemp](/~https://github.com/zvkemp). +* [#1758](/~https://github.com/ruby-grape/grape/pull/1758): Fix expanding load_path in gemspec - [@2maz](/~https://github.com/2maz). * Your contribution here. ### 1.0.3 (4/23/2018) diff --git a/grape.gemspec b/grape.gemspec index 176efd1f73..a483dd8b7d 100644 --- a/grape.gemspec +++ b/grape.gemspec @@ -1,4 +1,4 @@ -$LOAD_PATH.push File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) require 'grape/version' Gem::Specification.new do |s|