Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined method add_builtin_type for Psyc ( NoMethodError) #351

Open
rcoproc opened this issue Jan 5, 2016 · 1 comment
Open

Undefined method add_builtin_type for Psyc ( NoMethodError) #351

rcoproc opened this issue Jan 5, 2016 · 1 comment

Comments

@rcoproc
Copy link

rcoproc commented Jan 5, 2016

Hi,

I run the comamnd in bash
@ricardo Dir ~/Documents/RAILS/Otica :[ Tue Jan 05-11:44 AM]
[Ruby 2.2.2] rails_app_composer new .

an i have the problem:

/Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/ordered_hash.rb:3:in <top (required)>': undefined methodadd_builtin_type' for Psych:Module (NoMethodError)
from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:in require' from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:inrequire'
from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails_apps_composer-3.1.4/lib/rails_wizard/config.rb:1:in <top (required)>' from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:inrequire'
from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in require' from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails_apps_composer-3.1.4/lib/rails_wizard/recipe.rb:1:in<top (required)>'
from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in require' from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:inrequire'
from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails_apps_composer-3.1.4/lib/rails_wizard.rb:2:in <top (required)>' from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:inrequire'
from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in require' from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails_apps_composer-3.1.4/lib/rails_wizard/command.rb:1:in<top (required)>'
from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in require' from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:inrequire'
from /Users/Ricardo/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails_apps_composer-3.1.4/bin/rails_apps_composer:5:in <top (required)>' from /Users/Ricardo/.rbenv/versions/2.2.2/bin/rails_apps_composer:23:inload'
from /Users/Ricardo/.rbenv/versions/2.2.2/bin/rails_apps_composer:23:in `

'

@rcoproc
Copy link
Author

rcoproc commented Jan 5, 2016

The problem is HERE

yaml.rb
YAML = Psych # :nodoc:

The YAML object has no method 'add_builtin_type'
but in version 2.0.08 Psych are there to see .:

psych.rb

:stopdoc:

@domain_types = {}
def self.add_domain_type domain, type_tag, &block
key = ['tag', domain, type_tag].join ':'
@domain_types[key] = [key, block]
@domain_types["tag:#{type_tag}"] = [key, block]
end

def self.add_builtin_type type_tag, &block
domain = 'yaml.org,2002'
key = ['tag', domain, type_tag].join ':'
@domain_types[key] = [key, block]
end

def self.remove_type type_tag
@domain_types.delete type_tag
end

*** LOCAL GEMS ***

psych (2.0.17, 2.0.8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant