File: pureruby.rake

package info (click to toggle)
ruby-redcloth 4.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 708 kB
  • sloc: ruby: 1,233; ansic: 201; makefile: 25
file content (17 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Apparently this file gets loaded by Rails. Only want to define the pureruby
# task in the context of RedCloth compilation (echoe loaded).

if Gem::Specification.const_defined?(:PLATFORM_CROSS_TARGETS)
  Gem::Specification::PLATFORM_CROSS_TARGETS << "pureruby"

  task 'pureruby' do
    reset_target 'pureruby'
  end

  if target = ARGV.detect do |arg| 
    # Hack to get the platform set before the Rakefile evaluates
      Gem::Specification::PLATFORM_CROSS_TARGETS.include? arg
    end
    reset_target target
  end
end