Skip to content

Instantly share code, notes, and snippets.

@danlucas
danlucas / gist:b6f833799f5bc76e6eda
Created October 13, 2014 02:07
jekyll package error
/opt/jekyll/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find jekyll (>= 0) amongst [RedCloth-4.2.9, actionmailer-4.1.4, actionmailer-4.1.1, actionmailer-4.0.3, actionpack-4.1.4, actionpack-4.1.1, actionpack-4.0.3, actionview-4.1.4, actionview-4.1.1, activemodel-4.1.4, activemodel-4.1.1, activemodel-4.0.3, activerecord-4.1.4, activerecord-4.1.1, activerecord-4.0.3, activerecord-deprecated_finders-1.0.3, activesupport-4.1.4, activesupport-4.1.1, activesupport-4.0.3, arel-5.0.1.20140414130214, arel-4.0.2, bigdecimal-1.2.5, blankslate-3.1.3, blankslate-2.1.2.4, builder-3.2.2, builder-3.1.4, bundler-1.6.5, bundler-1.6.2, bundler-unload-1.0.2, celluloid-0.16.0.pre3, celluloid-0.16.0.pre2, celluloid-0.15.2, chunky_png-1.3.1, classifier-1.3.4, classifier-reborn-2.0.1, coffee-rails-4.0.1, coffee-script-2.3.0, coffee-script-2.2.0, coffee-script-source-1.7.1, coffee-script-source-1.7.0, colorator-0.1, commander-4.2.0, commander-4.1.6, compass-0.12.7, compass-0.12.6, erubis-2.7.0
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}