Skip to content

Instantly share code, notes, and snippets.

View lukaszx0's full-sized avatar

Lukasz Strzalkowski lukaszx0

  • Column
View GitHub Profile
# Running:
/Users/strzalek/projects/rails/railties/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `action_view' for #<Rails::Railtie::Configuration:0x007fda0caf6ef8> (NoMethodError)
from /Users/strzalek/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/jquery-rails-2.2.2/lib/jquery/rails/railtie.rb:7:in `block in <class:Railtie>'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:36:in `call'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /Users/strzalek/projects/rails/railties/lib/rails/application.rb:118:in `initialize'
~/projects/rails/railties extract_renderers› rake test
/Users/strzalek/.rbenv/versions/1.9.3-p194/bin/ruby -w -Itest:lib:/Users/strzalek/projects/rails/railties/../activesupport/lib:/Users/strzalek/projects/rails/railties/../actionpack/lib:/Users/strzalek/projects/rails/railties/../activemodel/lib test/app_rails_loader_test.rb
Run options: --seed 41815
# Running:
..............
Finished in 0.044610s, 313.8310 runs/s, 403.4970 assertions/s.
ActionController::Base
ActionDispatch::Routing::RouteSet::MountedHelpers
#<Module:0x007fd9d3c66420>
#<Module:0x007fd9d210f640>
ActionController::Testing
ActionController::ParamsWrapper
ActionController::Instrumentation
ActionController::Rescue
ActionController::HttpAuthentication::Token::ControllerMethods
ActionController::HttpAuthentication::Digest::ControllerMethods
@lukaszx0
lukaszx0 / Gemfile
Created June 25, 2013 10:46 — forked from drogus/Gemfile
source "http://rubygems.org"
gem "webmachine"
gem "actionpack"
gem "thin"
gem "datamapper"
gem "dm-migrations"
gem "dm-sqlite-adapter"
gem "debugger"
@lukaszx0
lukaszx0 / bash
Created March 16, 2013 21:43
Resque config
$ resque --config config/resque.rb work
~ › brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 5a0d6f96dcfaa29dce9183828bdd96273b3a72c4
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.2: build 5666
@lukaszx0
lukaszx0 / caveatPatchor.js
Created August 28, 2012 12:39 — forked from protocool/caveatPatchor.js
Sample Propane caveatPatchor.js file
/**
Sample Propane caveatPatchor.js file based on tmm1's avatar hack.
You'll need at least version 1.1.1 to experiment with this:
http://propaneapp.com/appcast/Propane.1.1.1.zip
Once I'm sure exposing this hack-injection point doesn't cause problems
I'll do an official auto-updating version.
As of version 1.1.1, Propane will load and execute the contents of
@lukaszx0
lukaszx0 / ping.rake
Created April 20, 2012 12:45
Keeping heroku dyno alive
# $ heroku addons:add scheduler:standard
# $ heroku addons:open scheduler
require "net/http"
desc "Ping app"
task :ping do
url = 'my-app.herokuapp.com'
puts "ping? (#{url})"
@lukaszx0
lukaszx0 / gist:1779098
Created February 9, 2012 10:23
Assets pre-commit precompile
#!/usr/bin/env ruby
assets = `git diff --cached --name-only`.split("\n").find_all{ |file| file =~ /\.(css|js)$/ }
unless assets.empty?
puts "You've changed some of asset files. Building..."
files = `bundle exec rake asset:packager:build_all`.split("\n")[1..-1].map{ |f| f.gsub(/^Created (\/.*\.(css|js))$/, "\\1") }
`git add #{files.join(" ")}`
end
@lukaszx0
lukaszx0 / hash.rb
Created November 20, 2010 14:24
Flattening hashes with namespaces
require "active_support/core_ext/hash/deep_merge"
class Hash
@@namespace = []
def namespace_flatten(separator = ".")
hash = {}
self.each do |key, value|
key = key.to_s
if value.is_a?(Hash)