Skip to content

0.5.2 broken throws CLI error: cli.rb:32:in get_command_class': undefined method camelize' for "help":String #145

@cdcooksey

Description

@cdcooksey

Our usage:

oauth \
  --verbose \
   --query-string \
   --consumer-key v484mnii2jyswedm6uo2cfcjay7uy49snws \
   --consumer-secret koay6845che7giy5lr17gnrhckkbhf8h5 \
   --access-token-url https://www.yourstore.com/oauth/token \
   --authorize-url https://wwws.yourstore.com/admin/oauth_authorize \
   --request-token-url https://www.yourstore.com/oauth/initiate \
   authorize

On 0.5.2, the above bash script for Magento, fails:

/home/my-folder/.rvm/gems/ruby-2.2.5/gems/oauth-0.5.2/lib/oauth/cli.rb:32:in `get_command_class': undefined method `camelize' for "help":String (NoMethodError)
    from /home/my-folder/.rvm/gems/ruby-2.2.5/gems/oauth-0.5.2/lib/oauth/cli.rb:20:in `initialize'
    from /home/my-folder/.rvm/gems/ruby-2.2.5/gems/oauth-0.5.2/bin/oauth:11:in `new'
    from /home/my-folder/.rvm/gems/ruby-2.2.5/gems/oauth-0.5.2/bin/oauth:11:in `<top (required)>'
    from /home/my-folder/.rvm/gems/ruby-2.2.5/bin/oauth:23:in `load'
    from /home/my-folder/.rvm/gems/ruby-2.2.5/bin/oauth:23:in `<main>'
    from /home/my-folder/.rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in `eval'
    from /home/my-folder/.rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in `<main>'

We thought this issue could be an incompatibility with Ruby 2.2.5, so we downgraded to Ruby 2.0.0, and got the same error.

The work around for this issue is downgrading to 0.5.1.

gem uninstall oauth
gem install oauth -v 0.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions