Skip to content


Solve Syck:Emitter NoMethodError #77

wants to merge 1 commit into from

3 participants


In Rails 3.1, metric-fu fails to run (via metrical) due to the following error:

/Users/rambo/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/psych/visitors/emitter.rb:17:inend_document': undefined method write' for #<Syck::Emitter:0x007fcc4120b498> (NoMethodError)

Including require psych solves this problem.


i run metric-fu via metrical and run the command: RUBYOPT='-rpsych' metrical ...which solves the Syck::Emitter error

bf4 commented

Please confirm if this is still required, and if so, resubmit the pull request at as MetricFu has moved.

@bf4 bf4 closed this
@bf4 bf4 was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 30, 2011
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/metric_fu.rb
1 lib/metric_fu.rb
@@ -1,4 +1,5 @@
require 'rake'
+require 'psych'
require 'yaml'
require 'active_support/core_ext/object/to_json'
Something went wrong with that request. Please try again.