imap-backup.gemspec in imap-backup-4.0.0.rc5 vs imap-backup.gemspec in imap-backup-4.0.0.rc6
- old
+ new
@@ -1,16 +1,26 @@
$LOAD_PATH.unshift(File.expand_path("lib", __dir__))
require "imap/backup/version"
+require "rake/file_list"
Gem::Specification.new do |gem|
gem.name = "imap-backup"
gem.description = "Backup GMail, or any other IMAP email service, to disk."
gem.summary = "Backup GMail (or other IMAP) accounts to disk"
gem.authors = ["Joe Yates"]
gem.email = ["joe.g.yates@gmail.com"]
gem.homepage = "https://github.com/joeyates/imap-backup"
+ gem.licenses = ["MIT"]
- gem.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
+ # Build list of files manually, see also
+ # https://github.com/rubygems/rubygems/blob/master/bundler/bundler.gemspec#L37
+ gem.files = %w[bin/imap-backup]
+ gem.files += Dir.glob("docs/*{.png,.md}")
+ gem.files += Dir.glob("lib/**/*.rb")
+ gem.files += Dir.glob("spec/**/*{.rb,.yml}")
+ gem.files += %w[imap-backup.gemspec]
+ gem.files += %w[LICENSE README.md]
+
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^spec/})
gem.require_paths = ["lib"]
gem.required_ruby_version = ">= 2.5"
gem.version = Imap::Backup::VERSION