Sha256: 57044195db9b28e4d6f23b04ca71a75406dc796f8f053730cbd59a94a470944e

Contents?: true

Size: 535 Bytes

Versions: 7

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Generators
    # Generates default gem support.
    class Gem < Base
      def run
        create_files
        cli.chmod "#{configuration.dig(:gem, :name)}/bin/setup", 0o755
      end

      private

      def create_files
        template "%gem_name%/bin/setup.tt"
        template "%gem_name%/Gemfile.tt"
        template "%gem_name%/%gem_name%.gemspec.tt"
        template "#{LIB_ROOT_GEM}.rb.tt"
        template "#{LIB_ROOT_GEM}/identity.rb.tt"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gemsmith-13.1.0 lib/gemsmith/generators/gem.rb
gemsmith-13.0.0 lib/gemsmith/generators/gem.rb
gemsmith-12.4.0 lib/gemsmith/generators/gem.rb
gemsmith-12.3.0 lib/gemsmith/generators/gem.rb
gemsmith-12.2.0 lib/gemsmith/generators/gem.rb
gemsmith-12.1.0 lib/gemsmith/generators/gem.rb
gemsmith-12.0.0 lib/gemsmith/generators/gem.rb