Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unnecessary fields from the gemspec and restricted gem dependencies. #64

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,14 @@ file 'ronn.gemspec' => FileList['{lib,test,bin}/**','Rakefile'] do |f|
# read spec file and split out manifest section
spec = File.read(f.name)
head, manifest, tail = spec.split(" # = MANIFEST =\n")
# replace version and date
# replace version
head.sub!(/\.version = '.*'/, ".version = '#{source_version}'")
head.sub!(/\.date = '.*'/, ".date = '#{Date.today.to_s}'")
# determine file list from git ls-files
files = `git ls-files`.
split("\n").
split($\).
sort.
reject{ |file| file =~ /^\./ }.
reject { |file| file =~ /^doc/ }.
reject{ |file| file.start_with?('.') }.
reject{ |file| file.start_with?('doc') }.
map{ |file| " #{file}" }.
join("\n")
# piece file back together and write...
Expand Down
10 changes: 4 additions & 6 deletions ronn.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
Gem::Specification.new do |s|
s.name = 'ronn'
s.version = '0.7.3'
s.date = '2010-06-24'

s.description = "Builds manuals"
s.summary = "Builds manuals"
s.description = "Ronn builds manuals. It converts simple, human readable textfiles to roff for terminal display, and also to HTML for the web."
s.homepage = "http://rtomayko.github.com/ronn"

s.authors = ["Ryan Tomayko"]
Expand Down Expand Up @@ -85,12 +84,11 @@ Gem::Specification.new do |s|
s.test_files = s.files.select { |path| path =~ /^test\/.*_test.rb/ }

s.extra_rdoc_files = %w[COPYING AUTHORS]
s.add_dependency 'hpricot', '>= 0.8.2'
s.add_dependency 'rdiscount', '>= 1.5.8'
s.add_dependency 'mustache', '>= 0.7.0'
s.add_dependency 'hpricot', '~> 0.8', '>= 0.8.2'
s.add_dependency 'rdiscount', '~> 1.5', '>= 1.5.8'
s.add_dependency 'mustache', '~> 0.7', '>= 0.7.0'

s.has_rdoc = true
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ronn"]
s.require_paths = %w[lib]
s.rubygems_version = '1.1.1'
end