Class: Rails::API::EdgeTask

Inherits:
RepoTask show all
Defined in:
railties/lib/rails/api/task.rb

Constant Summary

Constants inherited from Task

Task::RDOC_FILES

Instance Method Summary collapse

Methods inherited from RepoTask

#api_dir, #component_root_dir, #configure_sdoc

Methods inherited from Task

#api_main, #configure_rdoc_files, #configure_sdoc, #desc, #initialize, #setup_horo_variables

Constructor Details

This class inherits a constructor from Rails::API::Task

Instance Method Details

#badge_versionObject



210
211
212
# File 'railties/lib/rails/api/task.rb', line 210

def badge_version
  "edge"
end

#canonical_urlObject



214
215
216
# File 'railties/lib/rails/api/task.rb', line 214

def canonical_url
  "https://edgeapi.rubyonrails.org"
end

#rails_versionObject



206
207
208
# File 'railties/lib/rails/api/task.rb', line 206

def rails_version
  "main@#{`git rev-parse HEAD`[0, 7]}"
end