]> git.openstreetmap.org Git - rails.git/commitdiff
Turn output_compression plugin into a library
authorTom Hughes <tom@compton.nu>
Sat, 21 Jan 2012 11:53:14 +0000 (11:53 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 15 Feb 2012 17:48:15 +0000 (17:48 +0000)
config/initializers/output_compression.rb [new file with mode: 0644]
lib/output_compression/LICENSE [moved from vendor/plugins/output_compression/LICENSE with 100% similarity]
lib/output_compression/README [moved from vendor/plugins/output_compression/README with 100% similarity]
lib/output_compression/output_compression.rb [moved from vendor/plugins/output_compression/lib/output_compression.rb with 100% similarity]
vendor/plugins/output_compression/Rakefile [deleted file]
vendor/plugins/output_compression/init.rb [deleted file]
vendor/plugins/output_compression/lib/tasks/output_compression_tasks.rake [deleted file]
vendor/plugins/output_compression/test/output_compression_test.rb [deleted file]

diff --git a/config/initializers/output_compression.rb b/config/initializers/output_compression.rb
new file mode 100644 (file)
index 0000000..5a42e2a
--- /dev/null
@@ -0,0 +1 @@
+require 'output_compression/output_compression'
diff --git a/vendor/plugins/output_compression/Rakefile b/vendor/plugins/output_compression/Rakefile
deleted file mode 100644 (file)
index 0ffac2d..0000000
+++ /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 (file)
index 52bdcc3..0000000
+++ /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 (file)
index 0382661..0000000
+++ /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 (file)
index 9b94fa1..0000000
+++ /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