kraken_ruby icon indicating copy to clipboard operation
kraken_ruby copied to clipboard

uninitialized constant Kraken

Open Sjors opened this issue 10 years ago • 4 comments

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 avatar Jan 01 '16 21:01 Sjors

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

Sjors avatar Jan 01 '16 21:01 Sjors

I get the same error..

ethereumdegen avatar Feb 26 '16 04:02 ethereumdegen

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.

jtobin avatar Mar 02 '16 07:03 jtobin

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.

shideneyu avatar Mar 03 '16 16:03 shideneyu