Commit Graph
40 Commits
Author SHA1 Message Date
Brenda Wallace 0f0de4f0fd Update Ruby to 4.0.9 2026-10-24 17:31:23 +13:00
51feec8de1 Add comment support for plantings (#4984)
* Add comment support for plantings

- Add polymorphic comments association, subject, and author methods to Planting.
- Add comments_count column migration for Planting counter cache.
- Update CommentsController and comments view templates to support Planting.
- Render comments list and form on Planting show view.
- Add specs for Planting comments in models, controllers, and requests.

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

* put 4.0.7 back

* Opt comments on posts into record-page styling temporarily

* Drop hr

* Flatten comments

* Update schema

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
2026-10-22 15:22:32 +00:00
Daniel O'ConnorandBrenda Wallace 6e0317efb1 Bump to ruby 4.0.7 (#4903)
Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
2026-10-13 12:42:52 +10:30
Brenda WallaceandClaude Opus 5 1b06cdbfa5 Restore the Ruby 4.0.6 upgrade (#4845)
PR #4831 committed a stale Gemfile.lock over the newer one, taking
.ruby-version back to 3.2.3 and rolling back active_median, dalli,
parallel, rbs and selenium-webdriver. Dockerfile and
.devcontainer/Dockerfile still build on Ruby 4, so the Gemfile's version
check fails against the image.

Restores both files to what they were before that merge.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 19:26:52 +09:30
5331a7c831 Filter harvest reminders in SQL instead of Ruby memory (#4831)
* Filter harvest reminders in SQL instead of Ruby memory

- Add `harvest_in_next_week` scope to `PredictHarvest` concern
- Use SQL scope in `NotifierMailer#harvest_reminder` and `exists?` in `growstuff:send_harvest_reminders` task
- Add unit specs for `.harvest_in_next_week` scope and rake task

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

* Filter harvest reminders in SQL instead of Ruby memory

- Add `harvest_in_next_week` scope to `PredictHarvest` concern
- Use SQL scope in `NotifierMailer#harvest_reminder` and `exists?` in `growstuff:send_harvest_reminders` task
- Add unit specs for `.harvest_in_next_week` scope and rake task

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

* Filter harvest reminders in SQL instead of Ruby memory

- Add `harvest_in_next_week` scope to `PredictHarvest` concern
- Use SQL scope in `NotifierMailer#harvest_reminder` and `exists?` in `growstuff:send_harvest_reminders` task
- Add unit specs for `.harvest_in_next_week` scope and rake task

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-09-22 19:18:57 +09:30
Daniel O'Connor 277607cc26 Update to Ruby 4.0.6 2026-08-23 06:13:51 +00:00
Daniel O'Connor 431e3b3574 Ruby 3.4.10 2026-08-23 05:56:57 +00:00
Daniel O'Connor c168e8e4c9 Update to 3.4.9 2026-05-02 06:36:27 +00:00
Daniel O'Connor ffc381ec6f Merge pull request #4462 from Growstuff/ruby-3.4
Ruby 3.4.8
2026-03-01 15:40:30 +10:30
Daniel O'Connor 82d3f84e0c Ruby 3.3.8 2025-08-10 01:09:08 +00:00
Daniel O'Connor e2eecf4220 Bump ruby 2025-03-29 02:38:12 +00:00
Daniel O'Connor 826f92691a Trial Ruby 3.3.* (#3778)
* Ruby 3.3

* Upgrade.
2024-07-13 15:42:51 +09:30
Daniel O'Connor 000f4979db Trial Ruby32 (#3418)
* Ruby 3.2/Bundler 2.4

* Fix creation

* Upgrade to js-routes 2. Put all js routes into a global namespace.

* Remove js-routes

* Remove

* Adjust ownership

* Appease codeclimate for the nth time

* Fix deprecation warning by explicitly calling to_fs

* Fix deprecation warning by explicitly calling to_fs

* Fix deprecation warning by explicitly calling to_fs

* Swap to will paginate successor for bootstrap

* Update app/views/members/show.html.haml

* Update app/views/plantings/index.rss.haml

* Update .env

* Update .devcontainer/.env

* Fix spec

* Update spec

* Fix spec

* Pin to 2.4.22

* 3 space indent

* Regenerate

* Update rubocop
2024-07-13 14:45:33 +09:30
Daniel O'Connor a7d340e3be Bump to ruby 3.1.4
For https://github.com/Growstuff/growstuff/issues/3315

Does it work for Heroku? Who knows!
2023-04-27 19:24:28 +09:30
Daniel O'Connor 3a12b331e3 Ruby 3.1.3. Heroku now claims support 2023-03-13 01:52:13 +00:00
Cesy 4830228436 Revert "Reupgrade ruby" 2022-12-18 10:09:00 +00:00
Cesy 0938e6b7a9 Revert "Revert "Update ruby version to 3.1.3""
This reverts commit d479c0d906.
2022-12-15 13:41:34 +00:00
Cesy d479c0d906 Revert "Update ruby version to 3.1.3"
This reverts commit 34daa5b9ec.
2022-12-14 18:14:09 +00:00
Cesy 34daa5b9ec Update ruby version to 3.1.3 2022-12-09 18:00:29 +00:00
Daniel O'Connor 6d296cf336 Merge branch 'dev' into bump-ruby-3.1.x 2022-11-06 16:03:08 +10:30
Daniel O'Connor bf8504009c Bump to Ruby 3 (#2978)
* Ruby 2.7.5

* Bump to Ruby 3

* Ruby 2.7.5

* Swap to a ruby3 friendly branch

* Ruby

* Bump

* Remove third argument for text columns

* Rubocop

* Splat args

* Rubocop complaints

* Lint
2022-04-19 22:36:12 +09:30
Daniel O'Connor 3a5b06d810 Ruby 3.1.2 2022-04-17 00:39:16 +09:30
Daniel O'Connor 583e3dc077 Ruby 2022-04-16 21:52:37 +09:30
Daniel O'ConnorandBrenda Wallace 85ca296019 Ruby 2.7.5 (#2977)
* Ruby 2.7.5

* Update Gemfile.lock

Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>

Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
2022-03-27 20:39:32 +10:30
Daniel O'Connor 841e89232b Bump to Ruby 3 2022-03-27 00:56:12 +10:30
Daniel O'Connor e1d6e56595 Ruby 2.7.5 2022-03-27 00:46:33 +10:30
Brenda Wallace 4d3fcc8497 Upgrade ruby to 2.7.2 2021-01-06 11:39:03 +13:00
Brenda Wallace 712184fb6e Bump ruby version to 2.6.5 2019-11-23 07:54:22 +13:00
Brenda Wallace f5d48d1b56 Removing bootstrap 3 - only bootstrap 4
because both isn't particularly clever
2019-05-13 07:52:38 +12:00
Brenda Wallace b7f876429a Upgrade to ruby 2.6.0 2019-01-01 13:31:09 +13:00
Brenda Wallace 9477b4f9c7 Bump ruby version to 2.4.1 2017-10-19 08:22:40 +13:00
Daniel O'Connor 8615df264e Ruby 2.3.4 2017-03-31 16:29:21 +10:00
Brenda Wallace b0dd53eb63 Upgrade to ruby 2.3.3 2016-12-17 20:32:07 +13:00
Daniel O'Connor 40d7b11d90 #952 Try ruby 2.3.1 2016-06-02 13:13:52 +09:30
Daniel O'Connor b0adec20e7 Fix CVE-2015-7551 (https://www.ruby-lang.org/en/news/2015/12/16/unsafe-tainted-string-usage-in-fiddle-and-dl-cve-2015-7551/) 2016-03-28 23:40:17 +10:30
Daniel O'Connor 48829dba3c Bump to ruby 2.1.7 for CVE-2015-3900 Request hijacking vulnerability in RubyGems 2.4.6 and earlier; and others - https://www.ruby-lang.org/en/news/2015/08/18/ruby-2-1-7-released/ 2015-09-22 11:14:50 +09:30
Daniel O'Connor 5cac8743f8 Upgrade to ruby 2.1.6 for CVE-2015-1855: Ruby OpenSSL Hostname Verification 2015-08-13 15:06:56 +10:00
Miles Gould 43c241219d Update .ruby-version to match Gemfile. 2014-12-13 11:56:18 +00:00
Cesy Avon edf2f36bcd Upgrading to ruby 2.1.2 2014-10-18 16:58:23 +01:00
Alex Bayley 932cbbea26 switch from .rvmrc to .ruby-version 2014-05-13 13:51:16 +10:00