lib/ggem/template_file/gemspec.erb in ggem-1.9.5 vs lib/ggem/template_file/gemspec.erb in ggem-1.10.0
- old
+ new
@@ -1,8 +1,8 @@
+# -*- encoding: utf-8 -*-
# frozen_string_literal: true
-# -*- encoding: utf-8 -*-
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "<%= @ggem.ruby_name %>/version"
Gem::Specification.new do |gem|
@@ -13,16 +13,18 @@
gem.summary = "TODO: Write a gem summary"
gem.description = "TODO: Write a gem description"
gem.homepage = "TODO: homepage"
gem.license = "MIT"
- gem.files = `git ls-files | grep "^[^.]"`.split($/)
+ gem.files = `git ls-files | grep "^[^.]"`.split($INPUT_RECORD_SEPARATOR)
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
gem.required_ruby_version = "~> 2.5"
- gem.add_development_dependency("assert", ["~> 2.19.2"])
+ gem.add_development_dependency("assert", ["~> 2.19.2"])
+ gem.add_development_dependency("much-style-guide", ["~> 0.3.0"])
# TODO: gem.add_dependency("gem-name", ["~> 0.0.0"])
end