FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix bug with gem_excludes not being used on bundler gems by fzakaria · Pull Request #468 · jruby/warbler · GitHub

/ warbler Public
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rb  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 1 addition & 3 deletions lib/warbler/traits/bundler.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,8 @@ def add_bundler_files(jar)
filenames = []
gem_relative_path.each_filename { |f| filenames << f }

exclude_gems = true
unless filenames.empty?
full_gem_path = Pathname.new(::Bundler.install_path) + filenames.first
exclude_gems = false
end

if spec.groups.include?(:warbler_excluded)
Expand All @@ -122,7 +120,7 @@ def add_bundler_files(jar)

FileList[pattern].each do |src|
f = Pathname.new(src).relative_path_from(full_gem_path).to_s
next if exclude_gems && config.gem_excludes && config.gem_excludes.any? {|rx| f =~ rx }
next if config.gem_excludes && config.gem_excludes.any? {|rx| f =~ rx }
jar.files[apply_pathmaps(config, File.join(full_gem_path.basename, f), :git)] = src
end
end
Expand Down

Back | FazBrowse Home | New Git URL