Output:
$ rake test_task test hello whatsup?
["test", "hello", "whatsup?"]
Output:
$ rake test_task test hello whatsup?
["test", "hello", "whatsup?"]
class AddDeviseColumnsToUser < ActiveRecord::Migration | |
def self.up | |
change_table :users do |t| | |
t.string :authentication_token | |
end | |
end | |
def self.down | |
change_table :users do |t| | |
t.remove :authentication_token | |
end |
(function(a){function b(a){var b=$.helpers,f=b.getPlayerTrack(b.getPlayerNode(a)),g=a.find(".actionbar");if(!f){return}if(a.hasClass("player")){if(g.length){c(f,g)}else{d(f,a)}}else{e(f,a)}}function c(a,b){var c=b.find(".download, .mock-download");if(!c.length||c.hasClass("disabled")){var d=$('<a class="pl-button mock-download"><span>Download</span></a>').css({backgroundImage:"url(http://soundcloud.com/images/icons_mini.png?unicorn26)",backgroundRepeat:"no-repeat",backgroundPosition:"-77px -236px",paddingLeft:"18px"}).attr("download",a.title+".mp3");b.find(".primary").append(d);d.attr("href",a.streamUrl)}}function d(a,b){var d=null;if(b.hasClass("nano")){d=f(b.closest(".track-title").find(".track")).css({marginLeft:"18px"})}else if(b.hasClass("small")){d=f(b.find(".container"))}if(d){c(a,d)}}function e(a,b){var c=b.find(".actions"),d=c.find(".download");if(!d.length){c.prepend('<a href="'+a.streamUrl+'" class="download pl-button" download="'+a.title+'" title="'+a.title+'">Download track</a>')}}function f(a){v |
Gitlab uses Grit for the network graph, and Grit relies on the master branch for this functionality. Without a master branch the graph shows up blank, however, you can get it to show the graph for your default branch only (instead of all branches as it would normally show) by changing the following line in lib/graph_commit.rb: | |
commits = Grit::Commit.find_all(@repo, nil, {:max_count => 650}) | |
With this: | |
commits = Grit::Commit.find_all(@repo, project.root_ref, {:max_count => 650}) | |
def archive | |
unless can?(current_user, :download_code, @project) | |
render_404 and return | |
end | |
ref = params[:ref] || @project.root_ref | |
commit = @project.commit(ref) | |
render_404 and return unless commit | |
# Build file path |