Sha256: b749265b7afa0d4f232c53c1bdbd949553e26574c9d0074ade155cec5b74c5ef

Contents?: true

Size: 1.42 KB

Versions: 3

Compression:

Stored size: 1.42 KB

Contents

require 'opal'
require 'opal-autoloader'
require 'opal-activesupport'
require 'isomorfeus-redux'
require 'isomorfeus-react'
require 'isomorfeus-transport'

require 'isomorfeus/data/config'
require 'isomorfeus/data/props'
require 'lucid_node/mixin'
require 'lucid_node/base'
require 'lucid_edge/mixin'
require 'lucid_edge/base'
require 'lucid_array/mixin'
require 'lucid_array/base'
require 'lucid_collection/mixin'
require 'lucid_collection/base'
require 'lucid_graph/mixin'
require 'lucid_graph/base'
require 'lucid_hash/mixin'
require 'lucid_hash/base'

if RUBY_ENGINE == 'opal'
  require 'isomorfeus/data/core_ext/hash/deep_merge'
  require 'isomorfeus/data/reducer'
  Isomorfeus::Data::Reducer.add_reducer_to_store
  Opal::Autoloader.add_load_path('data')
else
  require 'oj'
  require 'active_support'
  require 'active_support/core_ext/hash'
  require 'isomorfeus/data/handler/array_load_handler'
  require 'isomorfeus/data/handler/collection_load_handler'
  require 'isomorfeus/data/handler/graph_load_handler'
  require 'isomorfeus/data/handler/hash_load_handler'

  Opal.append_path(__dir__.untaint) unless Opal.paths.include?(__dir__.untaint)

  require 'active_support/dependencies'

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

  ActiveSupport::Dependencies.autoload_paths << path
  # we also need to require them all, so classes are registered accordingly
  Dir.glob("#{path}/**/*.rb").each do |file|
    require file
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
isomorfeus-data-1.0.0.zeta4 lib/isomorfeus-data.rb
isomorfeus-data-1.0.0.zeta3 lib/isomorfeus-data.rb
isomorfeus-data-1.0.0.zeta2 lib/isomorfeus-data.rb