Sha256: fa4a8dc305671d7ddef22e05c700177523c85b50bf8603442e226f442c4b4b78
Contents?: true
Size: 753 Bytes
Versions: 3
Compression:
Stored size: 753 Bytes
Contents
# frozen_string_literal: true namespace :manifest do def gemmable_files `git ls-files -z`.split("\x0").reject do |file| file.match(%r{^(bin|spec)/}) || file.end_with?("/.keep") || file.start_with?(".") || %w(Manifest.txt Gemfile Rakefile publify_textfilter_youtube.gemspec).include?(file) end end def manifest_files File.open("Manifest.txt").readlines.map(&:chomp) end desc "Create manifest" task :create do File.open("Manifest.txt", "w") do |manifest| gemmable_files.each { |file| manifest.puts file } end end desc "Check manifest" task :check do unless gemmable_files == manifest_files raise "Manifest check failed, try recreating the manifest" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
publify_textfilter_youtube-10.0.2 | lib/tasks/manifest.rake |
publify_textfilter_youtube-10.0.1 | lib/tasks/manifest.rake |
publify_textfilter_youtube-10.0.0 | lib/tasks/manifest.rake |