Rakefile in pork-2.0.0 vs Rakefile in pork-2.1.0
- old
+ new
@@ -1,16 +1,17 @@
begin
- require "#{dir = File.dirname(__FILE__)}/task/gemgem"
+ require "#{__dir__}/task/gemgem"
rescue LoadError
- sh 'git submodule update --init'
+ sh 'git submodule update --init --recursive'
exec Gem.ruby, '-S', $PROGRAM_NAME, *ARGV
end
-Gemgem.init(dir) do |s|
+Gemgem.init(__dir__) do |s|
require 'pork/version'
s.name = 'pork'
s.version = Pork::VERSION
+ s.files.delete('screenshot.png')
+
%w[method_source ruby-progressbar].
each(&s.method(:add_development_dependency))
- s.files.delete('screenshot.png')
end