git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



Commit 2233246b32a3420cfc780390dd26015aa979b1c3

Fix Rakefile deprecation warnings

John Firebaugh committed on 7/19/2012, 9:36:36 PM
Parent: 5f6b74ee8438ee2b911a21d93d6f9b3e89f55474

Files changed

Gemfile.lockchanged
Rakefilechanged
bcrypt-ruby.gemspecchanged
Gemfile.lockView
@@ -1,16 +1,20 @@
11 PATH
22 remote: .
33 specs:
4- bcrypt-ruby (3.0.0)
4+ bcrypt-ruby (3.0.1)
55
66 GEM
77 remote: http://rubygems.org/
88 specs:
99 diff-lcs (1.1.2)
10+ json (1.7.3)
11+ json (1.7.3-java)
1012 rake (0.8.7)
1113 rake-compiler (0.7.5)
1214 rake
15+ rdoc (3.12)
16+ json (~> 1.4)
1317 rspec (2.5.0)
1418 rspec-core (~> 2.5.0)
1519 rspec-expectations (~> 2.5.0)
1620 rspec-mocks (~> 2.5.0)
@@ -25,5 +29,6 @@
2529
2630 DEPENDENCIES
2731 bcrypt-ruby!
2832 rake-compiler
33+ rdoc
2934 rspec
RakefileView
@@ -1,11 +1,11 @@
11 require 'rspec/core/rake_task'
2-require 'rake/gempackagetask'
2+require 'rubygems/package_task'
33 require 'rake/extensiontask'
44 require 'rake/javaextensiontask'
55 require 'rake/contrib/rubyforgepublisher'
66 require 'rake/clean'
7-require 'rake/rdoctask'
7+require 'rdoc/task'
88 require 'benchmark'
99
1010 CLEAN.include(
1111 "ext/mri/*.o",
@@ -36,16 +36,16 @@
3636 t.rcov_opts = ['--exclude', 'rspec,diff-lcs,rcov,_spec,_helper']
3737 end
3838
3939 desc 'Generate RDoc'
40-rd = Rake::RDocTask.new do |rdoc|
40+RDoc::Task.new do |rdoc|
4141 rdoc.rdoc_dir = 'doc/rdoc'
4242 rdoc.options += GEMSPEC.rdoc_options
4343 rdoc.template = ENV['TEMPLATE'] if ENV['TEMPLATE']
4444 rdoc.rdoc_files.include(*GEMSPEC.extra_rdoc_files)
4545 end
4646
47-Rake::GemPackageTask.new(GEMSPEC) do |pkg|
47+Gem::PackageTask.new(GEMSPEC) do |pkg|
4848 pkg.need_zip = true
4949 pkg.need_tar = true
5050 end
5151
bcrypt-ruby.gemspecView
@@ -13,8 +13,9 @@
1313 s.require_path = 'lib'
1414
1515 s.add_development_dependency 'rake-compiler'
1616 s.add_development_dependency 'rspec'
17+ s.add_development_dependency 'rdoc'
1718
1819 s.has_rdoc = true
1920 s.rdoc_options += ['--title', 'bcrypt-ruby', '--line-numbers', '--inline-source', '--main', 'README.md']
2021 s.extra_rdoc_files += ['README.md', 'COPYING', 'CHANGELOG', *Dir['lib/**/*.rb']]

Built with git-ssb-web