Rakefile in jsonapionify-0.0.1.pre vs Rakefile in jsonapionify-0.9.0

- old
+ new

@@ -15,9 +15,19 @@ FileUtils.mkdir_p(File.dirname(f)) && FileUtils.touch(f) end end end +desc 'Remove empty specs' +task :prune_specs do + empty_specs = Dir.glob("./spec/**/*_spec.rb").select do |f| + File.read(f).empty? + end + empty_specs.each do |f| + FileUtils.rm f + end +end + STATS_DIRECTORIES = [ %w(Structure lib/jsonapionify/structure), %w(Server lib/jsonapionify/api), %w(Specs spec), ].collect do |name, dir|