template/Rakefile.tt in microgem-1.0.10 vs template/Rakefile.tt in microgem-1.0.11
- old
+ new
@@ -1,9 +1,9 @@
# # #
# Get gemspec info
-gemspec_file = Dir['*.gemspec'].first
+gemspec_file = Dir["*.gemspec"].first
gemspec = eval File.read(gemspec_file), binding, gemspec_file
info = "#{gemspec.name} | #{gemspec.version} | " \
"#{gemspec.runtime_dependencies.size} dependencies | " \
"#{gemspec.files.size} files"
@@ -12,11 +12,11 @@
desc info
task :gem do
puts info + "\n\n"
print " "; sh "gem build #{gemspec_file}"
- FileUtils.mkdir_p 'pkg'
- FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
+ FileUtils.mkdir_p "pkg"
+ FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", "pkg"
puts; sh %{gem install --no-document pkg/#{gemspec.name}-#{gemspec.version}.gem}
end
# # #
# Start an IRB session with the gem loaded