Sha256: 809acf99e54342ade9a06ef54f22acc80560949929536fbe4f7163f374214830

Contents?: true

Size: 1.83 KB

Versions: 7

Compression:

Stored size: 1.83 KB

Contents

require 'hyperstack/boot'
module Hyperstack
  def self.naming_convention
    :camelize_params
  end
end
if RUBY_ENGINE == 'opal'
  require 'hyperstack/deprecation_warning'
  require 'hyperstack/string'
  require 'hyperstack/client_stubs'
  require 'hyperstack/context'
  require 'hyperstack/js_imports'
  require 'hyperstack/on_client'
  require 'hyperstack/active_support_string_inquirer.rb'
  require 'hyperstack_env'
  require 'hyperstack/hotloader/stub'
else
  require 'opal'
  require 'opal-browser'
  # We need opal-rails to be loaded for Gem code to be properly included by sprockets.
  begin
    require 'opal-rails' if defined? Rails
  rescue LoadError
    puts "****** WARNING: To use Hyperstack with Rails you must include the 'opal-rails' gem in your gem file."
  end
  require 'hyperstack/config_settings'
  require 'hyperstack/context'
  require 'hyperstack/imports'
  require 'hyperstack/js_imports'
  require 'hyperstack/client_readers'
  require 'hyperstack/on_client'

  if defined? Rails
    require 'hyperstack/rail_tie'
  end
  require 'hyperstack/active_support_string_inquirer.rb' unless defined? ActiveSupport
  require 'hyperstack/env'
  require 'hyperstack/on_error'
  Hyperstack.define_setting :hotloader_port, 25222
  Hyperstack.define_setting :hotloader_ping, nil
  Hyperstack.import 'opal', gem: true
  Hyperstack.import 'browser', client_only: true
  Hyperstack.import 'hyperstack-config', gem: true
  Hyperstack.import 'hyperstack/autoloader'
  Hyperstack.import 'hyperstack/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("../hyperstack/environment/#{Hyperstack.env}/", __FILE__).untaint)
  Opal.append_path(File.expand_path('../', __FILE__).untaint)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyperstack-config-1.0.alpha1.4 lib/hyperstack-config.rb
hyperstack-config-1.0.alpha1.3 lib/hyperstack-config.rb
hyperstack-config-1.0.alpha1.2 lib/hyperstack-config.rb
hyperstack-config-1.0.alpha1.1 lib/hyperstack-config.rb
hyperstack-config-1.0.0.pre.alpha1 lib/hyperstack-config.rb
hyperstack-config-1.0.alpha1 lib/hyperstack-config.rb
hyperstack-config-1.0.pre.alpha1 lib/hyperstack-config.rb