Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (44 sloc) 1.694 kB
require 'rubygems'
require 'hitimes/version'
require 'tasks/config'
Hitimes::GEM_SPEC = Gem::Specification.new do |spec|
proj = Configuration.for('project')
spec.name = proj.name
spec.version = Hitimes::VERSION
spec.author = proj.author
spec.email = proj.email
spec.homepage = proj.homepage
spec.summary = proj.summary
spec.description = proj.description
spec.platform = Gem::Platform::RUBY
pkg = Configuration.for('packaging')
spec.files = pkg.files.all
spec.executables = pkg.files.bin.collect { |b| File.basename(b) }
# add dependencies here
spec.add_dependency("rake", "~> 0.8.1")
spec.add_dependency("configuration", " ~> 0.0.5")
spec.add_development_dependency( "json", "~> 1.1.3")
if ext_conf = Configuration.for_if_exist?("extension") then
spec.extensions << ext_conf.configs
spec.require_paths << 'ext'
spec.extensions.flatten!
end
if rdoc = Configuration.for_if_exist?('rdoc') then
spec.has_rdoc = true
spec.extra_rdoc_files = pkg.files.rdoc
spec.rdoc_options = rdoc.options + [ "--main" , rdoc.main_page ]
else
spec.has_rdoc = false
end
if test = Configuration.for_if_exist?('testing') then
spec.test_files = test.files
end
if rf = Configuration.for_if_exist?('rubyforge') then
spec.rubyforge_project = rf.project
end
end
Hitimes::GEM_SPEC_WIN = Hitimes::GEM_SPEC.clone
Hitimes::GEM_SPEC_WIN.platform = ::Gem::Platform.new( "i386-mswin32_60" )
Hitimes::GEM_SPEC_WIN.extensions = []
Hitimes::GEM_SPEC_WIN.files += ["lib/hitimes_ext.so"]
Hitimes::SPECS = [ Hitimes::GEM_SPEC, Hitimes::GEM_SPEC_WIN ]
Jump to Line
Something went wrong with that request. Please try again.