Sha256: e99b0e0526f7e0b1d3b2dd437821f197c9b055dbbc5f9983c7c2a08832dff725
Contents?: true
Size: 1003 Bytes
Versions: 2
Compression:
Stored size: 1003 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) require 'kung_figure' require 'active_support' module Depo VERSION = '0.0.1' autoload :Config, 'depo/config' autoload :Build, 'depo/build' autoload :DijitConventions, 'depo/dijit_conventions' autoload :ViewHelpers, 'depo/view_helpers' include KungFigure class << self alias_method :old_configure, :configure def configure(&block) old_configure(&block) dojofy if Depo.config.enable_dojofy end def dojofy Dir.chdir(RAILS_ROOT) do version = Depo.config.dojo_version system "dojofy _#{version}_ #{Depo.config.src_path}" end end def enable return if ActionView::Base.instance_methods.include? 'dojo' if defined?(ActionController::Base) ActionView::Base.send :include, ViewHelpers end end end end if defined?(Rails) and defined?(ActionView) Depo.enable end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
depo-0.0.2 | lib/depo.rb |
depo-0.0.1 | lib/depo.rb |