J
John Franey
I want to use NetAddr 1.2 with gems 0.9.2 and ruby 1.8.5 on Suse 10.2.
The lines of code:
require 'rubygems'
gem 'netaddr'
ipadd = NetAddr::CIDR.create("192.9.200.0/24")
The error: uninitialized constant NetAddr (NameError)
This works:
require 'rubygems'
require_gem 'netaddr'
ipadd = NetAddr::CIDR.create("192.9.200.0/24")
But I get the warning: "require_gem is obsolete. Use gem instead."
Any comments?
Thanks
The lines of code:
require 'rubygems'
gem 'netaddr'
ipadd = NetAddr::CIDR.create("192.9.200.0/24")
The error: uninitialized constant NetAddr (NameError)
This works:
require 'rubygems'
require_gem 'netaddr'
ipadd = NetAddr::CIDR.create("192.9.200.0/24")
But I get the warning: "require_gem is obsolete. Use gem instead."
Any comments?
Thanks