Sha256: caa58e755f893e7810a16346a9e37de6586db02762074134ea4b393fc3f30ee9

Contents?: true

Size: 1.93 KB

Versions: 8

Compression:

Stored size: 1.93 KB

Contents

require 'base64'
require 'stringio'
require 'data_uri'
require 'securerandom'
require 'isomorfeus-transport'
require 'isomorfeus/data/config'
require 'isomorfeus/data/attribute_support'
require 'isomorfeus/data/field_support'
require 'isomorfeus/data/generic_class_api'
require 'isomorfeus/data/generic_instance_api'
require 'isomorfeus/data/element_validator'

if RUBY_ENGINE == 'opal'
  require 'isomorfeus/data/reducer'
  Isomorfeus::Data::Reducer.add_reducer_to_store
  Isomorfeus.zeitwerk.push_dir('isomorfeus_data')
  require_tree 'isomorfeus_data', autoload: true
  Isomorfeus.zeitwerk.push_dir('data')
else
  require 'fileutils'
  require 'uri'
  require 'oj'
  require 'active_support'
  require 'active_support/core_ext/hash'

  require 'isomorfeus-ferret'
  require 'isomorfeus/data/ferret_accelerator'

  require 'isomorfeus-hamster'
  require 'isomorfeus/data/hamster_storage_expander'
  require 'isomorfeus/data/hamster_accelerator'

  require 'isomorfeus_data/lucid_query_result'
  require 'isomorfeus_data/lucid_object/mixin'
  require 'isomorfeus_data/lucid_object/base'
  require 'isomorfeus_data/lucid_document/mixin'
  require 'isomorfeus_data/lucid_document/base'
  require 'isomorfeus_data/lucid_query/mixin'
  require 'isomorfeus_data/lucid_query/base'
  require 'isomorfeus_data/lucid_file/mixin'
  require 'isomorfeus_data/lucid_file/base'

  require 'isomorfeus/data/handler/generic'

  require 'iso_opal'
  Opal.append_path(__dir__.untaint) unless IsoOpal.paths.include?(__dir__.untaint)
  uri_path = File.expand_path(File.join(__dir__.untaint, '..', 'opal'))
  Opal.append_path(uri_path) unless IsoOpal.paths.include?(uri_path)

  data_uri_path = File.join(Gem::Specification.find_by_name('data_uri').gem_dir, 'lib')
  Opal.append_path(data_uri_path) unless IsoOpal.paths.include?(data_uri_path)

  path = File.expand_path(File.join('app', 'data'))

  Isomorfeus.zeitwerk.push_dir(path)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
isomorfeus-data-2.0.0.rc8 lib/isomorfeus-data.rb
isomorfeus-data-2.0.0.rc7 lib/isomorfeus-data.rb
isomorfeus-data-2.0.0.rc6 lib/isomorfeus-data.rb
isomorfeus-data-2.0.0.rc5 lib/isomorfeus-data.rb
isomorfeus-data-2.0.0.rc4 lib/isomorfeus-data.rb
isomorfeus-data-2.0.0.rc3 lib/isomorfeus-data.rb
isomorfeus-data-2.0.0.rc2 lib/isomorfeus-data.rb
isomorfeus-data-2.0.0.rc1 lib/isomorfeus-data.rb