From: Tom Hughes Date: Sat, 21 Jan 2012 11:53:14 +0000 (+0000) Subject: Turn output_compression plugin into a library X-Git-Tag: live~6447 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/29c1bab0e6dcc0f4b302fb06c62a8bf0a35f875c Turn output_compression plugin into a library --- diff --git a/config/initializers/output_compression.rb b/config/initializers/output_compression.rb new file mode 100644 index 000000000..5a42e2a16 --- /dev/null +++ b/config/initializers/output_compression.rb @@ -0,0 +1 @@ +require 'output_compression/output_compression' diff --git a/vendor/plugins/output_compression/LICENSE b/lib/output_compression/LICENSE similarity index 100% rename from vendor/plugins/output_compression/LICENSE rename to lib/output_compression/LICENSE diff --git a/vendor/plugins/output_compression/README b/lib/output_compression/README similarity index 100% rename from vendor/plugins/output_compression/README rename to lib/output_compression/README diff --git a/vendor/plugins/output_compression/lib/output_compression.rb b/lib/output_compression/output_compression.rb similarity index 100% rename from vendor/plugins/output_compression/lib/output_compression.rb rename to lib/output_compression/output_compression.rb diff --git a/vendor/plugins/output_compression/Rakefile b/vendor/plugins/output_compression/Rakefile deleted file mode 100644 index 0ffac2d70..000000000 --- a/vendor/plugins/output_compression/Rakefile +++ /dev/null @@ -1,22 +0,0 @@ -require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' - -desc 'Default: run unit tests.' -task :default => :test - -desc 'Test the output_compression plugin.' -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.pattern = 'test/**/*_test.rb' - t.verbose = true -end - -desc 'Generate documentation for the output_compression plugin.' -Rake::RDocTask.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'OutputCompression' - rdoc.options << '--line-numbers --inline-source' - rdoc.rdoc_files.include('README') - rdoc.rdoc_files.include('lib/**/*.rb') -end diff --git a/vendor/plugins/output_compression/init.rb b/vendor/plugins/output_compression/init.rb deleted file mode 100644 index 52bdcc3f2..000000000 --- a/vendor/plugins/output_compression/init.rb +++ /dev/null @@ -1,2 +0,0 @@ -# Include hook code here -require 'output_compression' diff --git a/vendor/plugins/output_compression/lib/tasks/output_compression_tasks.rake b/vendor/plugins/output_compression/lib/tasks/output_compression_tasks.rake deleted file mode 100644 index 0382661bd..000000000 --- a/vendor/plugins/output_compression/lib/tasks/output_compression_tasks.rake +++ /dev/null @@ -1,4 +0,0 @@ -# desc "Explaining what the task does" -# task :output_compression do -# # Task goes here -# end \ No newline at end of file diff --git a/vendor/plugins/output_compression/test/output_compression_test.rb b/vendor/plugins/output_compression/test/output_compression_test.rb deleted file mode 100644 index 9b94fa187..000000000 --- a/vendor/plugins/output_compression/test/output_compression_test.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'test/unit' - -class OutputCompressionTest < Test::Unit::TestCase - # Replace this with your real tests. - def test_this_plugin - flunk - end -end