Sha256: f556442aa4b09c0df35a084382f3aa77e1c00474b80c31c1455c6918da94f164

Contents?: true

Size: 401 Bytes

Versions: 15

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Generators
    # Generates Bundler Audit support.
    class BundlerAudit < Base
      def run
        return unless configuration.dig(:generate, :bundler_audit)

        cli.uncomment_lines "#{gem_name}/Rakefile", %r(require.+bundler\/audit.+)
        cli.uncomment_lines "#{gem_name}/Rakefile", /Bundler\:\:Audit.+/
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gemsmith-13.1.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-13.0.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-12.4.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-12.3.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-12.2.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-12.1.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-12.0.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-11.3.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-11.2.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-11.1.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-11.0.1 lib/gemsmith/generators/bundler_audit.rb
gemsmith-11.0.0 lib/gemsmith/generators/bundler_audit.rb
gemsmith-10.4.2 lib/gemsmith/generators/bundler_audit.rb
gemsmith-10.4.1 lib/gemsmith/generators/bundler_audit.rb
gemsmith-10.4.0 lib/gemsmith/generators/bundler_audit.rb