I need to generate uuid numbers. I try to run this:
require_gem ‘uuid’
10.times do
p UUID.new
end
But I’m receiving this:
183260c1-1ad1-012b-bfbf-001c23187f94
uuid.rb:1:Warning: require_gem is obsolete. Use gem instead.
UUID: Initialized UUID generator with sequence number 0xbfbf and MAC
address
00-1C-23-18-7F-94
So I change require_gem with gem. Now I’m receiving this:
The example ‘~> 1.0.4’ will be true for all 1.0.x versions where x >=
4, but false for all 1.1 or higher versions (this is the “Pessimistic
Version Constraint” described at http://docs.rubygems.org/read/chapter/16#page74
if you want more).