brakeman gem doesn't include lib/brakeman/brakeman.rake #69

Closed
antage opened this Issue Apr 5, 2012 · 0 comments

Projects

None yet

2 participants

@antage
antage commented Apr 5, 2012

brakeman-1.5.2 doesn't consist brakeman.rake file:

$ ls vendor/gems/ruby/1.9.1/gems/brakeman-1.5.2/lib/brakeman/
call_index.rb  checks  checks.rb  format  options.rb  processor.rb  processors  report.rb  rescanner.rb  scanner.rb  tracker.rb  util.rb  version.rb  warning.rb

I get error when invoke brakeman --rake:

$ brakeman --rake
/home/antage/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:1515:in `stat': No such file or directory - /home/antage/workspace/project/vendor/gems/ruby/1.9.1/gems/brakeman-1.5.2/lib/brakeman/brakeman.rake (Errno::ENOENT)
    from /home/antage/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:1515:in `block in fu_each_src_dest'
    from /home/antage/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:1531:in `fu_each_src_dest0'
    from /home/antage/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:1513:in `fu_each_src_dest'
    from /home/antage/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:395:in `cp'
    from /home/antage/workspace/project/vendor/gems/ruby/1.9.1/gems/brakeman-1.5.2/lib/brakeman.rb:193:in `install_rake_task'
    from /home/antage/workspace/project/vendor/gems/ruby/1.9.1/gems/brakeman-1.5.2/bin/brakeman:26:in `<top (required)>'
    from bin/brakeman:16:in `load'
    from bin/brakeman:16:in `<main>'

Oneline patch for brakeman.gemspec can solve this issue:

-   s.files = ["bin/brakeman", "WARNING_TYPES", "FEATURES", "README.md"] + Dir["lib/**/*.rb"] + Dir["lib/brakeman/format/*.css"]
+   s.files = ["bin/brakeman", "WARNING_TYPES", "FEATURES", "README.md"] + Dir["lib/**/*.rb"] + Dir["lib/**/*.rake"] + Dir["lib/brakeman/format/*.css"]
@presidentbeef presidentbeef pushed a commit that closed this issue Apr 5, 2012
Justin Collins Add rake file to gemspec
Fixes #69

Thanks @antage
61ff187
@presidentbeef presidentbeef locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.