Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved ruby and rails projects

  - removed relevant files from rails project, only
    irrelevant should be ignored
  - add .ruby-version and .rvenv-version and *.gemspec as
    ruby project markers
  • Loading branch information...
commit f41fc1309e3b9137e8faa15079dd6dc628a036e7 1 parent f5f6765
@antono antono authored committed
Showing with 6 additions and 21 deletions.
  1. +1 −20 lang/eproject-ruby-on-rails.el
  2. +5 −1 lang/eproject-ruby.el
View
21 lang/eproject-ruby-on-rails.el
@@ -3,26 +3,7 @@
;; Ruby on Rails project
(define-project-type ruby-on-rails (generic)
(and (look-for "Gemfile") (look-for "config/application.rb"))
- :relevant-files ("\.rb$"
- "\.coffee$"
- "\.js$"
- "\.sass$"
- "\.scss$"
- "\.css$"
- "\.less$"
- "\.haml$"
- "\.slim$"
- "\.erb$"
- "\.ru$"
- "\.yml$"
- "\.yaml$"
- "\.feature$"
- "Gemfile$"
- "Capfile$"
- "\.ru$"
- "README\..*$")
- :irrelevant-files ("tmp/.*"
- "log/.*")
+ :irrelevant-files ("app/assets/images/.*" "tmp/.*" "log/.*" "public/.*" "vendor/.*" ".*\\.sqlite?")
:main-file "Gemfile")
(provide 'eproject-ruby-on-rails)
View
6 lang/eproject-ruby.el
@@ -3,6 +3,10 @@
(define-project-type ruby (generic)
(or (look-for "Rakefile")
(look-for "Gemfile")
- (look-for ".rmvrc")))
+ (look-for "\.rmvrc")
+ (look-for "\.ruby-version")
+ (look-for "\.rbenv-version")
+ (look-for ".*\\.gemspec"))
+ :irrelevant-files (".*~"))
(provide 'eproject-ruby)
Please sign in to comment.
Something went wrong with that request. Please try again.