Sha256: 30c365eaefb6105d045111f73e506d562ab6be56bc51b0a80f90a456139f4c33

Contents?: true

Size: 303 Bytes

Versions: 16

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Generators
    # Generates Git Cop support.
    class GitCop < Base
      def run
        return unless configuration.dig(:generate, :git_cop)
        cli.uncomment_lines "#{gem_name}/Rakefile", %r(require.+git\/cop.+)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gemsmith-12.3.0 lib/gemsmith/generators/git_cop.rb
gemsmith-12.2.0 lib/gemsmith/generators/git_cop.rb
gemsmith-12.1.0 lib/gemsmith/generators/git_cop.rb
gemsmith-12.0.0 lib/gemsmith/generators/git_cop.rb
gemsmith-11.3.0 lib/gemsmith/generators/git_cop.rb
gemsmith-11.2.0 lib/gemsmith/generators/git_cop.rb
gemsmith-11.1.0 lib/gemsmith/generators/git_cop.rb
gemsmith-11.0.1 lib/gemsmith/generators/git_cop.rb
gemsmith-11.0.0 lib/gemsmith/generators/git_cop.rb
gemsmith-10.4.2 lib/gemsmith/generators/git_cop.rb
gemsmith-10.4.1 lib/gemsmith/generators/git_cop.rb
gemsmith-10.4.0 lib/gemsmith/generators/git_cop.rb
gemsmith-10.3.0 lib/gemsmith/generators/git_cop.rb
gemsmith-10.2.0 lib/gemsmith/generators/git_cop.rb
gemsmith-10.1.0 lib/gemsmith/generators/git_cop.rb
gemsmith-10.0.0 lib/gemsmith/generators/git_cop.rb