Skip to content

Instantly share code, notes, and snippets.

ruby-2.0.0-p0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Log file: /usr/local/rvm/log/ruby-2.0.0-p0/gemsets.initial.log
[2013-03-26 15:43:43] __rvm_with
__rvm_with ()
{
( __rvm_use "$1";
shift;
"$@" || return $? )
}
current path: /usr/local/rvm/src/ruby-2.0.0-p0
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
@rubys
rubys / gist:5715383
Last active December 18, 2015 02:59
require 'rubygems'
require 'gorp/test'
class BasicRailsTest < Gorp::TestCase
test "basic functionality" do
desc 'Create the application.'
rails 'depot'
desc 'Create a simple resource.'
@rubys
rubys / gist:5801812
Created June 18, 2013 00:46
live stream hang failure
class ProductsController < ApplicationController
before_action :set_product, only: [:show, :edit, :update, :destroy]
include ActionController::Live
before_action :authorize, only: [:edit, :destroy]
# GET /products
# GET /products.json
def index
@products = Product.all
end
@rubys
rubys / gist:5801817
Created June 18, 2013 00:48
live stream hang failure
xml.products do
@products.each do |product|
xml.product do
xml.title product.title
end
end
end
Version: 4.0.7
Date : 2013-07-07 13:27:35 -0400
--------- Apache processes ----------
PID PPID VMSize Private Name
-------------------------------------
1726 1 97.3 MB 0.6 MB /usr/sbin/apache2 -k start
12500 1726 96.8 MB 0.6 MB /usr/sbin/apache2 -k start
12542 1726 697.7 MB 1.0 MB /usr/sbin/apache2 -k start
12543 1726 505.5 MB 0.7 MB /usr/sbin/apache2 -k start
Running(6): curl --fail --location --max-redirs 10 https://get.rvm.io
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
100 184 100 184 0 0 32 0 0:00:05 0:00:05 --:--:-- 450
100 184 100 184 0 0 32 0 0:00:05 0:00:05 --:--:-- 449
100 184 100 184 0 0 15 0 0:00:12 0:00:11 0:00:01 15
100 184 100 184 0 0 14 0 0:00:13 0:00:12 0:00:01 0
ruby-head-n42891 - install
sh: 1: [[: not found
sh: 1: [[: not found
sh: 1: [[: not found
sh: 1: [[: not found
sh: 1: [[: not found
sh: 1: [[: not found
sh: 1: [[: not found
Warning! Requested ruby installation which requires another ruby available - installing one first.
#!/usr/bin/ruby
$:.unshift '/home/rubys/git/wunderbar/lib'
$:.unshift '/home/rubys/git/opal/lib'
$:.unshift '/home/rubys/git/opal-browser/lib'
### what "require 'wunderbar/opal-browser'" will ultimately do for you:
require 'wunderbar/opal'
require 'opal/browser'
@rubys
rubys / gist:6651139
Last active December 23, 2015 14:49
#!/usr/bin/ruby
require 'wunderbar/opal-jquery'
require 'nokogumbo'
_html do
_head do
_title 'Various stats'
end
_body do