Sha256: 4860a5d1ee7ed923469391b7802e1dc2280f8cc50c90b5a13a2f6776c12ea23a
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
module RocketApi module Library module GemRepoPlainText 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rocket_api-0.0.1.1 | lib/rocket_api/library/gem_repo_plain_text.rb |