Closed sue445 closed 6 years ago
$ be irb -rchatwork irb(main):001:0> ChatWork::AuthenticateError Traceback (most recent call last): 16: from /Users/sue445/.rbenv/versions/2.5.0/bin/bundle:23:in `load' 15: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>' 14: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors' 13: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>' 12: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start' 11: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' 10: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch' 9: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' 8: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' 7: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' 6: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec' 5: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run' 4: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load' 3: from /Users/sue445/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load' 2: from /Users/sue445/.rbenv/versions/2.5.0/bin/irb:11:in `<top (required)>' 1: from (irb):1 NameError (uninitialized constant ChatWork::AuthenticateError) irb(main):002:0> ChatWork::APIError => ChatWork::APIError irb(main):003:0> ChatWork::AuthenticateError => ChatWork::AuthenticateError
autoload is missing here. https://github.com/asonas/chatwork-ruby/blob/v0.6.1/lib/chatwork.rb#L6-L8
autoload
Why ?
autoload
is missing here. https://github.com/asonas/chatwork-ruby/blob/v0.6.1/lib/chatwork.rb#L6-L8