pandoc-ruby error when running documented example - ruby

When running the following script using pandoc-ruby (directly from the documentation) I get an error.
require 'rubygems'
require 'pandoc-ruby'
puts PandocRuby.convert('# Markdown Title', :from => :markdown, :to => :html)
Output:
[dan#FIOS-RH test-markdown]$ ruby convert.rb
/usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:250:in `format_flag': undefined method `length' for :from:Symbol (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:241:in `create_option'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:225:in `prepare_options'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `inject'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:222:in `each'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:222:in `inject'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:222:in `prepare_options'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:227:in `prepare_options'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `inject'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:222:in `each'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:222:in `inject'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:222:in `prepare_options'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:131:in `convert'
from /usr/lib/ruby/gems/1.8/gems/pandoc-ruby-0.7.4/lib/pandoc-ruby.rb:86:in `convert'
from convert.rb:3
[dan ]$ pandoc --version
pandoc 1.11.1
...
[dan ]$ ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
pandoc-ruby version: 0.7.4
Am I missing something obvious?

Related

Cucumber upgrade error from 2.5.3 to 3.1.2 (wrong number of arguments (given 4, expected 3) (ArgumentError))

I'm trying to upgrade our applications acceptance tests to run on ruby version 3.1.2 from 2.5.3.
And getting this output when running tests through intellij:
/bin/bash -c "env RBENV_VERSION=3.1.2 /home/####/.rbenv/libexec/rbenv exec ruby -EUTF-8 /home/####/.rbenv/versions/3.1.2/bin/cucumber /home/####/git/PATH/TEST_NAME.feature --format 'Teamcity::Cucumber::Formatter' --expand --name '^VbV TEST_NAME ACCEPT$' --color -r features"
Testing started at 11:25 ...
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/profile_loader.rb:68: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/profile_loader.rb:68: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
wrong number of arguments (given 4, expected 3) (ArgumentError)
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filters/node_filter.rb:9:in `initialize'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:115:in `new'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:115:in `add_filter'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:19:in `node_filter'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector.rb:5:in `block in <top (required)>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:15:in `instance_eval'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:15:in `initialize'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:77:in `new'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:77:in `add'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector.rb:4:in `<top (required)>'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara.rb:433:in `<module:Capybara>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara.rb:9:in `<top (required)>'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
/home/####/git/PATH/support/env.rb:7:in `<top (required)>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in `load'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in `load_code_file'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:144:in `load_file'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:85:in `block in load_files!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in `each'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in `load_files!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:272:in `load_step_definitions'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:68:in `run!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in `execute!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/bin/cucumber:9:in `<top (required)>'
/home/####/.rbenv/versions/3.1.2/bin/cucumber:25:in `load'
/home/####/.rbenv/versions/3.1.2/bin/cucumber:25:in `<main>'
Process finished with exit code 2

Mongoid 7 + mongoid-rspec compatibility issues

I am integrating mongoid-rspec with Mongoid 7 and while running the command rspec it show me below mentioned error trace:
cannot load such file -- mongoid/relations
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/mongoid-rspec-4.0.0/lib/matchers/associations.rb:1:in `<top (required)>'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/mongoid-rspec-4.0.0/lib/mongoid/rspec.rb:13:in `<top (required)>'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#wavedio/gems/mongoid-rspec-4.0.0/lib/mongoid-rspec.rb:1:in `<top (required)>'
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1#global/gems/bundler-1.16.1/lib/bundler.rb:114:in `require'
Configured mongoid-rspec using this link https://github.com/mongoid/mongoid-rspec
Rails - 5.1.6
Ruby - 2.4.1
Yes, the latest released version of mongoid-rspec 4.0.0 does not support mongoid 7, as of now. See here: https://github.com/mongoid/mongoid-rspec/pull/212.
I am using it like this in my project:
gem 'mongoid-rspec', github: 'mongoid/mongoid-rspec', ref: '68c95b133be1a1482fe882e39afd33262147d1f4'
It worked for me.

FATAL: Chef::Exceptions::JSON::EncodeError: Invalid UTF-8 string: cannot encode to UTF-8

While installing chef-server on my VM I am getting the following error.
FATAL: Chef::Exceptions::JSON::EncodeError: Invalid UTF-8 string: cannot encode to UTF-8
and my chef-stacktrace.out is
Chef::Exceptions::JSON::EncodeError: Invalid UTF-8 string: cannot encode to UTF-8
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/json_compat.rb:107:in `rescue in to_json'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/json_compat.rb:104:in `to_json'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http/json_input.rb:35:in `handle_request'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:222:in `block in apply_request_middleware'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `each'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `inject'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `apply_request_middleware'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:141:in `request'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:118:in `put'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/node.rb:512:in `save'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/client.rb:257:in `save_updated_node'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/client.rb:403:in `run'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:243:in `run_with_graceful_exit_option'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:220:in `block in run_chef_client'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/local_mode.rb:38:in `with_server_connectivity'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:201:in `run_chef_client'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application/client.rb:328:in `run_application'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:58:in `run'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/bin/chef-client:26:in `<top (required)>'
/opt/opscode/embedded/bin/chef-client:23:in `load'
/opt/opscode/embedded/bin/chef-client:23:in `<main>'
~
~
~
I have tried almost everything. I realised that the issue was related to encoding but couldn't solve it. Any help is appreciated.
thanks.
I believe this should be fixed in version 12.4.0
https://github.com/chef/chef/issues/3216

Couldn't initialize guard-livereload on ruby 2.0

When I tried to initalize with
guard --debug
the following error occured.
For a better Pry experience on Windows, please use ansicon:
http://adoxa.3eeweb.com/ansicon/
DL is deprecated, please use Fiddle
21:14:45 - INFO - You must 'gem install win32console' to use color on Windows
21:14:45 - ERROR - Could not load 'guard/livereload' or find class Guard::Livere
load
21:14:45 - ERROR - C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems
/core_ext/kernel_require.rb:126:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:126:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/http_parser.rb-0.5.3-
x86-mingw32/lib/ruby_http_parser.rb:2:in `<top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:135:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:135:in `rescue in require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:144:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/http_parser.rb-0.5.3-
x86-mingw32/lib/http_parser.rb:2:in `<top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:135:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:135:in `rescue in require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:144:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/http_parser.rb-0.5.3-
x86-mingw32/lib/http/parser.rb:1:in `<top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:73:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:73:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/em-websocket-0.5.0/li
b/em-websocket/handshake.rb:1:in `<top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:73:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:73:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/em-websocket-0.5.0/li
b/em-websocket.rb:15:in `block in <top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/em-websocket-0.5.0/li
b/em-websocket.rb:14:in `each'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/em-websocket-0.5.0/li
b/em-websocket.rb:14:in `<top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:73:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:73:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-livereload-2.1.
2/lib/guard/livereload/websocket.rb:2:in `<top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:73:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:73:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-livereload-2.1.
2/lib/guard/livereload.rb:6:in `<class:LiveReload>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-livereload-2.1.
2/lib/guard/livereload.rb:5:in `<module:Guard>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-livereload-2.1.
2/lib/guard/livereload.rb:4:in `<top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:135:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:135:in `rescue in require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/ker
nel_require.rb:144:in `require'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/plugin_util.rb:100:in `plugin_class'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/plugin_util.rb:57:in `initialize_plugin'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
.rb:167:in `add_plugin'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/dsl.rb:174:in `block in guard'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/dsl.rb:173:in `each'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/dsl.rb:173:in `guard'
> [#] C:/Users/ZAW OO/Desktop/work/Guardfile:39:in `_instance_eval_guardfile'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/guardfile/evaluator.rb:97:in `instance_eval'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/guardfile/evaluator.rb:97:in `_instance_eval_guardfile'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/guardfile/evaluator.rb:37:in `evaluate_guardfile'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/setuper.rb:146:in `evaluate_guardfile'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/setuper.rb:64:in `setup'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/commander.rb:24:in `start'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard
/cli.rb:107:in `start'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/
command.rb:27:in `run'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/
invocation.rb:126:in `invoke_command'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor.
rb:359:in `dispatch'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/
base.rb:440:in `start'
> [#] C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/bin/guard
:6:in `<top (required)>'
> [#] C:/RailsInstaller/Ruby2.0.0/bin/guard:23:in `load'
> [#] C:/RailsInstaller/Ruby2.0.0/bin/guard:23:in `<main>'
21:14:45 - ERROR - Invalid Guardfile, original error is:
> [#] undefined method `superclass' for nil:NilClass
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/lib/guard/plugi
n_util.rb:57:in `initialize_plugin': undefined method `superclass' for nil:NilCl
ass (NoMethodError)
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard.rb:167:in `add_plugin'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/dsl.rb:174:in `block in guard'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/dsl.rb:173:in `each'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/dsl.rb:173:in `guard'
from C:/Users/ZAW OO/Desktop/work/Guardfile:39:in `_instance_eval_guardf
ile'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/guardfile/evaluator.rb:97:in `instance_eval'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/guardfile/evaluator.rb:97:in `_instance_eval_guardfile'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/guardfile/evaluator.rb:37:in `evaluate_guardfile'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/setuper.rb:146:in `evaluate_guardfile'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/setuper.rb:64:in `setup'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/commander.rb:24:in `start'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/li
b/guard/cli.rb:107:in `start'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.19.1/li
b/thor/command.rb:27:in `run'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.19.1/li
b/thor/invocation.rb:126:in `invoke_command'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.19.1/li
b/thor.rb:359:in `dispatch'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/thor-0.19.1/li
b/thor/base.rb:440:in `start'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/guard-2.6.0/bi
n/guard:6:in `<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/bin/guard:23:in `load'
from C:/RailsInstaller/Ruby2.0.0/bin/guard:23:in `<main>'
here is my guard file
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'sass', :input => 'sass', :output => 'css'
guard 'livereload' do
watch(%r{.+\.(css|html|js)$})
end
But When I leave blank for livereload part in guardfile, It work as normal. I also tried to install Win32console but package isn't present and later I found out it doesn't need for ruby 2. I run guard under ruby 2.0.0p195 (2013-05-14) [i386-mingw32] on 64bit (Window 7).

Heroku H13 error a way to fix it?

I have an application running on Heroku, sometimes this error appear :
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/logger.rb:15:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra- 1.3.2/lib/sinatra/base.rb:1334:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:80:in `block in pre_process'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:78:in `catch'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:78:in `pre_process'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:53:in `process'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:38:in `receive_data'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:63:in `start'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/server.rb:159:in `start'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/controllers/controller.rb:86:in `start'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:185:in `run_command'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:151:in `run!'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/bin/thin:6:in `<top (required)>'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
So what can I do ? ...
Edit : add gemfile
source :rubygems
# use Heroku Toolbelt instead
# gem "heroku"
# sinatra main library
gem "sinatra"
# sinatra plugin for localization
gem "sinatra-r18n"
gem "resolv-ipv6favor"
# Json
gem "json"
# rack middleware csrf protection
gem "rack_csrf"
# database handler | orm
gem "pg"
gem "sequel"
gem "sequel_sluggable"
gem "unicode_utils"
gem "sanitize"
gem "fog"
gem "mail"
gem "thin"
# Full system log
gem 'remote_syslog_logger'
group :development do
gem "awesome_print"
gem "sinatra-reloader"
gem "sqlite3"
end

Resources