Permalink
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (45 sloc) 2.18 KB
# -*- 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 = Dir['.gemtest', '.rspec', 'CHANGELOG', 'COPYING', 'Gemfile', 'README.rdoc', 'Rakefile', 'doc/**/*', 'bin/**/*', 'lib/**/*', 'redcloth.gemspec', 'spec/**/*', 'tasks/**/*']
s.test_files = Dir['spec/**/*']
s.executables = ['redcloth']
s.extra_rdoc_files = ["README.rdoc", "COPYING", "CHANGELOG"]
s.rdoc_options = ["--charset=UTF-8", "--line-numbers", "--inline-source", "--title", "RedCloth", "--main", "README.rdoc"]
s.require_paths += ["lib/case_sensitive_require", "ext"]
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']
end
s.add_development_dependency('bundler', '~> 1.0.10')
s.add_development_dependency('rake', '~> 0.8.7')
s.add_development_dependency('rspec', '~> 2.4')
s.add_development_dependency('diff-lcs', '~> 1.1.2')
# Have to load these even though they're only needed for
# gem packaging. Otherwise, Bundler complains that they're
# not installed even though they're not required.
# See https://github.com/carlhuda/bundler/issues/issue/1021
s.add_development_dependency('rvm', '~> 1.2.6')
s.add_development_dependency('rake-compiler', '~> 0.7.1')
end