lib/sproutcore/library.rb
# Returns the computed environment for a particular client or framework.
# This will go up the chain of parent libraries, retrieving and merging
# any known environment settings.  The returned options are suitable for
# passing to the ClientBuilder for registration.
#
# The process here is:
#
# 1. merge together the :all configs.
# 2. Find the deepest config for the bundle specifically and merge that.
#
Returns the computed environment for a particular client or framework.
This will go up the chain of parent libraries, retrieving and merging
any known environment settings.  The returned options are suitable for
passing to the ClientBuilder for registration.

The process here is.

1. merge together the :all configs.
2. Find the deepest config for the bundle specifically and merge that.
Returns the computed environment for a particular client or framework . This will go up the chain of parent libraries retrieving and merging any known environment settings . The returned options are suitable for passing to the ClientBuilder for registration . The process here is . 1 . merge together the : all configs . 2 . Find the deepest config for the bundle specifically and merge that .
def environment_for(bundle_name=nil)
      return base_environment if bundle_name.nil?
      bundle_location = bundle_location_for(bundle_name)
      return nil if bundle_location.nil?
      base_env = base_environment
      config_env = bundle_environment_for(bundle_name)
      ret = base_env.dup.merge(config_env).merge(bundle_location)
      ret[:required] = [:sproutcore] if ret[:required].nil?
      ret[:library] = self
      return ret
    end
def environment_for ( bundle_name = nil ) return base_environment if bundle_name . nil? bundle_location = bundle_location_for ( bundle_name ) return nil if bundle_location . nil? base_env = base_environment config_env = bundle_environment_for ( bundle_name ) ret = base_env . dup . merge ( config_env ) . merge ( bundle_location ) ret [ :required ] = [ :sproutcore ] if ret [ :required ] . nil? ret [ :library ] = self return ret end
Returns the computed environment for a particular client or framework.
Returns the computed environment for a particular client or framework .
# If no bundle name is provided, then just return the base environment. # Get the bundle location info.  This will return nil if the bundle # is not found anywhere.  In that case, return nil to indicate bundle # does not exist. # A bundle was found, so collect the base environment and any bundle- # specific configs provided by the developer. # Now we have the relevant pieces. Join them together.  Start with the # base environment and fill in some useful defaults... # Add local library so we get proper deployment paths, etc. # Done!  return...
bundle_name
<not_specific>