leishman / kraken_ruby

Ruby Gem for Kraken Exchange API
https://www.kraken.com/help/api
MIT License
56 stars 33 forks source link

uninitialized constant Kraken #16

Open Sjors opened 8 years ago

Sjors commented 8 years ago

Steps to reproduce, using RVM with Ruby 2.3.0 on a Mac (El Capitan), bundler 1.11.2:

Gemfile contents:

source 'https://rubygems.org'
ruby "2.3.0"

gem 'kraken_ruby', '0.5'
rvm install 2.3.0
gem install bundler
bundle
bundle console

In the console:

Kraken

I also tried require 'ruby-kraken', which results in LoadError: cannot load such file -- kraken-ruby

I noticed that ~/.rvm/gems/ruby-2.3.0/gems/kraken_ruby-0.5.0 is empty.

I tried without bundler as well, i.e. gem install kraken_ruby followed by irb, but no luck. I also tried with older versions of Ruby (e.g. 2.1.3) and older versions of bundler (e.g. 1.7.4).

Sjors commented 8 years ago

As a workaround, I just downloaded lib/kraken_ruby/client.rb into my project and used require './client.rb'

ethereumdegen commented 8 years ago

I get the same error..

jtobin commented 8 years ago

It seems like the installed gem is just an empty directory when installing via RubyGems. You can check this with e.g. ls $(bundle show kraken_ruby) after an install.

Cloning this repository and building/installing the gem from scratch worked fine, and I was able to use it as expected.

The 0.5.0 release on RubyGems looks suspiciously small at 4.5kb, whereas the previous releases were anywhere from 23kb to 320kb. Possibly a borked upload?

Update: Yeah, just to confirm that the 0.4.2 release installs just fine from RubyGems and works as expected.

shideneyu commented 8 years ago

I made a fork of kraken_ruby if you are interested to bypass this issue: https://github.com/shideneyu/kraken_client

Also, It has much more features.