Sha256: 43f2626e581189acf97d2e0bb27a9080717566b8fad7e0c2d81fe9798b925ff6

Contents?: true

Size: 784 Bytes

Versions: 2

Compression:

Stored size: 784 Bytes

Contents

require "motion-memorymanagement/version"

Motion::Project::App.setup do |app|
  # rip off from teacup. All this dependency injection sucks, can we haz better gem support?..
  # scans app.files until it finds app/ (the default)
  # if found, it inserts just before those files, otherwise it will insert to
  # the end of the list
  insert_point = 0
  app.files.each_index do |index|
    file = app.files[index]
    if file =~ /^(?:\.\/)?app\//
      # found app/, so stop looking
      break
    end
    insert_point = index + 1
  end

  app.files.insert(insert_point, File.dirname(__FILE__) + '/motion-memorymanagement/runtime_helpers.rb')

  mmRoot = File.expand_path(File.dirname(__FILE__) + '/../MMRuntime')
  app.vendor_project(mmRoot, :static, :headers_dir => 'MMRuntime')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
motion-memorymanagement-0.1.0 lib/motion-memorymanagement.rb
motion-memorymanagement-0.0.1 lib/motion-memorymanagement.rb