Rakefile in safemode-1.3.7 vs Rakefile in safemode-1.3.8
- old
+ new
@@ -17,32 +17,10 @@
rescue LoadError
end
end
require 'rake'
-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 = "safemode"
- gem.homepage = "https://github.com/svenfuchs/safemode"
- gem.license = "MIT"
- gem.summary = %Q{A library for safe evaluation of Ruby code based on ParseTree/RubyParser and Ruby2Ruby}
- gem.description = %Q{A library for safe evaluation of Ruby code based on RubyParser and Ruby2Ruby. Provides Rails ActionView template handlers for ERB and Haml.}
- gem.email = "ohadlevy@gmail.com"
- gem.authors = [
- "Sven Fuchs",
- "Peter Cooper",
- "Matthias Viehweger",
- "Kingsley Hendrickse",
- "Ohad Levy",
- "Dmitri Dolguikh",
- ]
- gem.files.exclude '.travis.yml'
- # dependencies defined in Gemfile
-end
-Jeweler::RubygemsDotOrgTasks.new
-
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
@@ -56,10 +34,10 @@
task :default => :test
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
+ version = Gem::Specification.find_by_name('safemode').version
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "safemode #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')