Skip to content

Instantly share code, notes, and snippets.

View cookrn's full-sized avatar
👻

Ryan Cook cookrn

👻
View GitHub Profile
abstract (1.0.0)
actionmailer (3.0.0.beta3, 2.3.8)
actionpack (3.0.0.beta3, 2.3.8)
activemodel (3.0.0.beta3)
activerecord (3.0.0.beta3, 2.3.8)
activeresource (3.0.0.beta3, 2.3.8)
activesupport (3.0.0.beta3, 2.3.8)
arel (0.3.3)
awesome_print (0.2.1)
builder (2.1.2)
abstract (1.0.0)
actionmailer (3.0.0.beta3, 2.3.8)
actionpack (3.0.0.beta3, 2.3.8)
activemodel (3.0.0.beta3)
activerecord (3.0.0.beta3, 2.3.8)
activeresource (3.0.0.beta3, 2.3.8)
activesupport (3.0.0.beta3, 2.3.8)
arel (0.3.3)
awesome_print (0.2.1)
builder (2.1.2)
@cookrn
cookrn / oauth-plugin-0.4.0.pre1-spec-failures.txt
Created November 25, 2010 20:14
The spec test failures gathered after installing the oauth-plugin oauth2 provider generator code on a base rails3 app
$ bundle exec rake spec
(in /Users/ryancook/Workspace/prologue_oauth2)
DEPRECATION WARNING: Rake tasks in /Users/ryancook/Workspace/prologue_oauth2/vendor/plugins/oauth-plugin/tasks/oauth_tasks.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /Users/ryancook/Workspace/prologue_oauth2/Rakefile:7)
/Users/ryancook/Developer/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -S bundle exec rspec "./spec/controllers/admin/dashboard_controller_spec.rb" "./spec/controllers/admin/users_controller_spec.rb" "./spec/controllers/home_controller_spec.rb" "./spec/controllers/oauth_clients_controller_spec.rb" "./spec/controllers/oauth_controller_spec.rb" "./spec/models/client_application_spec.rb" "./spec/models/oauth2_token_spec.rb" "./spec/models/oauth2_verifier_spec.rb" "./spec/models/oauth_nonce_spec.rb" "./spec/models/oauth_token_spec.rb"
DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/ryancook/Workspace/prologue_oauth2/vendor/plugins/oauth-plugin/rails/init.rb. (called from <t
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#keepalive_timeout 0;
keepalive_timeout 65;
<!-- ## VIEW PARTIAL FILE _sub_menu.html.erb -->
<% content_for :sub_menu do %>
<ul id="sub_nav">
<% # Default tab helper function always on for fancy_things sub-tab so <li> constructed manually below %>
<li class="<%= ( params[:action] == "index" ) ? "selected" : "" %>"><%= link_to t("fancy_things") , admin_fancy_things_path %></li>
<%= tab :new_fancy_thing , :route => :new_admin_fancy_thing , :match_path => '/fancy_things/new' , :css_class => 'last' %>
</ul>
<% end %>
<!-- ## VIEW PARTIAL FILE _form.html.erb -->
@cookrn
cookrn / console.out
Created April 8, 2011 16:14
rvm errors on upgrade from 1.2.x to 1.6.0
/Users/ryancook/Developer/.rvm/scripts/rvm:97: command not found: rvm_error
/Users/ryancook/Developer/.rvm/scripts/rvm:119: command not found: __rvm_conditionally_add_bin_path
~ » Workspace/xyz/cookrn/xyz-core-api
~/Workspace/xyz/cookrn/xyz-core-api » rvm info [develop]
rvm:12: command not found: __rvm_cleanse_variables
@cookrn
cookrn / env.rb
Created April 12, 2011 00:00
trace from "gem install thin --trace"
RubyGems Environment:
- RUBYGEMS VERSION: 1.7.2
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-darwin10.7.0]
- INSTALLATION DIRECTORY: /Users/ryancook/Developer/.rvm/gems/ruby-1.9.2-p180@my_proj
- RUBY EXECUTABLE: /Users/ryancook/Developer/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
- EXECUTABLE DIRECTORY: /Users/ryancook/Developer/.rvm/gems/ruby-1.9.2-p180@my_proj/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-10
- GEM PATHS:
@cookrn
cookrn / image.rb
Created April 25, 2011 21:02
Simple Mount Classes With CarrierWave
class Image
extend CarrierWave::Mount
mount_uploader :image , ImageUploader
end
@cookrn
cookrn / error.out
Created April 30, 2011 21:11
Cinderella Error
INFO: Installing homebrew[git] version 1.7.5
[Sat, 30 Apr 2011 15:08:58 -0600] ERROR: script[updating homebrew from github] (/Users/ryancook/.cinderella/cookbooks/homebrew/recipes/default.rb:59:in `from_file') had an error:
"bash" "/var/folders/qA/qA-aECR1F4GtR+JLdwoQe++++TI/-Tmp-/chef-script20110430-6842-1e4llqv-0" returned 1, expected 0
/Library/Ruby/Gems/1.8/gems/chef-0.9.16/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures'
/Library/Ruby/Gems/1.8/gems/chef-0.9.16/bin/../lib/chef/mixin/command.rb:131:in `run_command'
/Library/Ruby/Gems/1.8/gems/chef-0.9.16/bin/../lib/chef/provider/execute.rb:49:in `action_run'
/Library/Ruby/Gems/1.8/gems/chef-0.9.16/bin/../lib/chef/provider/script.rb:33:in `action_run'
/Library/Ruby/Gems/1.8/gems/chef-0.9.16/bin/../lib/chef/resource.rb:395:in `send'
/Library/Ruby/Gems/1.8/gems/chef-0.9.16/bin/../lib/chef/resource.rb:395:in `run_action'
/Library/Ruby/Gems/1.8/gems/chef-0.9.16/bin/../lib/chef/runner.rb:53:in `run_action'
@cookrn
cookrn / other_resource_presenter.rb
Created May 3, 2011 18:51
Presenters As A Solution To as_json Woes In Rails APIs
# app/presenters/api/v1/other_resource_presenter.rb
class Api::V1::OtherResourcePresenter
attr_reader :other_resource
def initialize( other_resource )
@other_resource = other_resource
end
def as_json( include_root = false )