abrom / rocketchat-ruby

Ruby wrapper for RocketChat v1 REST API
MIT License
33 stars 24 forks source link

just not work #4

Closed uranio-235 closed 7 years ago

uranio-235 commented 7 years ago

.3.3 :007 > rocket_server = RocketChat::Server.new('https://chat.hcg.sld.cu') NameError: uninitialized constant RocketChat::RequestHelper::URI .. gems/rocketchat-0.1.3/lib/rocket_chat/request_helper.rb:20:in server=' ... gems/ruby-2.3.3/gems/rocketchat-0.1.3/lib/rocket_chat/server.rb:16:ininitialize'

abrom commented 7 years ago

Thanks @uranio-235

Problem was the URI module wasn't being loaded. This was being done automatically in the tests (and in my environment). Problem has been fixed here: https://github.com/abrom/rocketchat-ruby/commit/3a90f608d595a8b01d9b5a4b04a86589a02689b2 and released as gem v0.1.4