Sha256: 8a2a745b51bd6aff5bdf13eeacce2f25054670815a4558ab0120dbdfe640fe56
Contents?: true
Size: 1.3 KB
Versions: 5
Compression:
Stored size: 1.3 KB
Contents
module RocketApi module Library module GemRepoPlainText def gitignore_text ".idea/\nGemfile.lock\n*.gem".freeze end def plain_version_text(module_name) "module #{module_name}\n\tVERSION = \"0.0.1\".freeze\nend" end def plain_gemspec_text(name, module_name) ["lib = File.expand_path(\"lib\", __dir__)", "$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n", "require 'English'", "require '#{name}/version'\n", "Gem::Specification.new do |s|", "\ts.specification_version = 2 if s.respond_to? :specification_version=", "\tif s.respond_to? :required_rubygems_version=", "\t\ts.required_rubygems_version = Gem::Requirement.new('>= 0')", "\tend", "\ts.rubygems_version = 'RUBY_VERSION'", "\ts.required_ruby_version = 'RUBY_VERSION'", "\ts.name = '#{name}'", "\ts.version = #{module_name}::VERSION", "\ts.executables << '#{name}'", "\ts.summary = 'PUT_SUMMARY'", "\ts.description = 'PUT_DESCRIPTION'", "\ts.authors = ['AUTHOR']", "\ts.email = 'AUTHOR_MAIL'", "\ts.homepage = 'https://github.com/...'", "\ts.files = `git ls-files`.split($RS)", "end"].join("\n") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems