diff options
author | halostatue <austin@zieglers.ca> | 2009-02-28 23:41:46 -0500 |
---|---|---|
committer | halostatue <austin@zieglers.ca> | 2009-02-28 23:41:46 -0500 |
commit | 2ec42e6019ae6a90f7a2af31ef29f69ed7bc7593 (patch) | |
tree | 07f751fc26e725872828b60eb4a7ef1fa20cbf43 | |
parent | b37bf0f366da427fddac1597832780d5a84101f7 (diff) | |
download | mime-types-2ec42e6019ae6a90f7a2af31ef29f69ed7bc7593.tar.gz |
Updating the manifest, changing how the Rakefile excludes files from the manifest.
-rw-r--r-- | .hoerc | 12 | ||||
-rw-r--r-- | Manifest.txt | 3 | ||||
-rw-r--r-- | Rakefile | 18 |
3 files changed, 22 insertions, 11 deletions
@@ -0,0 +1,12 @@ +--- +publish_on_announce: false +exclude: !ruby/regexp /\.(?:svn|git)|(?:\.(?:swp|hoerc)|~|Release-Announcement)$|(?:coverage|type-lists)\// +signing_key_file: ~/.gem/gem-private_key.pem +signing_cert_file: ~/.gem/gem-public_cert.pem +blogs: +- user: user + url: url + extra_headers: + mt_convert_breaks: markdown + blog_id: blog_id + password: password diff --git a/Manifest.txt b/Manifest.txt index 4c49b8e..e90863f 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -4,9 +4,8 @@ Licence.txt Manifest.txt README.txt Rakefile -Release-Announcement -lib/mime/type-initializer lib/mime/types.rb +lib/mime/types.rb.data setup.rb test/test_all.rb test/test_mime_type.rb @@ -97,23 +97,23 @@ desc "Build the manifest file from the current set of files." task :build_manifest do |t| require 'find' + hoerc = File.join(File.dirname(__FILE__), ".hoerc") + hoerc = File.open(hoerc, "rb") { |f| f.read } + hoerc = YAML::load(hoerc) + paths = [] Find.find(".") do |path| - next if File.directory?(path) - next if path =~ /\.svn/ - next if path =~ /\.git/ - next if path =~ /\.swp$/ - next if path =~ %r{coverage/} - next if path =~ /~$/ - next if path =~ /type-lists/ + next if File.directory?(path) || path =~ hoerc["exclude"] paths << path.sub(%r{^\./}, '') end + paths = paths.sort.join("\n") + File.open("Manifest.txt", "w") do |f| - f.puts paths.sort.join("\n") + f.puts paths end - puts paths.sort.join("\n") + puts paths end desc "Download the current MIME type registrations from IANA." |