Sha256: 8f4975c98b8d4954f8750d81f47acd87cf77153001e1348240edc5e417f1ff4d

Contents?: true

Size: 1.24 KB

Versions: 3

Compression:

Stored size: 1.24 KB

Contents

require 'yaml'
require 'pp'
require 'hashie'
require 'fileutils'

require 'backports/latest'
require 'memoist'

require 'money'
require 'geo/coord'
require 'tz_offset'

# Reality is library for accessing all world data, starting from Wikipedia.
#
# Look at {Entity} for good starting point.
#
# You also may want to navigate [Getting started](https://github.com/molybdenum-99/reality/wiki/Getting-started)
# page in our wiki.
module Reality
  # @private
  def self.require_(*modules)
    modules.flatten.flat_map{|pattern|
      Dir[File.expand_path("../reality/#{pattern}.rb", __FILE__)]
    }.each(&Kernel.method(:require))
  end

  # basic functionality
  require_ %w[version config measure tz_offset date coord currency]
  require_ %w[setup util util/description util/refinements util/parsers util/formatters]

  # engines
  USER_AGENT = "Reality/#{VERSION} (https://github.com/molybdenum-99/reality; zverok.offline@gmail.com)"

  # entities
  require_ %w[observation link query entity]

  # particular describers
  require_ %w[
    describers
    describers/abstract/base
    describers/abstract/media_wiki
    describers/wikipedia
    describers/wikidata
    describers/open_street_map
    describers/wikimedia_commons
    describers/open_weather_map
  ]
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reality-0.1.0.alpha3 lib/reality.rb
reality-0.1.0.alpha2 lib/reality.rb
reality-0.1.0.alpha lib/reality.rb