This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
desc "precompile the assets" | |
task :precompile_assets, :roles => :web, :except => { :no_release => true } do | |
run "cd #{current_path}; rm -rf public/assets/*" | |
run "cd #{current_path}; RAILS_ENV=production bundle exec rake assets:precompile" | |
end |
module BootstrapPaginationHelper | |
class LinkRenderer < WillPaginate::ActionView::LinkRenderer | |
protected | |
def page_number(page) | |
unless page == current_page | |
link(page, page, :rel => rel_value(page)) | |
else | |
link(page, "#", :class => 'active') | |
end |
diff --git a/app/account.rb b/app/account.rb | |
index a108685..c89ad34 100644 | |
--- a/app/account.rb | |
+++ b/app/account.rb | |
@@ -1,4 +1,22 @@ | |
+require 'open-uri' | |
+ | |
module Sol | |
+ class Url | |
+ def self.get(url) |
/* | |
Go on your labels page (https://github.com/user/repo/labels) | |
Edit the following label array | |
or | |
Use this snippet to export github labels (https://gist.github.com/MoOx/93c2853fee760f42d97f) | |
and replace it | |
Paste this script in your console | |
Press Enter!! |
After migrating from heroku to dokku, we had to also chance codeship so we deploy to dokku. I followed the following steps to successfully deploy to dokku.
cat /tmp/codeship_projectname.pub | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
#!/usr/bin/env ruby | |
def open_project | |
puts "Openning project page" | |
`open #{project_url}` | |
end | |
def open_issue | |
return unless issue_number = branch_name.match(/\d+/)[0] |