Sha256: 8d2b388b6dfd4cf76e80a9f306fe32832120de53889dbf7b31f709eea11a3221

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 Bytes

Contents

module Gemaker
  module Cmd
    class CustomizeGemspec < Gemaker::Cmd::Base
      def in_normal_context
        copy_gempsec("normal/gemspec")
      end

      def in_engine_context
        copy_gempsec("engine/gemspec")
      end

      private

      def copy_gempsec(template)
        copy_template(template, "#{@config.gem_name}.gemspec", config: @config)
        info "Customize #{@config.gem_name}.gemspec"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gemaker-1.0.0 lib/gemaker/commands/customize_gemspec.rb
gemaker-0.6.0 lib/gemaker/commands/customize_gemspec.rb
gemaker-0.5.0 lib/gemaker/commands/customize_gemspec.rb
gemaker-0.4.0 lib/gemaker/commands/customize_gemspec.rb
gemaker-0.3.0 lib/gemaker/commands/customize_gemspec.rb
gemaker-0.2.0 lib/gemaker/commands/customize_gemspec.rb