| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I was not able to pass specs, neither in travis nor my pc. Force-pushed to try again, but it was unsuccessful |
Sorry, something went wrong.
| task @name do | ||
| rm_f config.compiled_ruby_files.map {|f| f.sub(/\.rb$/, '.class') } | ||
| extensions = config.compiled_ruby_files&.map { |f| File.extname(f) }&.uniq || ['.rb'] | ||
| regex_extensions = extensions.map { |extension| extension.sub('.', '\.') }.join('|') |
There was a problem hiding this comment.
RegExp.union is pretty great:
extensions = Pathname.glob("config/**/*").map(&:extname).uniq
# [".pem", ".rb", ".yml", ".ignore", "", ".md", ".markdown", ".json"]
Regexp.union(extensions)
# /\.pem|\.rb|\.yml|\.ignore||\.md|\.markdown|\.json/
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When the option compiled_ruby_files is personalized to use different extensions, for instance, .rake files. They are removed each time warble is called.
Problem was in lib/warbler/task.rb where every file not ended in .rb were being removed.