Permalink
Browse files

publish v0.1.12 on Gemcutter

  • Loading branch information...
1 parent 7b64fcb commit c43fec0c8dbbfdfb233148ce5563083d40a104a4 @mislav committed Oct 16, 2009
Showing with 34 additions and 76 deletions.
  1. +4 −1 .gitignore
  2. +4 −4 README.markdown
  3. +3 −33 Rakefile
  4. +22 −37 hanna.gemspec
  5. +1 −1 lib/hanna/version.rb
View
@@ -1 +1,4 @@
-/pkg
+/doc
+*.gem
+sample
+
View
@@ -1,12 +1,12 @@
-# Hanna -- a better RDoc template
+# Hanna a better RDoc template
Hanna is an RDoc template that scales. It's implemented in Haml, making the sources clean
and readable. It's built with simplicity, beauty and ease of browsing in mind. (See more
in [the wiki][wiki].)
-Hanna gem is available from [GitHub][]:
+Hanna gem is available from [Gemcutter][]:
- gem install mislav-hanna
+ gem install hanna
The template was created by [Mislav][] and since then has seen contributions from:
@@ -97,6 +97,6 @@ This is git. Fork it, hack away, tell me about it!
[wiki]: http://github.com/mislav/hanna/wikis/home "Hanna wiki"
-[GitHub]: http://gems.github.com/ "GitHub gem server"
+[gemcutter]: http://gemcutter.org/ "Gemcutter gem server"
[wp]: http://github.com/mislav/will_paginate/tree/master/Rakefile
[Mislav]: http://mislav.caboo.se/ "Mislav Marohnić"
View
@@ -1,34 +1,4 @@
-desc "generates .gemspec file"
-task :gemspec do
- require 'lib/hanna/version'
-
- spec = Gem::Specification.new do |gem|
- gem.name = 'hanna'
- gem.version = Hanna::VERSION
-
- gem.summary = "An RDoc template that scales"
- gem.description = "Hanna is an RDoc implemented in Haml, making its source clean and maintainable. It's built with simplicity, beauty and ease of browsing in mind."
-
- gem.add_dependency 'rdoc', Hanna::RDOC_VERSION_REQUIREMENT
- gem.add_dependency 'haml', '~> 2.0.4'
- gem.add_dependency 'rake', '~> 0.8.2'
-
- gem.email = 'mislav.marohnic@gmail.com'
- gem.homepage = 'http://github.com/mislav/' + gem.name
- gem.authors = ['Mislav Marohnić']
- gem.has_rdoc = false
-
- gem.files = FileList['Rakefile', '{bin,lib,rails,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files`.split("\n")
- gem.executables = Dir['bin/*'].map { |f| File.basename(f) }
- end
-
- spec_string = spec.to_ruby
-
- begin
- Thread.new { eval("$SAFE = 3\n#{spec_string}", binding) }.join
- rescue
- abort "unsafe gemspec: #{$!}"
- else
- File.open("#{spec.name}.gemspec", 'w') { |file| file.write spec_string }
- end
+desc "builds the gem"
+task :gem do
+ system %(gem build hanna.gemspec)
end
View
@@ -1,38 +1,23 @@
-# -*- encoding: utf-8 -*-
+require 'lib/hanna/version'
-Gem::Specification.new do |s|
- s.name = %q{hanna}
- s.version = "0.1.11"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Mislav Marohni\304\207"]
- s.date = %q{2009-09-21}
- s.default_executable = %q{hanna}
- s.description = %q{Hanna is an RDoc implemented in Haml, making its source clean and maintainable. It's built with simplicity, beauty and ease of browsing in mind.}
- s.email = %q{mislav.marohnic@gmail.com}
- s.executables = ["hanna"]
- s.files = ["Rakefile", "bin/hanna", "lib/hanna/hanna.rb", "lib/hanna/rdoctask.rb", "lib/hanna/template_files/class_index.haml", "lib/hanna/template_files/file_index.haml", "lib/hanna/template_files/index.haml", "lib/hanna/template_files/layout.haml", "lib/hanna/template_files/method_index.haml", "lib/hanna/template_files/method_list.haml", "lib/hanna/template_files/method_search.js", "lib/hanna/template_files/page.haml", "lib/hanna/template_files/prototype-1.6.0.3.js", "lib/hanna/template_files/sections.haml", "lib/hanna/template_files/styles.sass", "lib/hanna/template_helpers.rb", "lib/hanna/template_page_patch.rb", "lib/hanna/version.rb", "lib/hanna.rb", "lib/rubygems_plugin.rb", "README.markdown"]
- s.homepage = %q{http://github.com/mislav/hanna}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{An RDoc template that scales}
-
- 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_runtime_dependency(%q<rdoc>, ["~> 2.3.0"])
- s.add_runtime_dependency(%q<haml>, ["~> 2.0.4"])
- s.add_runtime_dependency(%q<rake>, ["~> 0.8.2"])
- else
- s.add_dependency(%q<rdoc>, ["~> 2.3.0"])
- s.add_dependency(%q<haml>, ["~> 2.0.4"])
- s.add_dependency(%q<rake>, ["~> 0.8.2"])
- end
- else
- s.add_dependency(%q<rdoc>, ["~> 2.3.0"])
- s.add_dependency(%q<haml>, ["~> 2.0.4"])
- s.add_dependency(%q<rake>, ["~> 0.8.2"])
- end
-end
+Gem::Specification.new do |gem|
+ gem.name = 'hanna'
+ gem.version = Hanna::VERSION
+
+ gem.summary = "An RDoc template that scales"
+ gem.description = "Hanna is an RDoc implemented in Haml, making its source clean and maintainable. It's built with simplicity, beauty and ease of browsing in mind."
+
+ gem.files = Dir['Rakefile', '{bin,lib,rails,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files`.split("\n")
+ gem.executables = Dir['bin/*'].map { |f| File.basename(f) }
+
+ gem.add_dependency 'rdoc', Hanna::RDOC_VERSION_REQUIREMENT
+ gem.add_dependency 'haml', '~> 2.2.8'
+ gem.add_dependency 'rake', '~> 0.8.2'
+
+ gem.email = 'mislav.marohnic@gmail.com'
+ gem.homepage = 'http://github.com/mislav/' + gem.name
+ gem.authors = ['Mislav Marohnić']
+
+ gem.has_rdoc = false
+ gem.rubyforge_project = nil
+end
View
@@ -1,6 +1,6 @@
module Hanna
- VERSION = '0.1.11'
+ VERSION = '0.1.12'
# The version of RDoc that Hanna should use
RDOC_VERSION = '2.3.0'

0 comments on commit c43fec0

Please sign in to comment.