summaryrefslogtreecommitdiff
path: root/lib/tasks
AgeCommit message (Collapse)Author
2026-07-31Group user accounts by roleerdgeist
Replaces the two-way admin/user split with four groups ordered by capability: administration, Redaktion, editors, alumni. alumni takes precedence over capability in role_group, so a retired admin appears at the bottom rather than the top. Forms now offer the three roles as checkboxes rather than a single admin checkbox, with a trailing hidden blank so an empty set can be posted, and user_params permits roles only for admins. Three create buttons prefill the common combinations.
2026-07-30Generate a 1200x630 social card variant for every asseterdgeist
2026-07-23Force tags to be lowercase. A script unifies existing tags in both caseserdgeist
2026-07-23Record asset deltas at publish, with changed assets as participantserdgeist
2026-07-23Add action_participants, recording every node a trash/destroy toucheserdgeist
2026-07-21Implement model side of PDF raster preview generationerdgeist
2026-07-20Make headline images explicit, add asset creditserdgeist
- related_assets gains a `headline` boolean (DB-enforced: at most one per page), replacing "first image by position" as the headline rule. A rake task backfills the current first image on every live head/draft, so nothing changes visually until an editor changes it. - The image picker sidebar gets a star toggle reflecting the flag; the TinyMCE inline-image picker's badge now reads it too, instead of assuming position 0. - No headline chosen (or none attached) now falls back to the gallery-count caption itself becoming the lightbox trigger, instead of the gallery being unreachable. - Assets gain creator, source_url, and license_key (against a new config/asset_licenses.yml dictionary). asset_credit renders a degrading attribution line, reused as a hidden per-image glightbox caption so credit is one click away for every image, not only the headline's always-visible one. - Fixed: asset thumbnails rendered unconditionally regardless of whether a real variant exists on disk. Asset#has_variant? checks file existence, not content type -- some legacy PDFs have real pre-rewrite thumbnails a content-type check would have hidden. - assets#new/edit rebuilt onto the same node_description/node_content layout as assets#show, picking up the three new fields in the process.
2026-07-16Add a script to backfill action log from existing recordserdgeist
2026-07-13Add assets:regenerate_variants rake taskerdgeist
Regenerates ImageMagick variants from each asset's stored original -- needed because assets uploaded before :headline existed in FileAttachment::STYLES never had that file generated, producing a 404 rather than a distorted image. Supports ASSET_ID=N scoping so a single asset can be tested before committing to a full, expensive sweep across everything. Doesn't touch the separate, still-open problem of :headline's forced non-uniform stretch (460x250!) -- this task faithfully regenerates whatever geometry the style defines, correctly. Fixing the distortion itself is its own, later piece.
2026-06-24Stage 1 complete: Rails 2.3.5 to Rails 3.2.22.5 upgradeerdgeist
- 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
2010-03-02ruby 1.9 compatibility hukl
2009-11-15rake task to set the update template on all updateshukl
2009-11-12cleanup of rake task outputhukl
2009-11-11added rake task to remove orphan pages (pages without a node)hukl
2009-11-11added rake task to migrate to the new editor column.
also added rake task to repair pages that don't have a published_at date sethukl
2009-10-21adding admin flag in setup taskhukl
2009-09-17preparing for postgres migration. adding rake task for conversionhukl
2009-09-05changed the rcov gem requirement and updated rcov taskhukl
2009-04-19updated rake taskhukl
2009-04-18added update_authors_on_pages task. run after importing authorshukl
2009-04-07adding the new chaos_importer.rb to the setup_environment task.hukl
removed libxml-ruby dependency
2009-03-05more entities translated, refined xpath selectorhukl
2009-03-05get rid of the stupid entities. its the 21st century baby. unicode is widely available already! except for windowshukl
2009-03-01run rake cccms:setup_environment to get all tasks done at oncehukl
2009-02-28building rcov output as well ?hukl
2009-02-28description for taskhukl
2009-02-27new taskhukl
2009-02-27rake task for integrityhukl
2009-02-27new coverage rake task - finallyhukl
2009-02-24put the rcov task into a seperate file so rcov is not necessaryhukl
2009-02-22created route for home page, removed rails index.htmlhukl
2009-02-21added importer for authors and adding proper authorshukl
to imported pages
2009-02-21rake task to create a user and rake task to importhukl
the updates