Skip to content

Instantly share code, notes, and snippets.

View isabanin's full-sized avatar

Ilya Sabanin isabanin

  • Wildbit
  • Philadelphia, PA
View GitHub Profile
--- configure.ac (revision 1460229)
+++ configure.ac (working copy)
@@ -1103,18 +1103,18 @@
AC_PATH_PROG(PERL, perl, none)
if test -n "$RUBY"; then
- AC_PATH_PROG(RUBY, "$RUBY", none)
+ AC_PATH_PROG(RUBY, "$RUBY")
else
- AC_PATH_PROGS(RUBY, ruby ruby1.8 ruby18, none)
ArgumentError: wrong number of arguments (1 for 0)
from /Users/xxx/Projects/rails4_app/app/models/idea.rb:4:in `block (2 levels) in <class:Idea>'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.beta1/lib/active_support/option_merger.rb:17:in `call'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.beta1/lib/active_support/option_merger.rb:17:in `block in method_missing'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0.beta1/lib/active_record/associations/association_scope.rb:129:in `instance_exec'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0.beta1/lib/active_record/associations/association_scope.rb:129:in `eval_scope'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0.beta1/lib/active_record/associations/association_scope.rb:96:in `block (2 levels) in add_constraints'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activerecor
/usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/honeybadger-1.6.0/lib/honeybadger/rails/action_controller_catcher.rb:7:in `alias_method': undefined method `rescue_action_in_public' for class `ActionController::Base' (NameError)
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/honeybadger-1.6.0/lib/honeybadger/rails/action_controller_catcher.rb:7:in `included'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/honeybadger-1.6.0/lib/honeybadger/rails.rb:9:in `include'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/honeybadger-1.6.0/lib/honeybadger/rails.rb:9:in `initialize'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/honeybadger-1.6.0/lib/honeybadger/rails.rb:34:in `<top (required)>'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.3/lib/bundler/runtime.rb:72:in `require'
from /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.3/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /usr
/usr/local/lib/ruby/1.8/i686-darwin12.0.0/svn/ext/core.bundle: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0]
-- Control frame information -----------------------------------------------
c:0034 p:-17561308240168 s:0125 b:0125 l:000124 d:000124 TOP
c:0033 p:---- s:0123 b:0123 l:000122 d:000122 CFUNC :require
c:0032 p:0036 s:0119 b:0119 l:000118 d:000118 METHOD /Users/ilya/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0031 p:0023 s:0112 b:0112 l:000111 d:000111 TOP /usr/local/lib/ruby/1.8/svn/error.rb:21
c:0030 p:---- s:0110 b:0110 l:000109 d:000109 FINISH
c:0029 p:---- s:0108 b:0108 l:000107 d:000107 CFUNC :require
$ brew install subversion --ruby --use-gcc
==> Installing subversion dependency: neon
==> Downloading http://www.webdav.org/neon/neon-0.29.6.tar.gz
Already downloaded: /Library/Caches/Homebrew/neon-0.29.6.tar.gz
==> ./configure --prefix=/usr/local/Cellar/neon/0.29.6 --disable-debug --enable-shared --disable-static --with-ssl
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
Mac OS X already provides this program and installing another version in
{ Ilya: 1, Sabanin: 2 }
@isabanin
isabanin / CVE-2012-2694.rb
Created June 14, 2012 14:42
Monkey-patching CVE-2012-2694 and CVE-2012-2695 security vulnerabilities in Rails 2.3 series
#
# About the vulnerability:
#
# http://seclists.org/oss-sec/2012/q2/503
#
# This code is for Rails 2.3 series only. Tested on 2.3.14.
#
# Put this file into lib/rails_patches directory
# then include it in one of your config/initializers.
#
class Array
def to_sql(*anything)
bananas = map do |leaf|
leaf.to_sql(*anything)
end
SQLMonkey.sort_out_bananas(bananas)
end
end
@isabanin
isabanin / gist:962871
Created May 9, 2011 16:56
Rails time zones
# UTC -11:00
International Date Line West
Midway Island
Samoa
# UTC -10:00
Hawaii
# UTC -09:00
Alaska
set :application, "application"
set :deploy_to, "/var/www/application"
set :deploy_via, "remote_cache"
set :scm, :subversion
set :repository, "http://account.svn.beanstalkapp.com/repository/trunk"
set :scm_user, "deploy_dummy"
set :scm_password, File.read("#{ENV['HOME']}/.application_deployment_password").strip