我最近安装了green_shoes gem并遇到了一个有趣的问题。我去运行示例应用程序sam.rb:
require 'green_shoes'
Shoes.app { para "welcome!" }
我得到一个像这样的错误
/Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/app.rb:145:in `show_page': out of memory (NoMemoryError)
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/app.rb:145:in `textblock'
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/app.rb:168:in `para'
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/style.rb:58:in `style'
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/basic.rb:222:in `text='
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/basic.rb:228:in `positioning'
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/helper_methods.rb:179:in `block in contents_alignment'
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/helper_methods.rb:168:in `each'
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/helper_methods.rb:168:in `contents_alignment'
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/helper_methods.rb:220:in `call_back_procs'
from /Users/me/.rvm/gems/ruby-2.2.0/gems/green_shoes-1.1.374/lib/shoes/main.rb:119:in `app'
from sam.rb:3:in `<main>'
然而,真正的踢球者,除了文本之外我似乎没有任何问题。有任何想法吗?任何帮助将非常感激。下面是我的宝石清单,其中就是问题
*** LOCAL GEMS ***
actionmailer (4.2.1, 4.2.0)
actionpack (4.2.1, 4.2.0)
actionview (4.2.1, 4.2.0)
activejob (4.2.1, 4.2.0)
activemodel (4.2.1, 4.2.0)
activerecord (4.2.1, 4.2.0)
activesupport (4.2.1, 4.2.0)
arel (6.0.0)
atk (2.2.4)
bigdecimal (1.2.7, 1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.9.4, 1.8.4)
bundler-unload (1.0.2)
byebug (4.0.5, 3.5.1)
cairo (1.14.1)
climate_control (0.0.3)
cocaine (0.5.7)
coffee-rails (4.1.0)
coffee-script (2.4.1, 2.3.0)
coffee-script-source (1.9.1.1, 1.9.1)
columnize (0.9.0)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.5.2, 2.4.0)
executable-hooks (1.3.2)
gdk_pixbuf2 (2.2.4)
gem-wrappers (1.2.7)
glib2 (2.2.4)
globalid (0.3.5, 0.3.3)
green_shoes (1.1.374)
gtk2 (2.2.4)
hike (2.1.3, 1.2.3)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.2.13, 2.2.12, 2.2.11)
jquery-rails (4.0.3)
json (1.8.2, 1.8.1)
loofah (2.0.1)
mail (2.6.3)
mime-types (2.4.3)
mini_portile (0.6.2)
minitest (5.6.0, 5.5.1, 5.4.3)
multi_json (1.11.0)
nokogiri (1.6.6.2)
pango (2.2.4)
paperclip (4.2.1)
pkg-config (1.1.6)
power_assert (0.2.3, 0.2.2)
psych (2.0.13, 2.0.8)
rack (1.6.0)
rack-test (0.6.3)
rails (4.2.1, 4.2.0)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6, 1.0.5)
rails-html-sanitizer (1.0.2, 1.0.1)
railties (4.2.1, 4.2.0)
rake (10.4.2)
rdoc (4.2.0)
rspec (3.2.0)
rspec-core (3.2.3, 3.2.2, 2.14.8)
rspec-expectations (3.2.1, 3.2.0, 2.14.5)
rspec-mocks (3.2.1, 2.14.6)
rspec-support (3.2.2)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sass (3.4.13)
sass-rails (5.0.3, 5.0.1)
sdoc (0.4.1)
slop (4.1.0, 3.6.0)
spring (1.3.4, 1.3.3)
sprockets (3.0.1, 2.12.3)
sprockets-rails (2.2.4)
sqlite3 (1.3.10)
test-unit (3.0.9, 3.0.8)
thor (0.19.1)
thread_safe (0.3.5, 0.3.4)
tilt (2.0.1, 1.4.1)
turbolinks (2.5.3)
tzinfo (1.2.2)
uglifier (2.7.1)
web-console (2.1.2, 2.1.1)