Skip to content

Instantly share code, notes, and snippets.

#!/usr/local/bin/perl
################################################################################
################################################################################
## perl_clean.pl - filter to clean up perl code ##
## ##
## ##
## ##
## ##
## Useage: ##
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
/Users/USERNAME/.rvm/rubies/ruby-1.9.3-p545/bin/ruby extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile
package configuration for libffi is not found
have_header: checking for ffi.h... -------------------- no
"/usr/local/opt/gcc46/bin/gcc-4.6 -o conftest -I/Users/USERNAME/.rvm/rubies/ruby-1.9.3-p545/include/ruby-1.9.1/x86_64-darwin12.5.0 -I/Users/USERNAME/.rvm/rubies/ruby-1.9.3-p545/include/ruby-1.9.1/ruby/backward -I/Users/USERNAME/.rvm/rubies/ruby-1.9.3-p545/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fno-common -pipe conftest.c -L. -L/Users/USERNAME/.rvm/rubies/ruby-1.9.3-p545/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L. -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libffi configure 3.0.10, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ /Users/USERNAME/.rvm/gems/ruby-1.9.3-p545@CLIENTNAME/gems/ffi-1.9.3/ext/ffi_c/libffi/configure --disable-static --with-pic=yes --disable-dependency-tracking --host=x86_64-apple-darwin
## --------- ##
## Platform. ##
`require "awesome_print"
begin
AwesomePrint.irb!
rescue StandardError => err
warn "AwesomePrint.irb! doesn't exist in the old version:\n#{err}"
end
puts "Awesome Print version: #{AwesomePrint.version}\n\n"
require "awesome_print"
begin
AwesomePrint.irb!
rescue StandardError => err
warn "AwesomePrint.irb! doesn't exist in the old version:\n#{err}"
end
puts "Awesome Print version: #{AwesomePrint.version}\n\n"
require "awesome_print"
begin
AwesomePrint.irb!
rescue StandardError => err
warn "AwesomePrint.irb! doesn't exist in the old version:\n#{err}"
end
puts "Awesome Print version: #{AwesomePrint.version}\n\n"
# app/models/permissions/admin_permission.rb
module Permissions
class AdminPermission < BasePermission
def initialize(user)
allow_all
end
end
end