Sha256: ae7218c026c1a46d2c689a1cafcdab91b192c6985e764d42747d0ca2c63f8860

Contents?: true

Size: 791 Bytes

Versions: 2

Compression:

Stored size: 791 Bytes

Contents

module Ana
  module Scalars
    TTL = 900 # ~/gemjsons/gemname/*.json expires time.
    GEM_NOT_FOUND      = 'This rubygem could not be found.'
    GEM_DOES_NOT_EXIST = 'This gem does not exist.'
    GEM_VER_NOT_FOUND  = 'This version could not be found.'

    # Terminal Colour Codes
    # http://en.wikipedia.org/wiki/ANSI_escape_code
    BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = [*30..37]

    # $ curl https://rubygems.org/api/v1/gems/rails.json
    # URIs of above json
    URI_TYPE = {
      'proj' =>  'project_uri',
      'lib'  =>  'gem_uri',
      'home' =>  'homepage_uri',
      'wiki' =>  'wiki_uri',
      'doc'  =>  'documentation_uri',
      'mail' =>  'mailing_list_uri',
      'src'  =>  'source_code_uri',
      'bug'  =>  'bug_tracker_uri',
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ana-0.9.8 lib/ana/constants.rb
ana-0.9.7 lib/ana/constants.rb