Sha256: 6ebe8e66face6a1eb97558de0a4d2ec5efbcb6c414466361180a606594beecac
Contents?: true
Size: 397 Bytes
Versions: 38
Compression:
Stored size: 397 Bytes
Contents
require 'rails/generators' module Clean module Generators class GemfileGenerator < ::Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) desc "remove commented lines and multiple blank lines from a Gemfile" def clean_gemfile gsub_file 'Gemfile', /#.*\n/, "\n" gsub_file 'Gemfile', /\n^\s*\n/, "\n" end end end end
Version data entries
38 entries across 38 versions & 1 rubygems