Sha256: dbbafa501678a17292f4984930be5c0efcef28c63ab826902df358a8179db1f8

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

Contents

module Ana
  module Scalars
    TTL = 900 # Every 900s updates the json.
    GEM_NOT_FOUND     = 'This rubygem could not be found.'
    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

4 entries across 4 versions & 1 rubygems

Version Path
ana-0.9.3 lib/ana/constants.rb
ana-0.9.2 lib/ana/constants.rb
ana-0.9.1 lib/ana/constants.rb
ana-0.9.0 lib/ana/constants.rb