lib/reality.rb in reality-0.0.5 vs lib/reality.rb in reality-0.1.0.alpha

- old
+ new

@@ -1,8 +1,17 @@ -require 'infoboxer' 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) @@ -14,26 +23,26 @@ Dir[File.expand_path("../reality/#{pattern}.rb", __FILE__)] }.each(&Kernel.method(:require)) end # basic functionality - require_ %w[version refinements config measure geo tz_offset] - require_ %w[util/parsers util/formatters] + require_ %w[version config measure tz_offset date coord currency] + require_ %w[setup util util/description util/refinements util/parsers util/formatters] # engines - require_ %w[infoboxer_templates wikidata] - Infoboxer.user_agent = "Reality/#{VERSION} (https://github.com/molybdenum-99/reality; zverok.offline@gmail.com)" + USER_AGENT = "Reality/#{VERSION} (https://github.com/molybdenum-99/reality; zverok.offline@gmail.com)" # entities - require_ %w[entity list] - require_ %w[definitions/*] - require_ %w[methods names] + require_ %w[observation link query entity] - include Methods - extend Methods - - # extras - require_ %w[extras/open_weather_map extras/geonames extras/quandl] - include Extras::OpenWeatherMap - include Extras::Geonames - include Extras::Quandl + # 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