diff --git a/.autotest b/.autotest deleted file mode 100644 index ade45eb05..000000000 --- a/.autotest +++ /dev/null @@ -1,54 +0,0 @@ -Autotest.add_hook :initialize do |at| - - at.libs = 'lib:spec' - - at.clear_mappings - - at.add_mapping(%r{^lib/will_paginate/(.+)\.rb$}) { |_, match| - "spec/#{match[1]}_spec.rb" - } - at.add_mapping(%r{^spec/.+_spec\.rb$}) { |f, _| f } - at.add_mapping(%r{^spec/(finders/activerecord_test_connector.rb|database.yml|fixtures/.+)$}) { - 'spec/finders/active_record_spec.rb' - } - at.add_mapping(%r{^spec/((spec_helper|shared/.+)\.rb|spec.opts)$}) { - # simply re-run all specs - at.files_matching %r{^spec/.+_spec\.rb$} - } - - # add these to ignore list - %w{ .git test/ rails/ Rakefile README.rdoc init.rb .autotest - doc/ coverage/ LICENSE CHANGELOG .manifest will_paginate.gemspec examples/ - spec/tasks.rake spec/console spec/rcov.opts - }.each { |path| at.add_exception path } - -end - -Autotest::Rspec.class_eval do - # RSpec guys forgot about `libs` in make_test_cmd - def make_test_cmd_with_libs(files_to_test) - make_test_cmd_without_libs(files_to_test).sub(' -S ', " -S -I#{libs} ") - end - - alias :make_test_cmd_without_libs :make_test_cmd - alias :make_test_cmd :make_test_cmd_with_libs - - # ugh, we have to monkeypatch Autotest ... - # the regexp it generates for the exception list just matches too much - # - # SOLUTION: wrap it up in another regexp that anchors the whole expression to - # the beginning of the path - def exceptions - unless defined? @exceptions then - if @exception_list.empty? then - @exceptions = nil - else - # old (BAD): - # @exceptions = Regexp.union(*@exception_list) - @exceptions = /^\.\/#{Regexp.union(*@exception_list)}/ - end - end - - @exceptions - end -end diff --git a/.manifest b/.manifest deleted file mode 100644 index 807df17fb..000000000 --- a/.manifest +++ /dev/null @@ -1,61 +0,0 @@ -.autotest -.gitignore -.gitmodules -.manifest -CHANGELOG.rdoc -LICENSE -README.rdoc -Rakefile -init.rb -lib/will_paginate.rb -lib/will_paginate/array.rb -lib/will_paginate/collection.rb -lib/will_paginate/core_ext.rb -lib/will_paginate/deprecation.rb -lib/will_paginate/finders.rb -lib/will_paginate/finders/active_record.rb -lib/will_paginate/finders/active_record/named_scope.rb -lib/will_paginate/finders/active_record/named_scope_patch.rb -lib/will_paginate/finders/active_resource.rb -lib/will_paginate/finders/base.rb -lib/will_paginate/finders/data_mapper.rb -lib/will_paginate/finders/sequel.rb -lib/will_paginate/version.rb -lib/will_paginate/view_helpers.rb -lib/will_paginate/view_helpers/action_view.rb -lib/will_paginate/view_helpers/base.rb -lib/will_paginate/view_helpers/link_renderer.rb -lib/will_paginate/view_helpers/link_renderer_base.rb -lib/will_paginate/view_helpers/merb.rb -spec/collection_spec.rb -spec/console -spec/console_fixtures.rb -spec/database.yml -spec/finders/active_record_spec.rb -spec/finders/active_resource_spec.rb -spec/finders/activerecord_test_connector.rb -spec/finders/data_mapper_spec.rb -spec/finders/data_mapper_test_connector.rb -spec/finders/sequel_spec.rb -spec/finders/sequel_test_connector.rb -spec/finders_spec.rb -spec/fixtures/admin.rb -spec/fixtures/developer.rb -spec/fixtures/developers_projects.yml -spec/fixtures/project.rb -spec/fixtures/projects.yml -spec/fixtures/replies.yml -spec/fixtures/reply.rb -spec/fixtures/schema.rb -spec/fixtures/topic.rb -spec/fixtures/topics.yml -spec/fixtures/user.rb -spec/fixtures/users.yml -spec/rcov.opts -spec/spec.opts -spec/spec_helper.rb -spec/tasks.rake -spec/view_helpers/action_view_spec.rb -spec/view_helpers/base_spec.rb -spec/view_helpers/link_renderer_base_spec.rb -spec/view_helpers/view_example_group.rb \ No newline at end of file diff --git a/Rakefile b/Rakefile index f92b3dada..357d90bd6 100644 --- a/Rakefile +++ b/Rakefile @@ -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)