Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
generate the gemspec with jeweler
  • Loading branch information
mislav committed Feb 12, 2009
1 parent 5f047f7 commit 6e7e16e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 4 deletions.
15 changes: 15 additions & 0 deletions Rakefile
Expand Up @@ -48,3 +48,18 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.options << '--inline-source'
rdoc.options << '--charset=UTF-8'
end

begin
require 'jeweler'
rescue LoadError
$stderr.puts "Jeweler not available (gem install technicalpickles-jeweler)"
else
Jeweler::Tasks.new do |gem|
gem.name = "bluecloth"
gem.summary = "A Ruby implementation of Markdown"
gem.email = "mislav.marohnic@gmail.com"
gem.homepage = "http://github.com/mislav/bluecloth"
gem.description = "Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML)."
gem.authors = ["Michael Granger", "Mislav Marohnić"]
end
end
4 changes: 4 additions & 0 deletions VERSION.yml
@@ -0,0 +1,4 @@
---
:major: 1
:minor: 1
:patch: 0
30 changes: 30 additions & 0 deletions bluecloth.gemspec
@@ -0,0 +1,30 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{bluecloth}
s.version = "1.1.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Michael Granger", "Mislav Marohni\304\207"]
s.date = %q{2009-02-12}
s.description = %q{Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).}
s.email = %q{mislav.marohnic@gmail.com}
s.executables = ["bluecloth", "Markdown.pl"]
s.files = ["README.markdown", "VERSION.yml", "bin/bluecloth", "bin/Markdown.pl", "lib/bluecloth", "lib/bluecloth/transform", "lib/bluecloth/transform/blocks.rb", "lib/bluecloth/transform/inline.rb", "lib/bluecloth/transform/links.rb", "lib/bluecloth/transform/util.rb", "lib/bluecloth/transform.rb", "lib/bluecloth.rb", "spec/api_spec.rb", "spec/bug_spec.rb", "spec/contrib_spec.rb", "spec/markdown_spec.rb", "spec/sample_loader.rb", "spec/samples", "spec/samples/all", "spec/samples/antsugar.txt", "spec/samples/code", "spec/samples/emphasis", "spec/samples/failing", "spec/samples/links", "spec/samples/lists", "spec/samples/ml-announce.txt", "spec/samples/re-overflow.txt", "spec/samples/re-overflow2.txt", "spec/samples/titles", "spec/spec.opts", "spec/spec_helper.rb"]
s.has_rdoc = true
s.homepage = %q{http://github.com/mislav/bluecloth}
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.1}
s.summary = %q{A Ruby implementation of Markdown}

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
else
end
else
end
end
8 changes: 4 additions & 4 deletions lib/bluecloth.rb
Expand Up @@ -50,13 +50,13 @@
# * Put the StringScanner in the render state for thread-safety.

require 'logger'
require 'yaml'

# BlueCloth is a Ruby implementation of Markdown, a text-to-HTML conversion
# tool.
# BlueCloth is a Ruby implementation of Markdown, a text-to-HTML conversion tool.
class BlueCloth

# Release Version
Version = '0.0.3'
version_hash = YAML::load(File.read(File.join(File.dirname(__FILE__), '..', 'VERSION.yml')))
Version = [:major, :minor, :patch].map { |bit| version_hash[bit] }.join('.')

# Create a new BlueCloth string.
def initialize(content = "", *restrictions)
Expand Down

0 comments on commit 6e7e16e

Please sign in to comment.