Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle-show: fix 'if' statement #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bundler.el
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@
(interactive "sBundle Exec: ")
(run-bundled-command command))

(defvar bundle-gem-list-cache
(make-hash-table)
"Holds a hash table of gem lists per directory.")

;;;###autoload
(defun bundle-gemfile (&optional gemfile)
"Set BUNDLE_GEMFILE environment variable."
Expand Down Expand Up @@ -152,9 +156,9 @@
"Shows all gems that are part of the bundle, or the path to a given gem."
(interactive)
(let* ((ver (bundle-major-version))
(cmd (if (and ver (< 2 ver)
"bundle show"
"bundle list"))))
(cmd (if (and ver (< 2 ver))
"bundle show"
"bundle list")))
(bundle-command cmd)))

;;;###autoload
Expand Down Expand Up @@ -201,10 +205,6 @@ found."
bundler-stdout)
"/")))))

(defvar bundle-gem-list-cache
(make-hash-table)
"Holds a hash table of gem lists per directory.")

(cl-defun bundle-locate-gemfile (&optional (dir default-directory))
(let ((has-gemfile (directory-files dir nil "^Gemfile$"))
(is-root (equal dir "/")))
Expand Down