This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing gpgme-ffi (3.0.1) with native extensions | |
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/Users/inossidabile/.rvm/rubies/jruby-1.7.0/bin/jruby extconf.rb | |
gpg (GnuPG) 1.4.12 | |
Copyright (C) 2012 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing gpgme-ffi (3.0.0) with native extensions | |
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/Users/inossidabile/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb | |
make | |
tar xf /Users/inossidabile/.rvm/gems/ruby-1.9.3-p327/gems/gpgme-ffi-3.0.0/ext/gpgme/libgpg-error-1.10.tar.bz2 -C /Users/inossidabile/.rvm/gems/ruby-1.9.3-p327/gems/gpgme-ffi-3.0.0/ext/gpgme | |
cd libgpg-error-1.10 && ./configure --prefix=/Users/inossidabile/.rvm/gems/ruby-1.9.3-p327/gems/gpgme-ffi-3.0.0/ext/gpgme/dst --disable-shared --enable-static --with-pic --disable-nls | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake spec:requests:coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe ItemsController do | |
describe_request :index, request_path: '/items', method: 'GET' do | |
it 'lists items' do | |
get '/items' | |
# ... | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.configure do |config| | |
config.routes_coverage.exclude_namespaces = %w(back) | |
config.routes_coverage.exclude_routes = [ | |
/^\/$/, | |
/^POST \/sessions/ | |
] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveAdmin | |
class ResourceDSL | |
def filter(*args) | |
field = args[0] | |
klass = @config.resource_class_name.constantize | |
type = klass.columns.select{|c| c.name == field.to_s}.first.try(:type) | |
if type == :datetime | |
controller do | |
before_filter :only => :index do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.active_admin { | |
#sidebar { | |
.filter_numeric_range { | |
input { | |
width: 88px; | |
} | |
.seperator { | |
display: inline-block; | |
text-align: center; | |
width: 12px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"PIDFILE" => "#{God.pid_file_directory}/#{w.name}.pid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/god/app.rb | |
rails_env = ENV['RAILS_ENV'] || "production" | |
rails_root = ENV['RAILS_ROOT'] || Dir.pwd | |
num_workers = rails_env == 'production' ? 5 : 2 | |
num_workers.times do |num| | |
God.watch do |w| | |
w.dir = "#{rails_root}" | |
w.name = "resque-#{num}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'san_juan' | |
# ... | |
san_juan.role :app, %w(resque) |