Sha256: ed1316f3b6f55aebecd92ad7f1921380f3634c4e63ccba0065ab71425a3ad3bd

Contents?: true

Size: 1.32 KB

Versions: 7

Compression:

Stored size: 1.32 KB

Contents

if RUBY_ENGINE == 'opal'
  require 'hyperloop/string'
  require 'hyperloop/client_stubs'
  require 'hyperloop/context'
  require 'hyperloop/js_imports'
  require 'hyperloop/on_client'
  require 'hyperloop/active_support_string_inquirer.rb'
  require 'hyperloop_env'
else
  require 'opal'
  require 'opal-browser'
  begin
    require 'opal-rails' if defined? Rails
  rescue LoadError
  end
  require 'hyperloop/config_settings'
  require 'hyperloop/context'
  require 'hyperloop/imports'
  require 'hyperloop/js_imports'
  require 'hyperloop/client_readers'
  require 'hyperloop/on_client'
  require 'hyperloop/rail_tie' if defined? Rails
  require 'hyperloop/active_support_string_inquirer.rb' unless defined? ActiveSupport
  require 'hyperloop/env'
  require 'hyperloop/on_error'
  Hyperloop.import 'opal', gem: true
  Hyperloop.import 'browser', client_only: true
  Hyperloop.import 'hyperloop-config', gem: true
  Hyperloop.import 'hyperloop/autoloader'
  Hyperloop.import 'hyperloop/autoloader_starter'
  # based on the environment pick the directory containing the file with the matching
  # value for the client.  This avoids use of ERB for builds outside of sprockets environment
  Opal.append_path(File.expand_path("../hyperloop/environment/#{Hyperloop.env}/", __FILE__).untaint)
  Opal.append_path(File.expand_path('../', __FILE__).untaint)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyperloop-config-0.99.6 lib/hyperloop-config.rb
hyperloop-config-0.99.5 lib/hyperloop-config.rb
hyperloop-config-0.99.4 lib/hyperloop-config.rb
hyperloop-config-0.99.3 lib/hyperloop-config.rb
hyperloop-config-0.99.2 lib/hyperloop-config.rb
hyperloop-config-0.99.1 lib/hyperloop-config.rb
hyperloop-config-0.99.0 lib/hyperloop-config.rb