<commit_before>#!/usr/bin/ruby -w

require 'rubygems'
require 'rake/gempackagetask'
require 'rake/clean'
require 'rake/rdoctask'
require 'rake/testtask'


#Configuration variables.
PRODUCT_NAME = "Zyps"
PRODUCT_VERSION = "0.6.1"
SUMMARY = "A game library for Ruby"
AUTHOR = "<NAME>"
AUTHOR_EMAIL = "<EMAIL>"
WEB_SITE = "http://jay.mcgavren.com/#{PRODUCT_NAME.downcase}/"
REQUIREMENTS = [
	"Ruby-GNOME2"
]
EXECUTABLES = [
	PRODUCT_NAME.downcase,
	"#{PRODUCT_NAME.downcase}_demo",
	"#{PRODUCT_NAME.downcase}_server"
]


#Set up rdoc.
RDOC_OPTIONS = [
	"--title", "#{PRODUCT_NAME} - #{SUMMARY}",
	"--main", "README.txt"
]


desc "Create a gem by default"
task :default => [:test, :gem]


desc "Create documentation"
Rake::RDocTask.new do |rdoc|
	rdoc.rdoc_dir = "doc"
	rdoc.rdoc_files = FileList[
		"lib/**/*.rb",
		"*.txt",
	].exclude(/\bsvn\b/).to_a
	rdoc.options = RDOC_OPTIONS
end


desc "Test the package"
Rake::TestTask.new do |test|
	test.libs << "lib"
	test.test_files = FileList["test/**/test_*.rb"]
end


desc "Run a demonstration"
task :demo do
	$: << "lib"
	load "bin/zyps_demo"
end


desc "Package a gem"
specification = Gem::Specification.new do |spec|
	spec.name = PRODUCT_NAME.downcase
	spec.version = PRODUCT_VERSION
	spec.author = AUTHOR
	spec.email = AUTHOR_EMAIL
	spec.homepage = WEB_SITE
	spec.platform = Gem::Platform::RUBY
	spec.summary = SUMMARY
	spec.requirements << REQUIREMENTS
	spec.rubyforge_project = PRODUCT_NAME.downcase
	spec.require_path = "lib"
	spec.autorequire = PRODUCT_NAME.downcase
	spec.test_files = Dir.glob("test/test_*.rb")
	spec.has_rdoc = true
	spec.rdoc_options = RDOC_OPTIONS
	spec.extra_rdoc_files = ["README.txt", "COPYING.LESSER.txt", "COPYING.txt"]
	spec.files = FileList[
		"*.txt",
		"bin/**/*",
		"lib/**/*",
		"test/**/*",
		"doc/**/*"
	].exclude(/\bsvn\b/).to_a
	spec.executables = EXECUTABLES
end
Rake::GemPackageTask.new(specification) do |package|
	package.need_tar = true
end


CLOBBER.include(%W{doc})
<commit_msg>Version number updated.<commit_after>#!/usr/bin/ruby -w

require 'rubygems'
require 'rake/gempackagetask'
require 'rake/clean'
require 'rake/rdoctask'
require 'rake/testtask'


#Configuration variables.
PRODUCT_NAME = "Zyps"
PRODUCT_VERSION = "0.6.2"
SUMMARY = "A game library for Ruby"
AUTHOR = "<NAME>"
AUTHOR_EMAIL = "<EMAIL>"
WEB_SITE = "http://jay.mcgavren.com/#{PRODUCT_NAME.downcase}/"
REQUIREMENTS = [
	"Ruby-GNOME2"
]
EXECUTABLES = [
	PRODUCT_NAME.downcase,
	"#{PRODUCT_NAME.downcase}_demo",
	"#{PRODUCT_NAME.downcase}_server"
]


#Set up rdoc.
RDOC_OPTIONS = [
	"--title", "#{PRODUCT_NAME} - #{SUMMARY}",
	"--main", "README.txt"
]


desc "Create a gem by default"
task :default => [:test, :gem]


desc "Create documentation"
Rake::RDocTask.new do |rdoc|
	rdoc.rdoc_dir = "doc"
	rdoc.rdoc_files = FileList[
		"lib/**/*.rb",
		"*.txt",
	].exclude(/\bsvn\b/).to_a
	rdoc.options = RDOC_OPTIONS
end


desc "Test the package"
Rake::TestTask.new do |test|
	test.libs << "lib"
	test.test_files = FileList["test/**/test_*.rb"]
end


desc "Run a demonstration"
task :demo do
	$: << "lib"
	load "bin/zyps_demo"
end


desc "Package a gem"
specification = Gem::Specification.new do |spec|
	spec.name = PRODUCT_NAME.downcase
	spec.version = PRODUCT_VERSION
	spec.author = AUTHOR
	spec.email = AUTHOR_EMAIL
	spec.homepage = WEB_SITE
	spec.platform = Gem::Platform::RUBY
	spec.summary = SUMMARY
	spec.requirements << REQUIREMENTS
	spec.rubyforge_project = PRODUCT_NAME.downcase
	spec.require_path = "lib"
	spec.autorequire = PRODUCT_NAME.downcase
	spec.test_files = Dir.glob("test/test_*.rb")
	spec.has_rdoc = true
	spec.rdoc_options = RDOC_OPTIONS
	spec.extra_rdoc_files = ["README.txt", "COPYING.LESSER.txt", "COPYING.txt"]
	spec.files = FileList[
		"*.txt",
		"bin/**/*",
		"lib/**/*",
		"test/**/*",
		"doc/**/*"
	].exclude(/\bsvn\b/).to_a
	spec.executables = EXECUTABLES
end
Rake::GemPackageTask.new(specification) do |package|
	package.need_tar = true
end


CLOBBER.include(%W{doc})

{'fraction_non_alphanumeric': 0.1680990899898888, 'fraction_numerical': 0.0020222446916076846, 'mean_word_length': 4.542016806722689, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '703770', 'n_tokens_mistral': 1683, 'n_tokens_neox': 1592, 'n_words': 306}