Skip to content

Instantly share code, notes, and snippets.

@plexus
Created June 28, 2013 11:03
Show Gist options
  • Save plexus/5883933 to your computer and use it in GitHub Desktop.
Save plexus/5883933 to your computer and use it in GitHub Desktop.
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/arne/.rubies/jruby-1.7.3/lib/native/i386-Linux/libjffi-1.2.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
WARN: The Shoes.setup method is no longer used, you need to install gems yourself.
WARN: To use the 'bluecloth' gem, install it with 'gem install bluecloth --version '=2.0.6'', and put 'require "bluecloth"' at the top of your Shoes program.
WARN: To use the 'metaid' gem, install it with 'gem install metaid ', and put 'require "metaid"' at the top of your Shoes program.
LoadError: no such file to load -- bluecloth
require at org/jruby/RubyKernel.java:1027
require at /home/arne/.rubies/jruby-1.7.3/lib/ruby/shared/rubygems/custom_require.rb:55
(root) at /home/arne/.shoes/red_shoes/dist/samples/simple-rubygems.rb:10
load at org/jruby/RubyKernel.java:1046
(root) at /home/arne/.shoes/shoes4/lib/shoes/cli.rb:1
execute_app at /home/arne/.shoes/shoes4/lib/shoes/cli.rb:73
(root) at -e:1
module Shoes
class <<self
# To ease the upgrade path from Shoes 3 we warn users they need to install
# and require gems themselves.
#
# @example
# Shoes.setup do
# gem 'bluecloth =2.0.6'
# gem 'metaid'
# end
#
# @param block [Proc] The block that describes the gems that are needed
# @deprecated
def setup(&block)
$stderr.puts "WARN: The Shoes.setup method is no longer used, you need to install gems yourself."
Class.new do
def gem(name)
name, version = name.split()
install_cmd = ["gem install", name, version ? "--version '#{version}'" : ''].join(' ')
$stderr.puts "WARN: To use the '#{name}' gem, install it with '#{install_cmd}', and put 'require \"#{name}\"' at the top of your Shoes program."
end
end.new.instance_eval(&block)
end
end
end
@PragTob
Copy link

PragTob commented Jun 28, 2013

I personally would skip the version stuff due to imo unnecessary work.

And I'd actually name that class, that does the gems stuff. Just because I don't like unnamed classes and I personally think that the end.new.instance_eval is a bit to complex and confusing.

Thanks buddy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment