Sha256: c410260d5a5ea29ff2ee411f6208f793a42b4e56c69f388dec3bf77886ba02e9

Contents?: true

Size: 303 Bytes

Versions: 15

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

15 entries across 15 versions & 1 rubygems

Version Path
gemsmith-14.1.2 lib/gemsmith/generators/git_cop.rb
gemsmith-14.1.1 lib/gemsmith/generators/git_cop.rb
gemsmith-14.1.0 lib/gemsmith/generators/git_cop.rb
gemsmith-14.0.2 lib/gemsmith/generators/git_cop.rb
gemsmith-14.0.1 lib/gemsmith/generators/git_cop.rb
gemsmith-14.0.0 lib/gemsmith/generators/git_cop.rb
gemsmith-13.8.0 lib/gemsmith/generators/git_cop.rb
gemsmith-13.7.2 lib/gemsmith/generators/git_cop.rb
gemsmith-13.7.1 lib/gemsmith/generators/git_cop.rb
gemsmith-13.7.0 lib/gemsmith/generators/git_cop.rb
gemsmith-13.6.0 lib/gemsmith/generators/git_cop.rb
gemsmith-13.5.0 lib/gemsmith/generators/git_cop.rb
gemsmith-13.4.0 lib/gemsmith/generators/git_cop.rb
gemsmith-13.3.0 lib/gemsmith/generators/git_cop.rb
gemsmith-13.2.0 lib/gemsmith/generators/git_cop.rb