diff options
author | Xavier Noria <fxn@hashref.com> | 2013-07-06 22:40:02 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-07-06 22:42:24 +0200 |
commit | 374fd6693a5aacccb3f5af33c4c1524cf109dd3b (patch) | |
tree | 7403f6ade209003854f14f5a631e47899f3e1ece /railties | |
parent | 7948d7890548a3e70d04dfed26497b391920b058 (diff) | |
download | rails-374fd6693a5aacccb3f5af33c4c1524cf109dd3b.tar.gz rails-374fd6693a5aacccb3f5af33c4c1524cf109dd3b.tar.bz2 rails-374fd6693a5aacccb3f5af33c4c1524cf109dd3b.zip |
fixes Rails version for the stable API [ci skip]
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/api/task.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/rails/api/task.rb b/railties/lib/rails/api/task.rb index c829873da4..edd2283182 100644 --- a/railties/lib/rails/api/task.rb +++ b/railties/lib/rails/api/task.rb @@ -135,12 +135,20 @@ module Rails def api_dir 'doc/rdoc' end + end + class EdgeTask < RepoTask def rails_version "master@#{`git rev-parse HEAD`[0, 7]}" end end + class StableTask < RepoTask + def rails_version + File.read('RAILS_VERSION').strip + end + end + class AppTask < Task def component_root_dir(gem_name) $:.grep(%r{#{gem_name}[\w.-]*/lib\z}).first[0..-5] |