Sha256: dcb357aa40d762631bea73174a03cbca8dc3150c3c4fcb98fa3026f8cfb724a1
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
# Standard Library Dependencies: require 'uri' require 'erb' require 'zlib' require 'yaml' require 'base64' require 'pathname' require 'fileutils' # Try Uglifier. begin require 'uglifier' require 'jammit/uglifier' rescue LoadError Jammit.javascript_compressors.delete :uglifier end # Try YUI begin require 'yui/compressor' rescue LoadError Jammit.javascript_compressors.delete :yui Jammit.css_compressors.delete :yui end # Try Closure. begin require 'closure-compiler' rescue LoadError Jammit.javascript_compressors.delete :closure end # Try Sass begin require 'sass' require 'jammit/sass_compressor' rescue LoadError Jammit.css_compressors.delete :sass end # Load initial configuration before the rest of Jammit. Jammit.load_configuration(Jammit::DEFAULT_CONFIG_PATH, true) if defined?(Rails) # Jammit Core: require 'jsmin' require 'cssmin' require 'jammit/jsmin_compressor' require 'jammit/cssmin_compressor' require 'jammit/none_compressor' require 'jammit/compressor' require 'jammit/packager' # Jammit Rails Integration: if defined?(Rails) require 'jammit/controller' require 'jammit/helper' require 'jammit/railtie' require 'jammit/routes' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jammit-ebtd-0.6.9 | lib/jammit/dependencies.rb |
jammit-ebtd-0.6.8 | lib/jammit/dependencies.rb |
jammit-ebtd-0.6.7 | lib/jammit/dependencies.rb |