Sha256: 2a88c63b588d17070c600f83db241fc6b208324b8201ec8a3e45316643e386e0

Contents?: true

Size: 600 Bytes

Versions: 6

Compression:

Stored size: 600 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Generators
    # Generates default gem support.
    class Gem < Base
      # rubocop:disable Metrics/AbcSize
      def run
        cli.template "%gem_name%/bin/setup.tt", configuration
        cli.template "%gem_name%/Gemfile.tt", configuration
        cli.template "%gem_name%/%gem_name%.gemspec.tt", configuration
        cli.template "#{lib_gem_root}.rb.tt", configuration
        cli.template "#{lib_gem_root}/identity.rb.tt", configuration
        cli.chmod "#{configuration.dig(:gem, :name)}/bin/setup", 0o755
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gemsmith-9.6.0 lib/gemsmith/generators/gem.rb
gemsmith-9.5.0 lib/gemsmith/generators/gem.rb
gemsmith-9.4.0 lib/gemsmith/generators/gem.rb
gemsmith-9.3.0 lib/gemsmith/generators/gem.rb
gemsmith-9.2.0 lib/gemsmith/generators/gem.rb
gemsmith-9.1.0 lib/gemsmith/generators/gem.rb