Sha256: d76bcf8be0a470d1eff46f7f57e71cbf0cfa425cad352b4c4df1d7ab6f0cb9c2

Contents?: true

Size: 1.74 KB

Versions: 9

Compression:

Stored size: 1.74 KB

Contents

# -*- encoding: utf-8 -*-
redcloth_dir = Dir.pwd =~ /redcloth\/tmp/ ? File.expand_path("../../../..", Dir.pwd) : File.expand_path("..", __FILE__)
$LOAD_PATH.unshift File.join(redcloth_dir, 'lib')
require "redcloth/version"

Gem::Specification.new do |s|
  s.name        = "RedCloth"
  s.version     = RedCloth::VERSION.to_s
  s.authors     = ["Jason Garber", "why the lucky stiff", "Ola Bini"]
  s.description = "Textile parser for Ruby."
  s.summary     = RedCloth::SUMMARY
  s.email       = "redcloth-upwards@rubyforge.org"
  s.homepage    = "http://redcloth.org"
  s.rubyforge_project = "redcloth"

  s.rubygems_version   = "1.3.7"
  s.default_executable = "redcloth"

  s.files            = `git ls-files`.split("\n")
  s.test_files       = `git ls-files -- {spec}/*`.split("\n")
  s.executables      = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  s.extra_rdoc_files = ["COPYING", "README", "CHANGELOG"]
  s.rdoc_options     = ["--charset=UTF-8"]
  s.require_path     = "lib"

  s.files -= Dir['ext/**/*']
  s.files -= Dir['ragel/*']
  s.files -= Dir['lib/redcloth.jar']
  s.files -= Dir['lib/**/*.dll']
  s.files -= Dir['lib/**/*.bundle']
  s.files -= Dir['lib/**/*.so']
  
  s.platform = RUBY_PLATFORM[/java/] || 'ruby'
  case s.platform.to_s
  when /java/
    s.files += ['lib/redcloth_scan.jar']
  else # MRI or Rubinius
    s.files += %w[attributes inline scan].map {|f| "ext/redcloth_scan/redcloth_#{f}.c"}
    s.files += ["ext/redcloth_scan/redcloth.h"]
    s.extensions = Dir['ext/**/extconf.rb']
    s.add_development_dependency('rvm')
  end

  s.add_development_dependency('rake', '~> 0.8.7')
  s.add_development_dependency('rspec', '~> 2.1')
  s.add_development_dependency('diff-lcs')
  s.add_development_dependency('rake-compiler', '~> 0.7.1')
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
RedCloth-4.2.4.pre3-x86-mswin32-60 redcloth.gemspec
RedCloth-4.2.4.pre3-x86-mingw32 redcloth.gemspec
RedCloth-4.2.4.pre3-java redcloth.gemspec
RedCloth-4.2.4.pre3 redcloth.gemspec
RedCloth-4.2.4.pre2-x86-mswin32-60 redcloth.gemspec
RedCloth-4.2.4.pre2-x86-mingw32 redcloth.gemspec
RedCloth-4.2.4.pre2-java redcloth.gemspec
RedCloth-4.2.4.pre2 redcloth.gemspec
RedCloth-4.2.4.pre1 redcloth.gemspec