Skip to content

Instantly share code, notes, and snippets.

@bil-bas
Created August 27, 2010 12:15
Show Gist options
  • Save bil-bas/553247 to your computer and use it in GitHub Desktop.
Save bil-bas/553247 to your computer and use it in GitHub Desktop.
TexPlay gemspec
def specification(platform)
Gem::Specification.new do |s|
s.name = "texplay"
s.summary = "TexPlay is a light-weight image manipulation framework for Ruby and Gosu"
s.version = TexPlay::VERSION
s.date = Time.now.strftime '%Y-%m-%d'
s.author = "John Mair (banisterfiend)"
s.email = 'jrmair@gmail.com'
s.description = s.summary
s.require_path = 'lib'
s.add_dependency("gosu",">=0.7.20")
s.platform = platform
s.homepage = "http://banisterfiend.wordpress.com/2008/08/23/texplay-an-image-manipulation-tool-for-ruby-and-gosu/"
s.has_rdoc = false
s.files = ["Rakefile", "README.markdown", "CHANGELOG",
"lib/texplay.rb", "lib/texplay-contrib.rb", "lib/texplay/version.rb", "lib/1.8/texplay.so",
"lib/1.9/texplay.so"] +
FileList["examples/*.rb", "examples/media/*"].to_a
end
end
namespace :mingw do
Rake::GemPackageTask.new(specification("i386-mingw32")) do |package|
package.need_zip = false
package.need_tar = false
end
end
namespace :mswin32 do
Rake::GemPackageTask.new(specification("i386-mswin32")) do |package|
package.need_zip = false
package.need_tar = false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment