Sha256: 9890f91232195dfeae704e092efcf33508ff650ce6804dc357f9b28d2b83c5b9

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

$:.unshift File.dirname(__FILE__)

module CodeSync
  require 'code_sync/version'
  require 'code_sync/manager'
  require 'code_sync/processors'

  if defined?(Middleman)
    require 'middleman_extension'
  end

  if defined?(::Rails)
    require "code_sync/rails"
  end

  def self.gem_assets_root
    File.join(File.dirname(__FILE__), '..')
  end

end

# When using outside of Rails.
# Allows for using Rails asset pipline gems.
unless defined? ::Rails
  module Rails
    def self.version
      "3.2.13"
    end

    def self.env
      Class.new do
        def test?
          false
        end
      end.new
    end

    class Engine
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
code_sync-0.6.7 lib/code_sync.rb