Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rakefile: Generate index before building gem

  • Loading branch information...
commit fef9eedbc758a6580599aa44424444082bcad990 1 parent f140328
@runpaint authored
Showing with 71 additions and 2 deletions.
  1. +14 −2 Rakefile
  2. +57 −0 unicode-data.gemspec
View
16 Rakefile
@@ -1,17 +1,21 @@
require 'rubygems'
require 'rake'
+$LOAD_PATH.unshift('lib')
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "unicode-data"
- gem.summary = %Q{TODO: one-line summary of your gem}
- gem.description = %Q{TODO: longer description of your gem}
+ gem.summary = %Q{Ruby interface to UnicodeData.txt}
+ gem.description = %Q{Low-level interface to UnicodeData.txt}
gem.email = "runrun@runpaint.org"
gem.homepage = "http://github.com/runpaint/unicode-data"
gem.authors = ["Run Paint Run Run"]
gem.add_development_dependency "rspec"
gem.add_development_dependency "yard"
+ gem.files.include 'data/*index'
+
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
@@ -34,6 +38,14 @@ task :spec => :check_dependencies
task :default => :spec
+
+task :build_index do
+ require 'unicode-data'
+ UnicodeData.build_index
+end
+
+Rake::Task["gemspec"].prerequisites << "build_index" if Rake::Task.task_defined?("gemspec")
+
begin
require 'yard'
YARD::Rake::YardocTask.new
View
57 unicode-data.gemspec
@@ -0,0 +1,57 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE
+# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{unicode-data}
+ s.version = "0.0.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Run Paint Run Run"]
+ s.date = %q{2009-09-11}
+ s.description = %q{Low-level interface to UnicodeData.txt}
+ s.email = %q{runrun@runpaint.org}
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README.rdoc"
+ ]
+ s.files = [
+ ".document",
+ ".gitignore",
+ "LICENSE",
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "data/UnicodeData.index",
+ "data/UnicodeData.txt",
+ "lib/unicode-data.rb",
+ "spec/spec_helper.rb",
+ "spec/unicode-data_spec.rb"
+ ]
+ s.homepage = %q{http://github.com/runpaint/unicode-data}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.4}
+ s.summary = %q{Ruby interface to UnicodeData.txt}
+ s.test_files = [
+ "spec/unicode-data_spec.rb",
+ "spec/spec_helper.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_development_dependency(%q<rspec>, [">= 0"])
+ s.add_development_dependency(%q<yard>, [">= 0"])
+ else
+ s.add_dependency(%q<rspec>, [">= 0"])
+ s.add_dependency(%q<yard>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<rspec>, [">= 0"])
+ s.add_dependency(%q<yard>, [">= 0"])
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.