summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-04-08 08:52:56 +0000
committerBundlerbot <bot@bundler.io>2019-04-08 08:52:56 +0000
commit48e767da514bb2280b7694a97797eab3904f0442 (patch)
tree7569f8b30f5f9e7f046c72ba4244c75afe76d5db
parent94ef6afd3ebd84ef99893bbd3cd69fccea0f55d4 (diff)
parent8505cc2f70753d51cb322dc5e60909a1903dac6e (diff)
downloadbundler-48e767da514bb2280b7694a97797eab3904f0442.tar.gz
Merge #7104
7104: Add missing method to rake file r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was any Rake task depending on the `:build_metadata` task is currently failing with ``NameError: undefined local variable or method `bundler_spec' for main:Object``. For example, the release or build tasks. ### What was your diagnosis of the problem? My diagnosis was that I probably broke this during the development environment refactoring. ### What is your fix for the problem, implemented in this PR? My fix is to add the missing method to the file that needs it. ### Why did you choose this fix out of the possible options? I chose this fix because it works and it restores working tasks. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
-rw-r--r--task/build_metadata.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/task/build_metadata.rake b/task/build_metadata.rake
index f899562b46..55ffaf4ba7 100644
--- a/task/build_metadata.rake
+++ b/task/build_metadata.rake
@@ -1,5 +1,9 @@
# frozen_string_literal: true
+def bundler_spec
+ Gem::Specification.load("bundler.gemspec")
+end
+
def write_build_metadata(build_metadata)
build_metadata_file = "lib/bundler/build_metadata.rb"