Skip to content

Instantly share code, notes, and snippets.

[kschrader@einstein:merb-book]$ cat /opt/local/bin/gh
#!/opt/local/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'defunkt-github' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
[kschrader@einstein:trunk]$ cucumber enhanced
Sinatra::Test is deprecated; use Rack::Test instead.
You can only pass a proc to #World once, but it's happening
in 2 places:
advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/selenium_webrat/features/support/env.rb:25:in `World'
advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/sinatra/features/support/env.rb:19:in `World'
Use Ruby modules instead to extend your worlds. See the Cucumber::StepMother#World RDoc
or http://wiki.github.com/aslakhellesoy/cucumber/a-whole-new-world.
[kschrader@einstein:trunk]$ cucumber enhanced
no such file to load -- sinatra
Failed to load ./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/sinatra/features/support/env.rb (LoadError)
/Users/kschrader/code/intent/code/trunk/conf/vms/ruby/jruby-1.2.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/kschrader/code/intent/code/trunk/conf/vms/ruby/jruby-1.2.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/kschrader/code/intent/code/trunk/conf/vms/ruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in `require'
./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/sinatra/features/support/../../app.rb:5
./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/sinatra/features/support/../../app.rb:31:in `require'
/Users/kschrader/code/intent/code/trunk/conf/vms/ruby/jruby-1.2.0/lib/ruby/site_ruby/1.8/rubygem
[kschrader@einstein:trunk]$ cucumber enhanced --verbose
Ruby files required:
* ./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/selenium_webrat/features/support/env.rb
* ./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/i18n/en-lol/features/support/env.rb
* ./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/self_test/features/support/env.rb
* ./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/selenium/features/support/env.rb
* ./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/i18n/ru/features/support/env.rb
* ./advertiserDashboard/dist/advertiserDashboard/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.5/examples/i18n/bg/features/support/env.rb
no such file to load -- sinatra
Given /^the following ad groups:$/ do |ad_groups_data|
ad_groups_data.hashes.each do |ad_group_data|
# set some defaults
ad_group_data[:name]||= "ad group 1"
ad_group_data[:paused] ||= false
ad_group = AdGroup.create_or_update_by_id!(ad_group_data)
end
end
clear_sources
bundle_path "vendor/bundler_gems"
source "http://gemcutter.org"
source "http://gems.github.com"
gem "rails", "2.3.5"
gem "erubis"
gem "authlogic"
gem "justinfrench-formtastic"

Keybase proof

I hereby claim:

  • I am kschrader on github.
  • I am kurt (https://keybase.io/kurt) on keybase.
  • I have a public key whose fingerprint is 5C00 8C4B 2ED1 6EC5 7DC8 1BFD A911 CF77 E4F5 0DDB

To claim this, I am signing this object:

user> #uuid "538ba7b2-5034-4146-a1d0-884eebfce27f"
#uuid "538ba7b2-5034-4146-a1d0-884eebfce27f"
user> (def a "538ba7b2-5034-4146-a1d0-884eebfce27f")
#'user/a
user> #uuid a
AssertionError Assert failed: (string? form) clojure.uuid/default-uuid-reader (uuid.clj:11)
@kschrader
kschrader / gist:caeb7fcceeeeffa1930d
Created August 29, 2014 22:03
Wildfly deployment output
18:01:27,739 INFO [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015876: Starting deployment of "clubhouse.war" (runtime-name: "clubhouse.war")
18:01:30,821 INFO [org.jboss.as.pojo] (MSC service thread 1-4) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).
18:01:30,883 WARN [org.jboss.as.dependency.private] (MSC service thread 1-10) JBAS018567: Deployment "deployment.clubhouse.war" is using a private module ("org.jboss.as.clustering.jgroups:main") which may be changed or removed in future versions without notice.
18:01:30,883 WARN [org.jboss.as.dependency.private] (MSC service thread 1-10) JBAS018567: Deployment "deployment.clubhouse.war" is using a private module ("org.jboss.as.clustering.jgroups:main") which may be changed or removed in future versions without notice.
18:01:30,883 WARN [org.jboss.as.dependency.private] (MSC service thread 1-10) JBAS018567: Deployment "deployment.clubhouse.war" is using
@kschrader
kschrader / gist:218ae226c5ec906417cf
Created August 29, 2014 22:06
Webserver startup function
(start [component]
(println ";; Starting new webserver")
(let [c (assoc component
:webserver (immutant/run (app database) {:host "0.0.0.0" :port port}))]
(println (str ";; Started webserver on port " port))
c))