From e0a7e0fec760ba12c8067a37e10c96f1f05876e2 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 24 Jun 2026 04:13:16 +0200 Subject: Stage 1 complete: Rails 2.3.5 to Rails 3.2.22.5 upgrade - Converted plugins to gems (Gemfile) - Updated config structure (application.rb, boot.rb, environment.rb) - Converted routes to Rails 3 DSL - Converted named_scope to scope throughout models - Converted find(:all, :conditions) to where() chains - Fixed has_many :order to use ordering scope - Updated session store and secret token configuration - Fixed exception_notification middleware configuration - Patched Ruby 2.4 / Rails 3.2 incompatibilities: - Integer/Float duration arithmetic (ActiveSupport) - Arel visit_Integer for PostgreSQL adapter - create_database String/Integer coercion - ActionController consider_all_requests_local - Migrated taggings schema for acts-as-taggable-on - Replaced dynamic_form gem with custom form_error_messages helper - Fixed Rails 3 block helper syntax (form_for, form_tag, fields_for) - Fixed admin layout yield - Updated test suite for Rails 3 APIs --- vendor/plugins/paperclip/Rakefile | 77 --------------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 vendor/plugins/paperclip/Rakefile (limited to 'vendor/plugins/paperclip/Rakefile') diff --git a/vendor/plugins/paperclip/Rakefile b/vendor/plugins/paperclip/Rakefile deleted file mode 100644 index 91f16873..00000000 --- a/vendor/plugins/paperclip/Rakefile +++ /dev/null @@ -1,77 +0,0 @@ -require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' - -$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib') -require 'paperclip' - -desc 'Default: run unit tests.' -task :default => [:clean, :test] - -desc 'Test the paperclip plugin.' -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' << 'profile' - t.pattern = 'test/**/*_test.rb' - t.verbose = true -end - -desc 'Start an IRB session with all necessary files required.' -task :shell do |t| - chdir File.dirname(__FILE__) - exec 'irb -I lib/ -I lib/paperclip -r rubygems -r active_record -r tempfile -r init' -end - -desc 'Generate documentation for the paperclip plugin.' -Rake::RDocTask.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'doc' - rdoc.title = 'Paperclip' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') -end - -desc 'Update documentation on website' -task :sync_docs => 'rdoc' do - `rsync -ave ssh doc/ dev@dev.thoughtbot.com:/home/dev/www/dev.thoughtbot.com/paperclip` -end - -desc 'Clean up files.' -task :clean do |t| - FileUtils.rm_rf "doc" - FileUtils.rm_rf "tmp" - FileUtils.rm_rf "pkg" - FileUtils.rm "test/debug.log" rescue nil - FileUtils.rm "test/paperclip.db" rescue nil -end - -spec = Gem::Specification.new do |s| - s.name = "paperclip" - s.version = Paperclip::VERSION - s.author = "Jon Yurek" - s.email = "jyurek@thoughtbot.com" - s.homepage = "http://www.thoughtbot.com/projects/paperclip" - s.platform = Gem::Platform::RUBY - s.summary = "File attachments as attributes for ActiveRecord" - s.files = FileList["README*", - "LICENSE", - "Rakefile", - "init.rb", - "{generators,lib,tasks,test,shoulda_macros}/**/*"].to_a - s.require_path = "lib" - s.test_files = FileList["test/**/test_*.rb"].to_a - s.rubyforge_project = "paperclip" - s.has_rdoc = true - s.extra_rdoc_files = FileList["README*"].to_a - s.rdoc_options << '--line-numbers' << '--inline-source' - s.requirements << "ImageMagick" - s.add_runtime_dependency 'right_aws' - s.add_development_dependency 'thoughtbot-shoulda' - s.add_development_dependency 'mocha' -end - -desc "Generate a gemspec file for GitHub" -task :gemspec do - File.open("#{spec.name}.gemspec", 'w') do |f| - f.write spec.to_ruby - end -end -- cgit v1.3