This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ rake version:bump:patch | |
| (in /Users/nichoj/Projects/clearance) | |
| Gem bumped to 0.2.4 | |
| (master) ~/Projects/clearance | |
| $ rake version:bump:minor | |
| (in /Users/nichoj/Projects/clearance) | |
| Gem bumped to 0.3.0 | |
| (master) ~/Projects/clearance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| begin | |
| require 'jeweler' | |
| Jeweler.gemspec = Gem::Specification.new do |s| | |
| s.name = "jeweler" | |
| s.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub" | |
| s.email = "josh@technicalpickles.com" | |
| s.homepage = "http://github.com/technicalpickles/jeweler" | |
| s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub" | |
| s.authors = ["Josh Nichols", "Dan Croak"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def mutual_relations(relationship_type_name, other_owner, opts = {}) | |
| if current_user == self | |
| [] | |
| else | |
| relationship_type = RelationshipType[relationship_type_name] | |
| Owner.find :all, mutual_relation_query(relationship_type, other_owner, opts)) | |
| end | |
| end | |
| def mutual_relation_query(relationship_type, other_owner, opts = {}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DownloadsController < ApplicationController | |
| before_filter :redirect_to_root, :unless => :can_create?, :only => [:new, :create] | |
| before_filter :redirect_to_root, :unless => :can_edit?, :only => [:edit, :update, :destroy] | |
| resources_controller_for :downloads | |
| def redirect_to_root | |
| flash[:notice] = "DENIED!!!11one" | |
| redirect_to root_url | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= form.error_messages %> | |
| <dl> | |
| <dt><%= form.label :name %></dt> | |
| <dd><%= form.text_field :name %></dd> | |
| <dt><%= form.label :description %></dt> | |
| <dd><%= form.text_area :description %></dd> | |
| <dt><%= form.label :asset %></dt> | |
| <dd><%= form.file_field :asset %></dd> | |
| </dl> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "rubygems" | |
| require "sinatra" | |
| helpers do | |
| def stylesheet_link_tag(*sources) | |
| fragments = sources.map do |source| | |
| "<link href='/stylesheets/#{source}.css' rel='stylesheet' type='text/css' />" | |
| end | |
| fragments.join | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @include blueprint_grid_mixin.sass | |
| #header | |
| +span-24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nichoj@nichoj-macbookpro $ ssh deploy@flockup | |
| Last login: Sat Oct 18 14:17:46 2008 from static-68-162-253-244.bos.east.verizon.net | |
| deploy@li44-9 ~ $ which rake | |
| /opt/ruby-enterprise-1.8.6-20080810/bin/rake | |
| deploy@li44-9 ~ $ echo ${PATH} | |
| /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/ruby-enterprise-1.8.6-20080810/bin/:/opt/ruby-enterprise-1.8.6-20080810/bin/ | |
| nichoj@nichoj-macbookpro 14:18:45 $ ssh deploy@flockup which rake | |
| which: no rake in (/usr/bin:/bin:/usr/sbin:/sbin) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Processing FlocksController#index (for 127.0.0.1 at 2008-10-19 09:24:59) [GET] | |
| Session ID: BAh7CCIdZml2ZXJ1bnNfdHVuZXVwX2xhc3RfdXJpIiZodHRwOi8vbG9jYWxo | |
| b3N0OjMwMDAvZmxvY2tlcnMvNjI6DGNzcmZfaWQiJTJjZTU4MjJlZTI1NzUx | |
| NTM3NDEyYTcxMThjNjAxNmE2IgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy | |
| OjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--6532d2fef306f9991c7926aca1432338ec487817 | |
| Parameters: {"action"=>"index", "controller"=>"flocks"} | |
| ArgumentError (wrong number of arguments (2 for 1)): | |
| /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/fiveruns_tuneup-0.8.17/lib/fiveruns/tuneup/instrumentation/utilities.rb:95:in `respond_to?' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (in /Users/nichoj/Projects/flockup) | |
| Initialized empty Git repository in /home/deploy/apps/flockup/scm/repo/.git/ | |
| Initialized empty Git repository in /home/deploy/apps/flockup/scm/repo/.git/ | |
| fatal: git checkout: updating paths is incompatible with switching branches/forcing | |
| Did you intend to checkout 'origin/railsrumble' which can not be resolved as commit? | |
| rake aborted! | |
| execution failed with status 128: ssh deploy@twitterflocks.r08.railsrumble.com cd /home/deploy/apps/flockup/scm && rm -rf repo && git clone git@github.com:railsrumble/the-presidential-vampire-league.git repo && cd repo && git checkout -f -b deployed-origin/railsrumble origin/railsrumble && mkdir -p /home/deploy/apps/flockup/releases/20081019230547 && git archive HEAD | (cd /home/deploy/apps/flockup/releases/20081019230547 && tar xf -) && chmod -R g+w /home/deploy/apps/flockup/releases/20081019230547 && rm -rf /home/deploy/apps/flockup/releases/20081019230547/log /home/deploy/apps/flockup/releases/20081019230547/public/system /home/deploy |