0

look at this error message

/Users/abc/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/json/common.rb:155:in initialize': A JSON text must at least contain two octets! (JSON::ParserError) from /Users/abc/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/json/common.rb:155:innew'

Under what circumstances does ruby use two version numbers?

in this case I see ruby-2.2.2 and 2.2.0

oystersauce8
  • 461
  • 5
  • 12

1 Answers1

1

2.2.0 is the ABI version (usually only interesting to people writing extension libraries) whereas 2.2.2 is the version of the Ruby implementation and in case of MRI (used by you) also the language version. See this official post for more details about its current versioning scheme.

cremno
  • 4,672
  • 1
  • 16
  • 27