lib/contentful/client.rb
def os_info
      os_name = case ::RbConfig::CONFIG['host_os']
                when /(cygwin|mingw|mswin|windows)/i then 'Windows'
                when /(darwin|macruby|mac os)/i      then 'macOS'
                when /(linux|bsd|aix|solarix)/i      then 'Linux'
                end
      { name: os_name, version: Gem::Platform.local.version }
    end
def os_info
      os_name = case ::RbConfig::CONFIG['host_os']
                when /(cygwin|mingw|mswin|windows)/i then 'Windows'
                when /(darwin|macruby|mac os)/i      then 'macOS'
                when /(linux|bsd|aix|solarix)/i      then 'Linux'
                end
      { name: os_name, version: Gem::Platform.local.version }
    end
def os_info os_name = case :: RbConfig :: CONFIG [ 'host_os' ] when / /i then 'Windows' when / /i then 'macOS' when / /i then 'Linux' end { name : os_name , version : Gem :: Platform . local . version } end
Returns the X-Contentful-User-Agent os data
 @private
Returns the X - Contentful - User - Agent os data