diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 04:13:16 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 04:13:16 +0200 |
| commit | e0a7e0fec760ba12c8067a37e10c96f1f05876e2 (patch) | |
| tree | d0cf745592a46aee4d4913911fd34c7c24515220 /vendor/plugins/awesome_nested_set/Rakefile | |
| parent | 6424e10be5a89f175a74c71c55660412a169b8b8 (diff) | |
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
Diffstat (limited to 'vendor/plugins/awesome_nested_set/Rakefile')
| -rw-r--r-- | vendor/plugins/awesome_nested_set/Rakefile | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/vendor/plugins/awesome_nested_set/Rakefile b/vendor/plugins/awesome_nested_set/Rakefile deleted file mode 100644 index ce708136..00000000 --- a/vendor/plugins/awesome_nested_set/Rakefile +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | begin | ||
| 2 | require 'jeweler' | ||
| 3 | rescue LoadError | ||
| 4 | puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" | ||
| 5 | exit 1 | ||
| 6 | end | ||
| 7 | require 'rake/testtask' | ||
| 8 | require 'rake/rdoctask' | ||
| 9 | require 'rcov/rcovtask' | ||
| 10 | require "load_multi_rails_rake_tasks" | ||
| 11 | |||
| 12 | Jeweler::Tasks.new do |s| | ||
| 13 | s.name = "awesome_nested_set" | ||
| 14 | s.summary = "An awesome nested set implementation for Active Record" | ||
| 15 | s.description = s.summary | ||
| 16 | s.email = "info@collectiveidea.com" | ||
| 17 | s.homepage = "http://github.com/collectiveidea/awesome_nested_set" | ||
| 18 | s.authors = ["Brandon Keepers", "Daniel Morrison"] | ||
| 19 | s.add_dependency "activerecord", ['>= 1.1'] | ||
| 20 | s.has_rdoc = true | ||
| 21 | s.extra_rdoc_files = [ "README.rdoc"] | ||
| 22 | s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers"] | ||
| 23 | s.test_files = Dir['test/**/*.{yml,rb}'] | ||
| 24 | end | ||
| 25 | |||
| 26 | desc 'Default: run unit tests.' | ||
| 27 | task :default => :test | ||
| 28 | |||
| 29 | desc 'Test the awesome_nested_set plugin.' | ||
| 30 | Rake::TestTask.new(:test) do |t| | ||
| 31 | t.libs += ['lib', 'test'] | ||
| 32 | t.pattern = 'test/**/*_test.rb' | ||
| 33 | t.verbose = true | ||
| 34 | end | ||
| 35 | |||
| 36 | desc 'Generate documentation for the awesome_nested_set plugin.' | ||
| 37 | Rake::RDocTask.new(:rdoc) do |rdoc| | ||
| 38 | rdoc.rdoc_dir = 'rdoc' | ||
| 39 | rdoc.title = 'AwesomeNestedSet' | ||
| 40 | rdoc.options << '--line-numbers' << '--inline-source' | ||
| 41 | rdoc.rdoc_files.include('README.rdoc') | ||
| 42 | rdoc.rdoc_files.include('lib/**/*.rb') | ||
| 43 | end | ||
| 44 | |||
| 45 | namespace :test do | ||
| 46 | desc "just rcov minus html output" | ||
| 47 | Rcov::RcovTask.new(:coverage) do |t| | ||
| 48 | t.libs << 'test' | ||
| 49 | t.test_files = FileList['test/**/*_test.rb'] | ||
| 50 | t.output_dir = 'coverage' | ||
| 51 | t.verbose = true | ||
| 52 | t.rcov_opts = %w(--exclude test,/usr/lib/ruby,/Library/Ruby,lib/awesome_nested_set/named_scope.rb --sort coverage) | ||
| 53 | end | ||
| 54 | end \ No newline at end of file | ||
