Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update.

  • Loading branch information...
commit e3cfc8efa9d680598ee5dd55f1378afa67845aee 1 parent cef1e45
Alex Fortuna authored
Showing with 61 additions and 61 deletions.
  1. +60 −60 Rakefile
  2. +1 −1  handles_sortable_columns.gemspec
View
120 Rakefile
@@ -1,60 +1,60 @@
-require "rake/rdoctask"
-require "yaml"
-
-GEM_NAME = "handles_sortable_columns"
-
-begin
- require "jeweler"
- Jeweler::Tasks.new do |gem|
- gem.name = GEM_NAME
- gem.summary = "Sortable Table Columns"
- gem.description = gem.summary
- gem.email = "alex.r@askit.org"
- gem.homepage = "http://github.com/dadooda/handles_sortable_columns"
- gem.authors = ["Alex Fortuna"]
- gem.files = FileList[
- "[A-Z]*",
- "*.gemspec",
- "init.rb",
- "lib/**/*.rb",
- ]
- end
-rescue LoadError
- STDERR.puts "This gem requires Jeweler to be built"
-end
-
-desc "Rebuild gemspec and package"
-task :rebuild => [:gemspec, :build]
-
-desc "Push (publish) gem to RubyGems (aka Gemcutter)"
-task :push => :rebuild do
- # NOTE: Yet found no way to ask Jeweler forge a complete version string for us.
- h = YAML.load_file("VERSION.yml")
- version = [h[:major], h[:minor], h[:patch], h[:build]].compact.join(".")
- pkgfile = File.join("pkg", "#{GEM_NAME}-#{version}.gem")
- Kernel.system("gem", "push", pkgfile)
-end
-
-desc "Generate RDoc documentation"
-Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = "doc"
- rdoc.title = "Handles::SortableColumns"
- #rdoc.options << "--line-numbers"
- #rdoc.options << "--inline-source"
- rdoc.rdoc_files.include("lib/**/*.rb")
-end
-
-desc "Compile README preview"
-task :readme do
- require "kramdown"
-
- doc = Kramdown::Document.new(File.read "README.md")
-
- fn = "README.html"
- puts "Writing '#{fn}'..."
- File.open(fn, "w") do |f|
- f.write(File.read "dev/head.html")
- f.write(doc.to_html)
- end
- puts ": ok"
-end
+require "rdoc/task"
+require "yaml"
+
+GEM_NAME = "handles_sortable_columns"
+
+begin
+ require "jeweler"
+ Jeweler::Tasks.new do |gem|
+ gem.name = GEM_NAME
+ gem.summary = "Sortable Table Columns"
+ gem.description = gem.summary
+ gem.email = "alex.r@askit.org"
+ gem.homepage = "http://github.com/dadooda/handles_sortable_columns"
+ gem.authors = ["Alex Fortuna"]
+ gem.files = FileList[
+ "[A-Z]*",
+ "*.gemspec",
+ "init.rb",
+ "lib/**/*.rb",
+ ]
+ end
+rescue LoadError
+ STDERR.puts "This gem requires Jeweler to be built"
+end
+
+desc "Rebuild gemspec and package"
+task :rebuild => [:gemspec, :build]
+
+desc "Push (publish) gem to RubyGems (aka Gemcutter)"
+task :push => :rebuild do
+ # NOTE: Yet found no way to ask Jeweler forge a complete version string for us.
+ h = YAML.load_file("VERSION.yml")
+ version = [h[:major], h[:minor], h[:patch], h[:build]].compact.join(".")
+ pkgfile = File.join("pkg", "#{GEM_NAME}-#{version}.gem")
+ Kernel.system("gem", "push", pkgfile)
+end
+
+desc "Generate RDoc documentation"
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = "doc"
+ rdoc.title = "Handles::SortableColumns"
+ #rdoc.options << "--line-numbers"
+ #rdoc.options << "--inline-source"
+ rdoc.rdoc_files.include("lib/**/*.rb")
+end
+
+desc "Compile README preview"
+task :readme do
+ require "kramdown"
+
+ doc = Kramdown::Document.new(File.read "README.md")
+
+ fn = "README.html"
+ puts "Writing '#{fn}'..."
+ File.open(fn, "w") do |f|
+ f.write(File.read "dev/head.html")
+ f.write(doc.to_html)
+ end
+ puts ": ok"
+end
View
2  handles_sortable_columns.gemspec
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
]
s.homepage = "http://github.com/dadooda/handles_sortable_columns"
s.require_paths = ["lib"]
- s.rubygems_version = "1.8.10"
+ s.rubygems_version = "1.8.24"
s.summary = "Sortable Table Columns"
if s.respond_to? :specification_version then
Please sign in to comment.
Something went wrong with that request. Please try again.