Home > Technology > Gattica & RVM 1.9.2 NameError:

Gattica & RVM 1.9.2 NameError:

NameError: uninitialized constant Gattica::Auth::VERSION

If you find yourself running into this error, you’re probably running Ruby 1.9.2
I don’t know why this is the case, but Gattica works fine without alterations with 1.8.7 but throws this error on 1.9.2

In such a scenario – do the following

Find the file auth.rb, it’ll be in some folder. I use RVM so its in the following path for me :

.rvm/gems/ruby-1.9.2-p180/gems/gattica-0.4.3/lib/gattica/auth.rb

To this file, add the following line

VERSION = '0.3.4'

That’s it. You need to add it prior to Line 14. Before module Auth

Categories: Technology Tags: