Skip to content

Commit

Permalink
delete .manifest file, crazy .autotest monkeypatches
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 7, 2009
1 parent 77bfb07 commit 5b43ca9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 134 deletions.
54 changes: 0 additions & 54 deletions .autotest

This file was deleted.

61 changes: 0 additions & 61 deletions .manifest

This file was deleted.

19 changes: 0 additions & 19 deletions Rakefile
Expand Up @@ -24,25 +24,6 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.options << '--webcvs=http://github.com/mislav/will_paginate/tree/master/'
end

desc %{Update ".manifest" with the latest list of project filenames. Respect\
.gitignore by excluding everything that git ignores. Update `files` and\
`test_files` arrays in "*.gemspec" file if it's present.}
task :manifest do
list = `git ls-files --full-name -x *.gemspec -x website`.chomp.split("\n")

if spec_file = Dir['*.gemspec'].first
spec = File.read spec_file
spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do
assignment = $1
bunch = $2 ? list.grep(/^(test|spec)\//) : list
'%s%%w(%s)' % [assignment, bunch.join(' ')]
end

File.open(spec_file, 'w') { |f| f << spec }
end
File.open('.manifest', 'w') { |f| f << list.join("\n") }
end

task :website do
Dir.chdir('website') do
%x(haml index.haml index.html)
Expand Down

0 comments on commit 5b43ca9

Please sign in to comment.