Sha256: eb290da8f88f5e696e3777941173c2e8bc7e2e47fded22bd4ef034a974883e53
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
require 'pathname' def require_task(path) begin require path yield rescue LoadError puts '', "Could not load '#{path}'.", 'Try to `rake gem:spec` and `bundle install` and try again.', '' end end spec = Gem::Specification.new do |s| # Variables s.name = 'game' s.authors = ['Ryan Scott Lewis'] s.email = ['ryan@rynet.us'] s.summary = 'Game is a cross-platform and cross-implementation MVC framework for creating video games in Ruby.' # Dependencies s.add_dependency 'version', '~> 1.0' s.add_development_dependency 'guard-rspec', '~> 2.1' s.add_development_dependency 'guard-yard', '~> 2.0' s.add_development_dependency 'rb-fsevent', '~> 0.9' s.add_development_dependency 'fuubar', '~> 1.1' s.add_development_dependency 'github-markup', '~> 0.7' # Pragmatically set variables s.homepage = "http://github.com/RyanScottLewis/#{s.name}" s.version = Pathname.glob('VERSION*').first.read s.description = Pathname.glob('README*').first.read s.require_paths = ['lib'] s.files = `git ls-files`.lines.to_a.collect { |s| s.strip } s.executables = `git ls-files -- bin/*`.lines.to_a.collect { |s| File.basename(s.strip) } end desc 'Generate the gemspec defined in this Rakefile' task :gemspec do Pathname.new("#{spec.name}.gemspec").open('w') { |f| f.write(spec.to_ruby) } end require_task 'rake/version_task' do Rake::VersionTask.new do |t| t.with_git_tag = true t.with_gemspec = spec end end require 'rubygems/package_task' Gem::PackageTask.new(spec) do |t| t.need_zip = false t.need_tar = false end task :default => :gemspec
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
game-0.0.1 | Rakefile |