Skip to content

Commit

Permalink
inf-ruby-console-gem: Only try to load Ruby files
Browse files Browse the repository at this point in the history
  • Loading branch information
dgutov committed Jun 17, 2016
1 parent db89398 commit 4d82095
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inf-ruby.el
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,8 @@ Gemfile, it should use the `gemspec' instruction."
(setq args (concat " -r " feature))
;; Let's require all non-directory files under lib, instead.
(dolist (item (directory-files "lib"))
(unless (file-directory-p (format "lib/%s" item))
(when (and (not (file-directory-p (format "lib/%s" item)))
(string-match-p "\\.rb\\'" item))
(push item files)))
(setq args
(mapconcat
Expand Down

0 comments on commit 4d82095

Please sign in to comment.