summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalostatue <austin@zieglers.ca>2009-02-28 23:41:46 -0500
committerhalostatue <austin@zieglers.ca>2009-02-28 23:41:46 -0500
commit2ec42e6019ae6a90f7a2af31ef29f69ed7bc7593 (patch)
tree07f751fc26e725872828b60eb4a7ef1fa20cbf43
parentb37bf0f366da427fddac1597832780d5a84101f7 (diff)
downloadmime-types-2ec42e6019ae6a90f7a2af31ef29f69ed7bc7593.tar.gz
Updating the manifest, changing how the Rakefile excludes files from the manifest.
-rw-r--r--.hoerc12
-rw-r--r--Manifest.txt3
-rw-r--r--Rakefile18
3 files changed, 22 insertions, 11 deletions
diff --git a/.hoerc b/.hoerc
new file mode 100644
index 0000000..d35f8b5
--- /dev/null
+++ b/.hoerc
@@ -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
diff --git a/Rakefile b/Rakefile
index 3e86d0e..26a039c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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."