Permalink
Browse files

Updating the manifest, changing how the Rakefile excludes files from …

…the manifest.
  • Loading branch information...
1 parent b37bf0f commit 2ec42e6019ae6a90f7a2af31ef29f69ed7bc7593 @halostatue committed Mar 1, 2009
Showing with 22 additions and 11 deletions.
  1. +12 −0 .hoerc
  2. +1 −2 Manifest.txt
  3. +9 −9 Rakefile
View
12 .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
View
@@ -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
View
@@ -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."

0 comments on commit 2ec42e6

Please sign in to comment.