Diff
Copied: branches/rails2/lib/tasks/acts_as_bookmarkable_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/acts_as_bookmarkable/tasks/acts_as_bookmarkable_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/acts_as_bookmarkable_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/acts_as_bookmarkable_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :acts_as_bookmarkable do
+# # Task goes here
+# end
\ No newline at end of file
Copied: branches/rails2/lib/tasks/acts_as_commentable_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/acts_as_commentable/tasks/acts_as_commentable_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/acts_as_commentable_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/acts_as_commentable_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :acts_as_commentable do
+# # Task goes here
+# end
\ No newline at end of file
Copied: branches/rails2/lib/tasks/acts_as_rateable_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/acts_as_rateable/tasks/acts_as_rateable_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/acts_as_rateable_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/acts_as_rateable_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :acts_as_rateable do
+# # Task goes here
+# end
\ No newline at end of file
Copied: branches/rails2/lib/tasks/acts_as_taggable_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/acts_as_taggable_redux/tasks/acts_as_taggable_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/acts_as_taggable_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/acts_as_taggable_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,19 @@
+# namespace :acts_as_taggable do
+# require 'rails_generator'
+# require 'rails_generator/scripts/generate'
+#
+# namespace :db do
+# desc "Creates tag tables for use with acts_as_taggable"
+# task :create => :environment do
+# raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations?
+# Rails::Generator::Scripts::Generate.new.run([ "acts_as_taggable_tables", "add_acts_as_taggable_tables" ])
+# end
+# end
+#
+# namespace :stylesheet do
+# desc "Create tag stylesheet for use with acts_as_taggable"
+# task :create do
+# Rails::Generator::Scripts::Generate.new.run([ "acts_as_taggable_stylesheet" ])
+# end
+# end
+# end
Copied: branches/rails2/lib/tasks/fckeditor_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/fckeditor/tasks/fckeditor_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/fckeditor_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/fckeditor_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,97 @@
+# desc "Explaining what the task does"
+# task :fckeditor do
+# # Task goes here
+# end
+
+namespace :fckeditor do
+ def setup
+ require "config/environment"
+ require 'fileutils'
+
+ directory = File.join(RAILS_ROOT, '/vendor/plugins/fckeditor/')
+ require "#{directory}lib/fckeditor"
+ require "#{directory}lib/fckeditor_version"
+ require "#{directory}lib/fckeditor_file_utils"
+ end
+
+ desc 'Install the FCKEditor components'
+ task :install do
+ setup
+ puts "** Installing FCKEditor Plugin version #{FckeditorVersion.current}..."
+
+ FckeditorFileUtils.destroy_and_install
+
+ puts "** Successfully installed FCKEditor Plugin version #{FckeditorVersion.current}"
+ end
+
+ def fetch(path)
+ response = Net::HTTP.get_response(URI.parse(path))
+ case response
+ when Net::HTTPSuccess then
+ response
+ when Net::HTTPRedirection then
+ puts "** Redirected to #{response['location']}"
+ fetch(response['location'])
+ else
+ response.error!
+ end
+ end
+
+ desc "Update the FCKEditor code to the latest nightly build"
+ task :download do
+ require 'net/http'
+ require 'zip/zipfilesystem'
+
+ setup
+ version = ENV['VERSION'] || "Nightly"
+ installed_version = "2.4.2"
+
+ puts "** Current FCKEditor version: #{installed_version}..."
+ puts "** Downloading #{version} (1.2mb - please be patient)..."
+
+ rails_tmp_path = File.join(RAILS_ROOT, "/tmp/")
+ tmp_zip_path = File.join(rails_tmp_path, "fckeditor_#{version}.zip")
+
+ # Creating tmp dir if it doesn't exist
+ Dir.mkdir(rails_tmp_path) unless File.exists? rails_tmp_path
+
+ # Download nightly build (http://www.fckeditor.net/nightly/FCKeditor_N.zip)
+ # Releases (http://downloads.sourgefourge.net/fckeditor/FCKEditor_[2.4.3, 2.5b, 2.4.2].zip)
+ nightly = version=='Nightly' ? true : false
+ domain = nightly ? "http://www.fckeditor.net" : "http://downloads.sourceforge.net"
+ path = nightly ? "/nightly/FCKeditor_N.zip" : "/fckeditor/FCKeditor_#{version}.zip"
+
+ puts "** Download from #{domain}#{path}"
+ #Net::HTTP.start(domain) { |http|
+ response = fetch("#{domain}#{path}")
+
+ open(tmp_zip_path, "wb") { |file|
+ file.write(response.body)
+ }
+ #}
+ puts "** Download successful"
+
+ puts "** Extracting FCKeditor"
+ Zip::ZipFile.open(tmp_zip_path) do |zipfile|
+ zipfile.each do |entry|
+ filename = File.join(rails_tmp_path, entry.name)
+ FileUtils.rm_f(filename)
+ FileUtils.mkdir_p(File.dirname(filename))
+ entry.extract(filename)
+ end
+ end
+
+ puts "** Backing up existing FCKEditor install to /public/_javascript_s/fckeditor_bck"
+ FckeditorFileUtils.backup_existing
+
+ puts "** Shifting files to /public/_javascript_s/fckeditor"
+ FileUtils.cp_r File.join(RAILS_ROOT, "/tmp/fckeditor/"), File.join(RAILS_ROOT, "/public/_javascript_s/")
+
+ puts "** Clean up"
+ FileUtils.remove_file(tmp_zip_path, true)
+ FileUtils.remove_entry(File.join(rails_tmp_path, "fckeditor/"), true)
+
+ puts "** Successfully updated to FCKEditor version: #{version}..."
+ end
+end
+
Copied: branches/rails2/lib/tasks/oauth_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/oauth_plugin/tasks/oauth_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/oauth_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/oauth_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :oauth do
+# # Task goes here
+# end
Copied: branches/rails2/lib/tasks/open_id_authentication_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/open_id_authentication/tasks/open_id_authentication_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/open_id_authentication_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/open_id_authentication_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,16 @@
+namespace :open_id_authentication do
+ namespace :db do
+ desc "Creates authentication tables for use with OpenIdAuthentication"
+ task :create => :environment do
+ raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations?
+ require 'rails_generator'
+ require 'rails_generator/scripts/generate'
+ Rails::Generator::Scripts::Generate.new.run([ "open_id_authentication_tables", "add_open_id_authentication_tables" ])
+ end
+
+ desc "Clear the authentication tables"
+ task :clear => :environment do
+ OpenIdAuthentication::DbStore.gc
+ end
+ end
+end
\ No newline at end of file
Copied: branches/rails2/lib/tasks/qrcode_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/qrcode/tasks/qrcode_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/qrcode_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/qrcode_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :qrcode do
+# # Task goes here
+# end
\ No newline at end of file
Copied: branches/rails2/lib/tasks/recaptcha_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/recaptcha/tasks/recaptcha_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/recaptcha_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/recaptcha_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :recaptcha do
+# # Task goes here
+# end
\ No newline at end of file
Copied: branches/rails2/lib/tasks/structured_data_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/structured_data/tasks/structured_data_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/structured_data_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/structured_data_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :structured_data do
+# # Task goes here
+# end
Copied: branches/rails2/lib/tasks/validates_captcha_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/validates_captcha/tasks/validates_captcha_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/validates_captcha_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/validates_captcha_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :validates_captcha do
+# # Task goes here
+# end
\ No newline at end of file
Copied: branches/rails2/lib/tasks/widgets_tasks.rake (from rev 2835, branches/rails2/vendor/plugins/widgets/tasks/widgets_tasks.rake) (0 => 2840)
--- branches/rails2/lib/tasks/widgets_tasks.rake (rev 0)
+++ branches/rails2/lib/tasks/widgets_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :widgets do
+# # Task goes here
+# end
\ No newline at end of file
Deleted: branches/rails2/vendor/plugins/acts_as_bookmarkable/tasks/acts_as_bookmarkable_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/acts_as_bookmarkable/tasks/acts_as_bookmarkable_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/acts_as_bookmarkable/tasks/acts_as_bookmarkable_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :acts_as_bookmarkable do
-# # Task goes here
-# end
\ No newline at end of file
Deleted: branches/rails2/vendor/plugins/acts_as_commentable/tasks/acts_as_commentable_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/acts_as_commentable/tasks/acts_as_commentable_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/acts_as_commentable/tasks/acts_as_commentable_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :acts_as_commentable do
-# # Task goes here
-# end
\ No newline at end of file
Deleted: branches/rails2/vendor/plugins/acts_as_rateable/tasks/acts_as_rateable_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/acts_as_rateable/tasks/acts_as_rateable_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/acts_as_rateable/tasks/acts_as_rateable_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :acts_as_rateable do
-# # Task goes here
-# end
\ No newline at end of file
Deleted: branches/rails2/vendor/plugins/acts_as_taggable_redux/tasks/acts_as_taggable_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/acts_as_taggable_redux/tasks/acts_as_taggable_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/acts_as_taggable_redux/tasks/acts_as_taggable_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,19 +0,0 @@
-# namespace :acts_as_taggable do
-# require 'rails_generator'
-# require 'rails_generator/scripts/generate'
-#
-# namespace :db do
-# desc "Creates tag tables for use with acts_as_taggable"
-# task :create => :environment do
-# raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations?
-# Rails::Generator::Scripts::Generate.new.run([ "acts_as_taggable_tables", "add_acts_as_taggable_tables" ])
-# end
-# end
-#
-# namespace :stylesheet do
-# desc "Create tag stylesheet for use with acts_as_taggable"
-# task :create do
-# Rails::Generator::Scripts::Generate.new.run([ "acts_as_taggable_stylesheet" ])
-# end
-# end
-# end
Deleted: branches/rails2/vendor/plugins/fckeditor/tasks/fckeditor_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/fckeditor/tasks/fckeditor_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/fckeditor/tasks/fckeditor_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,97 +0,0 @@
-# desc "Explaining what the task does"
-# task :fckeditor do
-# # Task goes here
-# end
-
-namespace :fckeditor do
- def setup
- require "config/environment"
- require 'fileutils'
-
- directory = File.join(RAILS_ROOT, '/vendor/plugins/fckeditor/')
- require "#{directory}lib/fckeditor"
- require "#{directory}lib/fckeditor_version"
- require "#{directory}lib/fckeditor_file_utils"
- end
-
- desc 'Install the FCKEditor components'
- task :install do
- setup
- puts "** Installing FCKEditor Plugin version #{FckeditorVersion.current}..."
-
- FckeditorFileUtils.destroy_and_install
-
- puts "** Successfully installed FCKEditor Plugin version #{FckeditorVersion.current}"
- end
-
- def fetch(path)
- response = Net::HTTP.get_response(URI.parse(path))
- case response
- when Net::HTTPSuccess then
- response
- when Net::HTTPRedirection then
- puts "** Redirected to #{response['location']}"
- fetch(response['location'])
- else
- response.error!
- end
- end
-
- desc "Update the FCKEditor code to the latest nightly build"
- task :download do
- require 'net/http'
- require 'zip/zipfilesystem'
-
- setup
- version = ENV['VERSION'] || "Nightly"
- installed_version = "2.4.2"
-
- puts "** Current FCKEditor version: #{installed_version}..."
- puts "** Downloading #{version} (1.2mb - please be patient)..."
-
- rails_tmp_path = File.join(RAILS_ROOT, "/tmp/")
- tmp_zip_path = File.join(rails_tmp_path, "fckeditor_#{version}.zip")
-
- # Creating tmp dir if it doesn't exist
- Dir.mkdir(rails_tmp_path) unless File.exists? rails_tmp_path
-
- # Download nightly build (http://www.fckeditor.net/nightly/FCKeditor_N.zip)
- # Releases (http://downloads.sourgefourge.net/fckeditor/FCKEditor_[2.4.3, 2.5b, 2.4.2].zip)
- nightly = version=='Nightly' ? true : false
- domain = nightly ? "http://www.fckeditor.net" : "http://downloads.sourceforge.net"
- path = nightly ? "/nightly/FCKeditor_N.zip" : "/fckeditor/FCKeditor_#{version}.zip"
-
- puts "** Download from #{domain}#{path}"
- #Net::HTTP.start(domain) { |http|
- response = fetch("#{domain}#{path}")
-
- open(tmp_zip_path, "wb") { |file|
- file.write(response.body)
- }
- #}
- puts "** Download successful"
-
- puts "** Extracting FCKeditor"
- Zip::ZipFile.open(tmp_zip_path) do |zipfile|
- zipfile.each do |entry|
- filename = File.join(rails_tmp_path, entry.name)
- FileUtils.rm_f(filename)
- FileUtils.mkdir_p(File.dirname(filename))
- entry.extract(filename)
- end
- end
-
- puts "** Backing up existing FCKEditor install to /public/_javascript_s/fckeditor_bck"
- FckeditorFileUtils.backup_existing
-
- puts "** Shifting files to /public/_javascript_s/fckeditor"
- FileUtils.cp_r File.join(RAILS_ROOT, "/tmp/fckeditor/"), File.join(RAILS_ROOT, "/public/_javascript_s/")
-
- puts "** Clean up"
- FileUtils.remove_file(tmp_zip_path, true)
- FileUtils.remove_entry(File.join(rails_tmp_path, "fckeditor/"), true)
-
- puts "** Successfully updated to FCKEditor version: #{version}..."
- end
-end
-
Deleted: branches/rails2/vendor/plugins/oauth_plugin/tasks/oauth_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/oauth_plugin/tasks/oauth_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/oauth_plugin/tasks/oauth_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :oauth do
-# # Task goes here
-# end
Deleted: branches/rails2/vendor/plugins/open_id_authentication/tasks/open_id_authentication_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/open_id_authentication/tasks/open_id_authentication_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/open_id_authentication/tasks/open_id_authentication_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,16 +0,0 @@
-namespace :open_id_authentication do
- namespace :db do
- desc "Creates authentication tables for use with OpenIdAuthentication"
- task :create => :environment do
- raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations?
- require 'rails_generator'
- require 'rails_generator/scripts/generate'
- Rails::Generator::Scripts::Generate.new.run([ "open_id_authentication_tables", "add_open_id_authentication_tables" ])
- end
-
- desc "Clear the authentication tables"
- task :clear => :environment do
- OpenIdAuthentication::DbStore.gc
- end
- end
-end
\ No newline at end of file
Deleted: branches/rails2/vendor/plugins/qrcode/tasks/qrcode_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/qrcode/tasks/qrcode_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/qrcode/tasks/qrcode_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :qrcode do
-# # Task goes here
-# end
\ No newline at end of file
Deleted: branches/rails2/vendor/plugins/recaptcha/tasks/recaptcha_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/recaptcha/tasks/recaptcha_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/recaptcha/tasks/recaptcha_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :recaptcha do
-# # Task goes here
-# end
\ No newline at end of file
Deleted: branches/rails2/vendor/plugins/structured_data/tasks/structured_data_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/structured_data/tasks/structured_data_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/structured_data/tasks/structured_data_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :structured_data do
-# # Task goes here
-# end
Deleted: branches/rails2/vendor/plugins/validates_captcha/tasks/validates_captcha_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/validates_captcha/tasks/validates_captcha_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/validates_captcha/tasks/validates_captcha_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :validates_captcha do
-# # Task goes here
-# end
\ No newline at end of file
Deleted: branches/rails2/vendor/plugins/widgets/tasks/widgets_tasks.rake (2839 => 2840)
--- branches/rails2/vendor/plugins/widgets/tasks/widgets_tasks.rake 2011-11-23 21:13:05 UTC (rev 2839)
+++ branches/rails2/vendor/plugins/widgets/tasks/widgets_tasks.rake 2011-11-23 21:21:14 UTC (rev 2840)
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :widgets do
-# # Task goes here
-# end
\ No newline at end of file