Skip to content

Instantly share code, notes, and snippets.

@christopherdbull
christopherdbull / gist:1329819
Created November 1, 2011 03:38
Rspec 1.9.3 error
/.rvm/gems/ruby-1.9.3-p0@buildinghub/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:212: [BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
-- Control frame information -----------------------------------------------
c:0013 p:0273 s:0053 b:0053 l:000052 d:000052 METHOD /.rvm/gems/ruby-1.9.3-p0@buildinghub/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:212
c:0012 p:0043 s:0047 b:0047 l:000046 d:000046 METHOD /.rvm/gems/ruby-1.9.3-p0@buildinghub/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:263
c:0011 p:0050 s:0042 b:0042 l:000033 d:000041 BLOCK /.rvm/gems/ruby-1.9.3-p0@buildinghub/gems/rspec-core-2.7.1/lib/rspec/core/configuration_options.rb:19
c:0010 p:---- s:0039 b:0039 l:000038 d:000038 FINISH
c:0009 p:---- s:0037 b:0037 l:000036 d:000036 CFUNC :each
if current_user.id == params[:id] or current_user.admin?
show!
else
redirect_to root_path
end
class RegistrationsController < Devise::RegistrationsController
def new
if params[:bp].present?
puts "why"
@user = User.find_by_lbp_number(params[:bp])
else
@user = User.new
puts "this shouldn't be here"
end
def create
build_resource
if resource.save
if resource.active_for_authentication?
set_flash_message :notice, :signed_up if is_navigational_format?
sign_in(resource_name, resource)
respond_with resource, :location => after_sign_up_path_for(resource)
else
set_flash_message :notice, :inactive_signed_up, :reason => inactive_reason(resource) if is_navigational_format?
def create
build_resource
card = ActiveMerchant::Billing::CreditCard.new(
:number => params[:expiry_number],
:month => params[:expiry_month],
:year => params[:date_year],
:name => params[:name_on_card],
:verification_value => :params[:cvv]
)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/gdal/1.9.0 --mandir=/usr/local/Cellar/gdal/1.9.0/share/man --disable-debug --with-local=/usr/local/Cellar/gdal/1.9.0 --with-threads --with-libtool --with-libtiff=internal --with-geotiff=internal --with-pcraster=internal --with-pcidsk=internal --with-bsb --with-grib --with-pam --with-libz=/usr --with-png=/usr/X11 --with-expat=/usr --with-jpeg=/usr/local --with-jpeg12 --with-gif=/usr/local --with-curl=/usr/bin/curl-config --with-sqlite3=/usr/local --without-grass --without-libgrass --without-cfitsio --without-netcdf --without-ogdi --without-hdf4 --without-hdf5 --without-openjpeg --without-jasper --without-xerces --without-epsilon --without-spatialite --without-libkml --without-poppler --without-podofo --with-freexl=no --with-dods-root=no --witho
HOMEBREW_VERSION: 0.9
HEAD: 942f6922525fe65b080915c3dec7da58fa661c92
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
GCC-4.2: N/A
This file has been truncated, but you can view the full file.
/usr/bin/env python -c import numpy
==> Downloading http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz
Already downloaded: /Users/chrisbull/Library/Caches/Homebrew/gdal-1.9.0.tar.gz
/usr/bin/tar xf /Users/chrisbull/Library/Caches/Homebrew/gdal-1.9.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/gdal/1.9.0 --mandir=/usr/local/Cellar/gdal/1.9.0/share/man --disable-debug --with-local=/usr/local/Cellar/gdal/1.9.0 --with-threads --with-libtool --with-libtiff=internal --with-geotiff=internal --with-pcraster=internal --with-pcidsk=internal --with-bsb --with-grib --with-pam --with-libz=/usr --with-png=/usr/X11 --with-expat=/usr --with-jpeg=/usr/local --with-jpeg12 --with-gif=/usr/local --with-curl=/usr/bin/curl-config --with-sqlite3=/usr/local --without-grass --without-libgrass --without-cfitsio --without-netcdf --without-ogdi --without-hdf4 --without-hdf5 --without-openjpeg --without-jasper --without-xerces --without-epsilon --without-spatialite --without-libkml --without-poppler --without-podofo --with-freexl=no
This file has been truncated, but you can view the full file.
/usr/bin/env python -c import numpy
==> Downloading http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz
Already downloaded: /Users/chrisbull/Library/Caches/Homebrew/gdal-1.9.0.tar.gz
/usr/bin/tar xf /Users/chrisbull/Library/Caches/Homebrew/gdal-1.9.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/gdal/1.9.0 --mandir=/usr/local/Cellar/gdal/1.9.0/share/man --disable-debug --with-local=/usr/local/Cellar/gdal/1.9.0 --with-threads --with-libtool --with-libtiff=internal --with-geotiff=internal --with-pcraster=internal --with-pcidsk=internal --with-bsb --with-grib --with-pam --with-libz=/usr --with-png=/usr/X11 --with-expat=/usr --with-jpeg=/usr/local --with-jpeg12 --with-gif=/usr/local --with-curl=/usr/bin/curl-config --with-sqlite3=/usr/local --without-grass --without-libgrass --without-cfitsio --without-netcdf --without-ogdi --without-hdf4 --without-hdf5 --without-openjpeg --without-jasper --without-xerces --without-epsilon --without-spatialite --without-libkml --without-poppler --without-podofo --with-freexl=no
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
watch(%r{^config/initializers/.+\.rb$})
watch('Gemfile')
watch('Gemfile.lock')