Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating Rakefile, gemspec, and test helper; adding Gemspec

Was previously set up using an older version of jeweler. Still using
jeweler for now, but setting up with newer configuration.
  • Loading branch information...
commit c466af7375a9c18ec54a11c5b990c2173c33e35e 1 parent 5a26e87
@alphabetum authored
View
13 Gemfile
@@ -0,0 +1,13 @@
+source "http://rubygems.org"
+# Add dependencies required to use your gem here.
+# Example:
+# gem "activesupport", ">= 2.3.5"
+
+# Add dependencies to develop your gem here.
+# Include everything needed to run rake, tests, features, etc.
+group :development, :test do
+ gem "jeweler", "~> 1.8.4"
+ gem "mocha", ">= 0"
+ gem "rdoc", "~> 3.12"
+ gem "shoulda", ">= 0"
+end
View
36 Gemfile.lock
@@ -0,0 +1,36 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (3.2.8)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ git (1.2.5)
+ i18n (0.6.1)
+ jeweler (1.8.4)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
+ rdoc
+ json (1.7.5)
+ metaclass (0.0.1)
+ mocha (0.12.7)
+ metaclass (~> 0.0.1)
+ multi_json (1.3.6)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ shoulda (3.3.0)
+ shoulda-context (~> 1.0)
+ shoulda-matchers (~> 1.4)
+ shoulda-context (1.0.0)
+ shoulda-matchers (1.4.0)
+ activesupport (>= 3.0.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ jeweler (~> 1.8.4)
+ mocha
+ rdoc (~> 3.12)
+ shoulda
View
60 Rakefile
@@ -1,22 +1,29 @@
+# encoding: utf-8
+
require 'rubygems'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
require 'rake'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "pandoc-ruby"
- gem.summary = %Q{PandocRuby}
- gem.description = %Q{Ruby wrapper for Pandoc}
- gem.email = "wmelody@gmail.com"
- gem.homepage = "http://rdoc.info/projects/alphabetum/pandoc-ruby"
- gem.authors = ["William Melody"]
- gem.add_development_dependency "shoulda"
- gem.add_development_dependency "mocha"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+require 'jeweler'
+Jeweler::Tasks.new do |gem|
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ gem.name = "pandoc-ruby"
+ gem.homepage = "http://github.com/alphabetum/pandoc-ruby"
+ gem.license = "MIT"
+ gem.summary = %Q{PandocRuby}
+ gem.description = %Q{Ruby wrapper for Pandoc}
+ gem.email = "hi@williammelody.com"
+ gem.authors = ["William Melody"]
+ # dependencies defined in Gemfile
end
+Jeweler::RubygemsDotOrgTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
@@ -25,31 +32,14 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
-end
-
task :default => :test
-require 'rake/rdoctask'
+require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
- if File.exist?('VERSION')
- version = File.read('VERSION')
- else
- version = ""
- end
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "pandoc-ruby #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
-end
+end
View
25 pandoc-ruby.gemspec
@@ -9,15 +9,17 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["William Melody"]
- s.date = "2012-04-01"
+ s.date = "2012-10-11"
s.description = "Ruby wrapper for Pandoc"
- s.email = "wmelody@gmail.com"
+ s.email = "hi@williammelody.com"
s.extra_rdoc_files = [
"LICENSE",
"README.markdown"
]
s.files = [
".document",
+ "Gemfile",
+ "Gemfile.lock",
"LICENSE",
"README.markdown",
"Rakefile",
@@ -27,28 +29,35 @@ Gem::Specification.new do |s|
"test/benchmark.rb",
"test/files/benchmark.txt",
"test/files/test.md",
+ "test/helper.rb",
"test/test_conversions.rb",
- "test/test_helper.rb",
"test/test_pandoc-ruby.rb"
]
- s.homepage = "http://rdoc.info/projects/alphabetum/pandoc-ruby"
+ s.homepage = "http://github.com/alphabetum/pandoc-ruby"
+ s.licenses = ["MIT"]
s.require_paths = ["lib"]
- s.rubygems_version = "1.8.10"
+ s.rubygems_version = "1.8.24"
s.summary = "PandocRuby"
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<shoulda>, [">= 0"])
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
s.add_development_dependency(%q<mocha>, [">= 0"])
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
else
- s.add_dependency(%q<shoulda>, [">= 0"])
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
s.add_dependency(%q<mocha>, [">= 0"])
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
+ s.add_dependency(%q<shoulda>, [">= 0"])
end
else
- s.add_dependency(%q<shoulda>, [">= 0"])
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
s.add_dependency(%q<mocha>, [">= 0"])
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
+ s.add_dependency(%q<shoulda>, [">= 0"])
end
end
View
8 test/test_helper.rb → test/helper.rb
@@ -1,4 +1,12 @@
require 'rubygems'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
require 'test/unit'
require 'shoulda'
require 'mocha'
View
2  test/test_conversions.rb
@@ -1,4 +1,4 @@
-require 'test_helper'
+require 'helper'
class TestConversions < Test::Unit::TestCase
View
2  test/test_pandoc-ruby.rb
@@ -1,4 +1,4 @@
-require 'test_helper'
+require 'helper'
class TestPandocRuby < Test::Unit::TestCase

0 comments on commit c466af7

Please sign in to comment.
Something went wrong with that request. Please try again.