Sha256: e10e2a4cc217bb0d379e92c429d9f4fcce887112fd21b7ffcb4b749fb8db32af

Contents?: true

Size: 1.08 KB

Versions: 39

Compression:

Stored size: 1.08 KB

Contents

Rake::Task['build'].prerequisites.unshift('compile')

namespace :build do
    desc "Generate Windows binary gems"
    task :win do
      unless File.directory?(File.expand_path('~/.rake-compiler'))
        STDERR.puts <<-EOM

  You must install Windows rubies to ~/.rake-compiler with:

    rake-compiler cross-ruby VERSION=1.8.6-p398
    # (Later 1.9.1 patch levels don't compile on mingw) 
    rake-compiler cross-ruby VERSION=1.9.1-p243
  EOM
        exit(1)
      end
      # rvm and mingw ruby versions have to match to avoid errors
      sh "rvm ruby-1.8.6-p398@redcloth rake cross compile RUBY_CC_VERSION=1.8.6"
      sh "rvm ruby-1.9.1-p243@redcloth rake cross compile RUBY_CC_VERSION=1.9.1"
      # This will copy the .so files to the proper place
      sh "rake cross native gem RUBY_CC_VERSION=1.8.6:1.9.1"
    end

    desc 'Generate JRuby binary gem'
    task :jruby do
      sh "rvm jruby@redcloth rake java gem"
    end

    desc "Build ruby, windows, and jruby gems into the pkg directory"
    task :all => [
      :clobber,
      "rvm:spec",
      :jruby,
      :win,
      :build
    ]
end

Version data entries

39 entries across 39 versions & 7 rubygems

Version Path
gv-RedCloth-4.3.2 tasks/gems.rake
parity-RedCloth-4.2.13 tasks/gems.rake
parity-RedCloth-4.2.12 tasks/gems.rake
parity-RedCloth-4.2.11 tasks/gems.rake
parity-RedCloth-4.2.10 tasks/gems.rake
parity-RedCloth-4.2.9 tasks/gems.rake
YSRedCloth-4.2.18 tasks/gems.rake
assplecake-RedCloth-4.2.10 tasks/gems.rake
YSRedCloth-4.2.17 tasks/gems.rake
YSRedCloth-4.2.16 tasks/gems.rake
gv-RedCloth-4.2.9 tasks/gems.rake
YSRedCloth-4.2.15 tasks/gems.rake
YSRedCloth-4.2.14 tasks/gems.rake
YSRedCloth-4.2.13 tasks/gems.rake
YSRedCloth-4.2.12 tasks/gems.rake
YSRedCloth-4.2.11 tasks/gems.rake
YSRedCloth-4.2.10 tasks/gems.rake
YSRedCloth-4.2.9 tasks/gems.rake
radiant-1.0.0 ruby-debug/ruby/1.8/gems/RedCloth-4.2.9/tasks/gems.rake
assplecake-RedCloth-4.2.9 tasks/gems.rake