Rakefile in usaidwat-1.0.1 vs Rakefile in usaidwat-1.1.0
- old
+ new
@@ -4,11 +4,16 @@
GEMSPEC = `git ls-files | grep gemspec`.chomp
GEM = "usaidwat-#{USaidWat::VERSION}.gem"
desc "Build usaidwat.gem"
-task :build do
+task :build => :perms do
system "gem", "build", GEMSPEC
+end
+
+desc "Ensure correct permissions for usaidwat.gem"
+task :perms do
+ system "chmod", "-R", "a+rX", *`git ls-files`.chomp.split("\n")
end
desc "Install usaidwat.gem"
task :install => :build do
system "gem", "install", GEM