diff options
author | elijah <elijah@riseup.net> | 2016-06-21 15:59:27 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-06-21 15:59:27 -0700 |
commit | d4ee04322ce642c602269738e45f63b800d78cf7 (patch) | |
tree | a49bba9f5a34a3d50b0bbe8b325e0172b4a6dd33 /Rakefile | |
parent | 7258edade9422fdfba1311be779d2ba40d2d042c (diff) |
fix ruby deprecation warnings
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ end desc "Build #{$spec.name}-#{$spec.version}.gem into the pkg directory" task 'build' do FileUtils.mkdir_p(File.join($base_dir, 'pkg')) - FileUtils.rm($gem_path) if File.exists?($gem_path) + FileUtils.rm($gem_path) if File.exist?($gem_path) run "gem build -V '#{$spec_path}'" file_name = File.basename(built_gem_path) FileUtils.mv(built_gem_path, 'pkg') @@ -46,7 +46,7 @@ end desc "Install #{$spec.name}-#{$spec.version}.gem into either system-wide or user gems" task 'install' do - if !File.exists?($gem_path) + if !File.exist?($gem_path) puts("Could not file #{$gem_path}. Try running 'rake build'") else options = '--verbose --conservative --no-rdoc --no-ri' |