Compare commits

...

202 Commits

Author SHA1 Message Date
Daniel O'Connor
13e8e2747b Merge branch 'dev' into Style/SoleNestedConditional 2024-07-13 15:14:57 +09:30
Daniel O'Connor
d542326047 Ruby 3.2: Rubocop - Rails/FilePath (#3783)
* Rails/FilePath
2024-07-13 15:13:56 +09:30
Daniel O'Connor
e69467f056 Ruby 3.2: Rubocop - RSpec/excessive docstring spacing (#3782)
* RSpec/ExcessiveDocstringSpacing
2024-07-13 15:12:56 +09:30
Daniel O'Connor
1176d18918 Ruby 3.2: Rubocop - Fix Lint/symbol conversion (#3781)
* Lint/SymbolConversion: Unnecessary symbol conversion; use error: instead.
2024-07-13 15:11:49 +09:30
Daniel O'Connor
78fee52f17 Ruby 3.2: Upgrade Rubocop and add more rubocop helpers (#3779)
* 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

* Rubocop

* More rubocop

* Regenerate

* Fix config file
2024-07-13 15:09:32 +09:30
Daniel O'Connor
de6241b728 Style/SoleNestedConditional 2024-07-13 05:19:31 +00:00
Daniel O'Connor
5b5adad6ab Merge branch 'dev' into ruby32-rubocop 2024-07-13 14:47:27 +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
269e1d274a Regenerate 2024-07-13 05:03:38 +00:00
Daniel O'Connor
327eaf7a03 More rubocop 2024-07-13 04:57:20 +00:00
Daniel O'Connor
c73d23fa80 Rubocop 2024-07-13 04:55:09 +00:00
Daniel O'Connor
a1e73f4b19 Update rubocop 2024-07-13 04:52:16 +00:00
Daniel O'Connor
212ed17d60 Regenerate 2024-07-13 04:50:26 +00:00
Daniel O'Connor
943929b769 3 space indent 2024-07-13 04:40:43 +00:00
Daniel O'Connor
1f220164bb Pin to 2.4.22 2024-07-13 04:38:00 +00:00
Daniel O'Connor
fc0c428799 Merge branch 'dev' into ruby32 2024-07-13 13:56:44 +09:30
dependabot[bot]
f76258dcab Merge pull request #3776 from Growstuff/dependabot/bundler/rubocop-1.65.0 2024-07-13 04:26:20 +00:00
Daniel O'Connor
653776ae6b Fix spec 2024-07-13 04:14:34 +00:00
Daniel O'Connor
ba7d9e6905 Update spec 2024-07-13 03:55:13 +00:00
Daniel O'Connor
f8aff18492 Fix spec 2024-07-13 03:53:41 +00:00
Daniel O'Connor
8bfa81990c Update .devcontainer/.env 2024-07-13 13:06:02 +09:30
Daniel O'Connor
4ed7ea32b5 Merge branch 'dev' into ruby32 2024-07-13 13:04:28 +09:30
dependabot[bot]
c3b79d1d3f Bump rubocop from 1.64.1 to 1.65.0
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.64.1 to 1.65.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.64.1...v1.65.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-11 07:34:17 +00:00
dependabot[bot]
fa78997d8c Merge pull request #3775 from Growstuff/dependabot/bundler/faraday-2.10.0 2024-07-10 09:31:04 +00:00
dependabot[bot]
b05efe8e8f Bump faraday from 2.9.2 to 2.10.0
Bumps [faraday](https://github.com/lostisland/faraday) from 2.9.2 to 2.10.0.
- [Release notes](https://github.com/lostisland/faraday/releases)
- [Changelog](https://github.com/lostisland/faraday/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lostisland/faraday/compare/v2.9.2...v2.10.0)

---
updated-dependencies:
- dependency-name: faraday
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 07:31:45 +00:00
dependabot[bot]
8906454323 Merge pull request #3774 from Growstuff/dependabot/bundler/rubocop-rspec-3.0.2 2024-07-04 06:05:51 +00:00
dependabot[bot]
dfa81aeaf2 Bump rubocop-rspec from 3.0.1 to 3.0.2
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.0.1...v3.0.2)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-03 07:30:28 +00:00
Daniel O'Connor
436c2305b3 Merge pull request #3773 from Growstuff/CloCkWeRX-patch-1
Update garden.rb
2024-07-02 23:08:46 +09:30
Daniel O'Connor
57f1fd34c9 Update garden.rb 2024-07-02 23:08:29 +09:30
Daniel O'Connor
c1dc3cc4c0 Merge pull request #3772 from Growstuff/CloCkWeRX-patch-1
Update predict_planting.rb
2024-07-02 23:08:04 +09:30
Daniel O'Connor
067fb1671b Update predict_planting.rb 2024-07-02 23:07:48 +09:30
Daniel O'Connor
fa6df64221 Update garden.rb 2024-07-02 22:42:35 +09:30
Daniel O'Connor
dc473108d0 Merge branch 'mainline' into dev 2024-07-02 17:49:53 +09:30
Daniel O'Connor
adef9f9622 Merge pull request #3770 from Growstuff/CloCkWeRX-patch-1
Update garden.rb
2024-07-02 17:48:56 +09:30
Daniel O'Connor
b908777a86 Merge pull request #3768 from Growstuff/dependabot/bundler/rubocop-rails-2.25.1
Bump rubocop-rails from 2.24.1 to 2.25.1
2024-07-02 17:48:39 +09:30
Daniel O'Connor
fda04a6367 Merge pull request #3769 from Growstuff/dependabot/bundler/sidekiq-7.3.0
Bump sidekiq from 7.2.4 to 7.3.0
2024-07-02 17:48:28 +09:30
Daniel O'Connor
3d524bb105 Update garden.rb 2024-07-02 17:37:17 +09:30
dependabot[bot]
92cb0c32ab Bump sidekiq from 7.2.4 to 7.3.0
Bumps [sidekiq](https://github.com/sidekiq/sidekiq) from 7.2.4 to 7.3.0.
- [Changelog](https://github.com/sidekiq/sidekiq/blob/main/Changes.md)
- [Commits](https://github.com/sidekiq/sidekiq/compare/v7.2.4...v7.3.0)

---
updated-dependencies:
- dependency-name: sidekiq
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-02 07:38:55 +00:00
dependabot[bot]
6bde403f17 Bump rubocop-rails from 2.24.1 to 2.25.1
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.24.1 to 2.25.1.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.24.1...v2.25.1)

---
updated-dependencies:
- dependency-name: rubocop-rails
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 07:37:20 +00:00
dependabot[bot]
ff2f2014fc Merge pull request #3765 from Growstuff/dependabot/npm_and_yarn/ws-8.17.1 2024-06-22 07:26:49 +00:00
dependabot[bot]
8e5d8002ff Bump ws from 8.5.0 to 8.17.1
Bumps [ws](https://github.com/websockets/ws) from 8.5.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.5.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-22 07:11:07 +00:00
dependabot[bot]
a8954d2e12 Merge pull request #3767 from Growstuff/dependabot/bundler/selenium-webdriver-4.22.0 2024-06-21 10:03:34 +00:00
dependabot[bot]
892d850f6a Bump selenium-webdriver from 4.20.1 to 4.22.0
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.20.1 to 4.22.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.22.0)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 07:33:12 +00:00
dependabot[bot]
b5b5222960 Merge pull request #3766 from Growstuff/dependabot/bundler/rspec-rails-6.1.3 2024-06-20 10:59:56 +00:00
dependabot[bot]
a6821d689d Bump rspec-rails from 6.1.2 to 6.1.3
Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 6.1.2 to 6.1.3.
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md)
- [Commits](https://github.com/rspec/rspec-rails/compare/v6.1.2...v6.1.3)

---
updated-dependencies:
- dependency-name: rspec-rails
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 07:22:36 +00:00
dependabot[bot]
6ac5dc5ac9 Merge pull request #3763 from Growstuff/dependabot/bundler/timecop-0.9.10 2024-06-19 23:22:23 +00:00
dependabot[bot]
82855883ca Bump timecop from 0.9.9 to 0.9.10
Bumps [timecop](https://github.com/travisjeffery/timecop) from 0.9.9 to 0.9.10.
- [Changelog](https://github.com/travisjeffery/timecop/blob/master/History.md)
- [Commits](https://github.com/travisjeffery/timecop/compare/v0.9.9...v0.9.10)

---
updated-dependencies:
- dependency-name: timecop
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-19 23:06:59 +00:00
dependabot[bot]
c7b0e036c4 Merge pull request #3764 from Growstuff/dependabot/bundler/faraday-2.9.2 2024-06-19 23:05:56 +00:00
dependabot[bot]
ec3a9ab32f Bump faraday from 2.9.1 to 2.9.2
Bumps [faraday](https://github.com/lostisland/faraday) from 2.9.1 to 2.9.2.
- [Release notes](https://github.com/lostisland/faraday/releases)
- [Changelog](https://github.com/lostisland/faraday/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lostisland/faraday/compare/v2.9.1...v2.9.2)

---
updated-dependencies:
- dependency-name: faraday
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-19 08:11:08 +00:00
dependabot[bot]
6f22a7ffb7 Merge pull request #3762 from Growstuff/dependabot/npm_and_yarn/braces-3.0.3 2024-06-14 10:35:10 +00:00
Daniel O'Connor
3246773cd8 Merge branch 'dev' into dependabot/npm_and_yarn/braces-3.0.3 2024-06-14 19:49:36 +09:30
dependabot[bot]
1270dc91f6 Merge pull request #3757 from Growstuff/dependabot/bundler/oj-3.16.4 2024-06-13 12:41:36 +00:00
dependabot[bot]
c9f3105e89 Bump oj from 3.16.3 to 3.16.4
Bumps [oj](https://github.com/ohler55/oj) from 3.16.3 to 3.16.4.
- [Release notes](https://github.com/ohler55/oj/releases)
- [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/ohler55/oj/compare/v3.16.3...v3.16.4)

---
updated-dependencies:
- dependency-name: oj
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-13 12:25:21 +00:00
dependabot[bot]
54f340380d Merge pull request #3760 from Growstuff/dependabot/bundler/rubocop-rspec-3.0.1 2024-06-13 12:24:17 +00:00
dependabot[bot]
661930f99e Bump rubocop-rspec from 2.31.0 to 3.0.1
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 2.31.0 to 3.0.1.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.31.0...v3.0.1)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-13 12:08:49 +00:00
dependabot[bot]
b29f2cabe6 Merge pull request #3759 from Growstuff/dependabot/bundler/will_paginate-4.0.1 2024-06-13 12:07:45 +00:00
dependabot[bot]
88a60ca3cf Bump will_paginate from 4.0.0 to 4.0.1
Bumps [will_paginate](https://github.com/mislav/will_paginate) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/mislav/will_paginate/releases)
- [Commits](https://github.com/mislav/will_paginate/compare/v4.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: will_paginate
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-13 11:52:49 +00:00
dependabot[bot]
4f7098c0f6 Merge pull request #3758 from Growstuff/dependabot/bundler/recaptcha-5.17.0 2024-06-13 11:51:44 +00:00
dependabot[bot]
9de957f39b Bump recaptcha from 5.16.0 to 5.17.0
Bumps [recaptcha](https://github.com/ambethia/recaptcha) from 5.16.0 to 5.17.0.
- [Changelog](https://github.com/ambethia/recaptcha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ambethia/recaptcha/compare/v5.16.0...v5.17.0)

---
updated-dependencies:
- dependency-name: recaptcha
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-13 11:36:42 +00:00
dependabot[bot]
480430af37 Bump braces from 3.0.2 to 3.0.3
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-13 11:36:05 +00:00
dependabot[bot]
1c66b8b554 Merge pull request #3761 from Growstuff/dependabot/bundler/terser-1.2.3 2024-06-13 11:35:36 +00:00
dependabot[bot]
405946370b Bump terser from 1.2.2 to 1.2.3
Bumps [terser](https://github.com/ahorek/terser-ruby) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/ahorek/terser-ruby/releases)
- [Changelog](https://github.com/ahorek/terser-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ahorek/terser-ruby/compare/1.2.2...1.2.3)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-12 07:10:55 +00:00
Daniel O'Connor
f04ad801ba Merge pull request #3726 from domthor/edit-profile-tabs-fix#497
Added javascript to fix edit profile tab issue. Fixes #497.
2024-06-07 22:00:53 +09:30
dependabot[bot]
08efbb5a54 Merge pull request #3756 from Growstuff/dependabot/bundler/rubocop-rspec-2.31.0 2024-06-07 12:30:31 +00:00
dependabot[bot]
619022c61a Bump rubocop-rspec from 2.30.0 to 2.31.0
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 2.30.0 to 2.31.0.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.30.0...v2.31.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-07 07:30:11 +00:00
Daniel O'Connor
2528ed3e8b Merge pull request #3721 from Growstuff/dev
May 2024 Release
2024-06-07 13:40:25 +09:30
Daniel O'Connor
b88290c953 Merge branch 'mainline' into dev 2024-06-07 13:40:03 +09:30
dependabot[bot]
4f12d6af17 Merge pull request #3755 from Growstuff/dependabot/bundler/faraday-2.9.1 2024-06-06 07:43:45 +00:00
dependabot[bot]
b92170ec24 Bump faraday from 2.9.0 to 2.9.1
Bumps [faraday](https://github.com/lostisland/faraday) from 2.9.0 to 2.9.1.
- [Release notes](https://github.com/lostisland/faraday/releases)
- [Changelog](https://github.com/lostisland/faraday/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lostisland/faraday/compare/v2.9.0...v2.9.1)

---
updated-dependencies:
- dependency-name: faraday
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-06 07:26:59 +00:00
dependabot[bot]
e854442563 Merge pull request #3752 from Growstuff/dependabot/bundler/rubocop-rspec-2.30.0 2024-06-05 04:29:58 +00:00
Daniel O'Connor
411152bc31 Merge branch 'dev' into edit-profile-tabs-fix#497 2024-06-05 13:46:58 +09:30
dependabot[bot]
e73bb02559 Bump rubocop-rspec from 2.29.2 to 2.30.0
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 2.29.2 to 2.30.0.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.29.2...v2.30.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-05 04:13:53 +00:00
dependabot[bot]
7eb1265251 Merge pull request #3754 from Growstuff/dependabot/bundler/actionpack-7.1.3.4 2024-06-05 04:12:49 +00:00
dependabot[bot]
9f003ac225 Bump actionpack from 7.1.3.3 to 7.1.3.4
Bumps [actionpack](https://github.com/rails/rails) from 7.1.3.3 to 7.1.3.4.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.1.3.4/actionpack/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v7.1.3.3...v7.1.3.4)

---
updated-dependencies:
- dependency-name: actionpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-04 22:45:46 +00:00
dependabot[bot]
a751633132 Merge pull request #3751 from Growstuff/dependabot/bundler/timecop-0.9.9 2024-06-04 03:19:32 +00:00
dependabot[bot]
b6d77c3737 Bump timecop from 0.9.8 to 0.9.9
Bumps [timecop](https://github.com/travisjeffery/timecop) from 0.9.8 to 0.9.9.
- [Changelog](https://github.com/travisjeffery/timecop/blob/master/History.md)
- [Commits](https://github.com/travisjeffery/timecop/compare/v0.9.8...v0.9.9)

---
updated-dependencies:
- dependency-name: timecop
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 07:59:17 +00:00
dependabot[bot]
1b07c364f1 Merge pull request #3749 from Growstuff/dependabot/bundler/platform-api-3.7.0 2024-06-02 11:26:23 +00:00
dependabot[bot]
abd29abd74 Bump platform-api from 3.6.0 to 3.7.0
Bumps [platform-api](https://github.com/heroku/platform-api) from 3.6.0 to 3.7.0.
- [Changelog](https://github.com/heroku/platform-api/blob/master/CHANGELOG.md)
- [Commits](https://github.com/heroku/platform-api/compare/v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: platform-api
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-02 11:10:58 +00:00
dependabot[bot]
dbdebf5acb Merge pull request #3750 from Growstuff/dependabot/bundler/rubocop-1.64.1 2024-06-02 11:07:18 +00:00
dependabot[bot]
e403d6c0c5 Bump rubocop from 1.63.5 to 1.64.1
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.5 to 1.64.1.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.5...v1.64.1)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-31 07:30:10 +00:00
dependabot[bot]
5577b3a55d Merge pull request #3748 from Growstuff/dependabot/bundler/faker-3.4.1 2024-05-30 02:44:20 +00:00
dependabot[bot]
66f78347e6 Bump faker from 3.3.1 to 3.4.1
Bumps [faker](https://github.com/faker-ruby/faker) from 3.3.1 to 3.4.1.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/faker-ruby/faker/compare/v3.3.1...v3.4.1)

---
updated-dependencies:
- dependency-name: faker
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-29 07:48:16 +00:00
dependabot[bot]
198a4b1d27 Merge pull request #3747 from Growstuff/dependabot/bundler/cancancan-3.6.1 2024-05-28 21:55:02 +00:00
dependabot[bot]
d7e5da9577 Bump cancancan from 3.6.0 to 3.6.1
Bumps [cancancan](https://github.com/CanCanCommunity/cancancan) from 3.6.0 to 3.6.1.
- [Release notes](https://github.com/CanCanCommunity/cancancan/releases)
- [Changelog](https://github.com/CanCanCommunity/cancancan/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/CanCanCommunity/cancancan/commits)

---
updated-dependencies:
- dependency-name: cancancan
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-28 07:34:09 +00:00
dependabot[bot]
e044a883d2 Merge pull request #3746 from Growstuff/dependabot/bundler/cancancan-3.6.0 2024-05-25 00:08:38 +00:00
dependabot[bot]
d5028d5ac3 Bump cancancan from 3.5.0 to 3.6.0
Bumps [cancancan](https://github.com/CanCanCommunity/cancancan) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/CanCanCommunity/cancancan/releases)
- [Changelog](https://github.com/CanCanCommunity/cancancan/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/CanCanCommunity/cancancan/compare/3.5.0...3.6.0)

---
updated-dependencies:
- dependency-name: cancancan
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-24 07:51:36 +00:00
dependabot[bot]
4e8b877176 Merge pull request #3744 from Growstuff/dependabot/bundler/chartkick-5.0.7 2024-05-22 13:16:08 +00:00
dependabot[bot]
b06607c1cf ---
updated-dependencies:
- dependency-name: chartkick
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-22 07:41:18 +00:00
dependabot[bot]
929987eb06 Merge pull request #3739 from Growstuff/dependabot/bundler/axe-core-capybara-4.9.1 2024-05-19 09:31:19 +00:00
dependabot[bot]
008854bf56 Bump axe-core-capybara from 4.9.0 to 4.9.1
Bumps [axe-core-capybara](https://github.com/dequelabs/axe-core-gems) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/dequelabs/axe-core-gems/releases)
- [Changelog](https://github.com/dequelabs/axe-core-gems/blob/v4.9.1/CHANGELOG.md)
- [Commits](https://github.com/dequelabs/axe-core-gems/compare/v4.9.0...v4.9.1)

---
updated-dependencies:
- dependency-name: axe-core-capybara
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-19 09:15:36 +00:00
dependabot[bot]
fb311300e7 Merge pull request #3738 from Growstuff/dependabot/bundler/axe-core-rspec-4.9.1 2024-05-19 09:14:27 +00:00
dependabot[bot]
4233dc7c7c Bump axe-core-rspec from 4.9.0 to 4.9.1
Bumps [axe-core-rspec](https://github.com/dequelabs/axe-core-gems) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/dequelabs/axe-core-gems/releases)
- [Changelog](https://github.com/dequelabs/axe-core-gems/blob/v4.9.1/CHANGELOG.md)
- [Commits](https://github.com/dequelabs/axe-core-gems/compare/v4.9.0...v4.9.1)

---
updated-dependencies:
- dependency-name: axe-core-rspec
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-19 08:58:16 +00:00
dependabot[bot]
70d678ebbf Merge pull request #3743 from Growstuff/dependabot/bundler/rails-7.1.3.3 2024-05-19 06:40:09 +00:00
dependabot[bot]
381ccfb830 Bump rails from 7.1.3.2 to 7.1.3.3
Bumps [rails](https://github.com/rails/rails) from 7.1.3.2 to 7.1.3.3.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v7.1.3.2...v7.1.3.3)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-17 07:44:44 +00:00
dependabot[bot]
96018f8671 Merge pull request #3737 from Growstuff/dependabot/bundler/nokogiri-1.16.5 2024-05-15 12:27:34 +00:00
dependabot[bot]
c257bcb564 Bump nokogiri from 1.16.4 to 1.16.5
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.16.4 to 1.16.5.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.16.4...v1.16.5)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 23:47:40 +00:00
dependabot[bot]
98584d2fa9 Merge pull request #3734 from Growstuff/dependabot/bundler/i18n-tasks-1.0.14 2024-05-13 13:52:44 +00:00
dependabot[bot]
b197077c40 Bump i18n-tasks from 1.0.13 to 1.0.14
Bumps [i18n-tasks](https://github.com/glebm/i18n-tasks) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/glebm/i18n-tasks/releases)
- [Changelog](https://github.com/glebm/i18n-tasks/blob/main/CHANGES.md)
- [Commits](https://github.com/glebm/i18n-tasks/compare/v1.0.13...v1.0.14)

---
updated-dependencies:
- dependency-name: i18n-tasks
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 13:36:10 +00:00
dependabot[bot]
00a36fd747 Merge pull request #3735 from Growstuff/dependabot/bundler/rubocop-1.63.5 2024-05-13 13:34:48 +00:00
dependabot[bot]
af14088c13 Bump rubocop from 1.63.4 to 1.63.5
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.4 to 1.63.5.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.4...v1.63.5)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-10 07:17:06 +00:00
dependabot[bot]
a0c12b9e02 Merge pull request #3733 from Growstuff/dependabot/bundler/dotenv-rails-3.1.2 2024-05-08 12:05:39 +00:00
dependabot[bot]
2a900d6263 Bump dotenv-rails from 3.1.1 to 3.1.2
Bumps [dotenv-rails](https://github.com/bkeepers/dotenv) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/bkeepers/dotenv/releases)
- [Changelog](https://github.com/bkeepers/dotenv/blob/main/Changelog.md)
- [Commits](https://github.com/bkeepers/dotenv/compare/v3.1.1...v3.1.2)

---
updated-dependencies:
- dependency-name: dotenv-rails
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 08:15:17 +00:00
dependabot[bot]
a41cb404f2 Merge pull request #3730 from Growstuff/dependabot/bundler/dotenv-rails-3.1.1 2024-05-03 09:35:02 +00:00
dependabot[bot]
2936bc06b9 Bump dotenv-rails from 3.1.0 to 3.1.1
Bumps [dotenv-rails](https://github.com/bkeepers/dotenv) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/bkeepers/dotenv/releases)
- [Changelog](https://github.com/bkeepers/dotenv/blob/main/Changelog.md)
- [Commits](https://github.com/bkeepers/dotenv/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: dotenv-rails
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-03 09:20:04 +00:00
dependabot[bot]
ffb573b1dc Merge pull request #3731 from Growstuff/dependabot/bundler/rubocop-rspec-2.29.2 2024-05-03 09:19:00 +00:00
dependabot[bot]
7cce6cc1c4 Bump rubocop-rspec from 2.29.1 to 2.29.2
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.29.1...v2.29.2)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-03 09:03:38 +00:00
dependabot[bot]
93e0123bea Merge pull request #3732 from Growstuff/dependabot/bundler/geocoder-1.8.3 2024-05-03 09:01:57 +00:00
dependabot[bot]
31cc28a34c Bump geocoder from 1.8.2 to 1.8.3
Bumps [geocoder](https://github.com/alexreisner/geocoder) from 1.8.2 to 1.8.3.
- [Changelog](https://github.com/alexreisner/geocoder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alexreisner/geocoder/compare/v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: geocoder
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-03 07:57:44 +00:00
Daniel O'Connor
298f02a3a4 Merge pull request #3728 from Growstuff/dependabot/bundler/haml_lint-0.58.0
Bump haml_lint from 0.57.0 to 0.58.0
2024-05-02 14:26:20 +09:30
dependabot[bot]
985d15b117 Bump haml_lint from 0.57.0 to 0.58.0
Bumps [haml_lint](https://github.com/sds/haml-lint) from 0.57.0 to 0.58.0.
- [Release notes](https://github.com/sds/haml-lint/releases)
- [Changelog](https://github.com/sds/haml-lint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sds/haml-lint/compare/v0.57.0...v0.58.0)

---
updated-dependencies:
- dependency-name: haml_lint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:52:47 +00:00
dependabot[bot]
c7a90bdb7e Merge pull request #3725 from Growstuff/dependabot/bundler/selenium-webdriver-4.20.1 2024-04-30 10:51:47 +00:00
dependabot[bot]
1723f3cad9 Bump selenium-webdriver from 4.20.0 to 4.20.1
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.20.0 to 4.20.1.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 10:35:29 +00:00
dependabot[bot]
3c6ee787fd Merge pull request #3729 from Growstuff/dependabot/bundler/rubocop-1.63.4 2024-04-30 10:34:00 +00:00
dependabot[bot]
ed645f2566 Bump rubocop from 1.63.3 to 1.63.4
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.3 to 1.63.4.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.3...v1.63.4)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 08:01:11 +00:00
dependabot[bot]
7faae41c14 Merge pull request #3727 from Growstuff/dependabot/bundler/sidekiq-7.2.4 2024-04-28 11:54:12 +00:00
dependabot[bot]
f9c1741290 Bump sidekiq from 7.2.2 to 7.2.4
Bumps [sidekiq](https://github.com/sidekiq/sidekiq) from 7.2.2 to 7.2.4.
- [Changelog](https://github.com/sidekiq/sidekiq/blob/main/Changes.md)
- [Commits](https://github.com/sidekiq/sidekiq/compare/v7.2.2...v7.2.4)

---
updated-dependencies:
- dependency-name: sidekiq
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-26 22:22:07 +00:00
domthor
88ad6d8de9 fix space in "function ()" 2024-04-26 18:08:03 -04:00
domthor
c5df760ce4 change double quotes to single quotes 2024-04-26 18:04:13 -04:00
domthor
d9500eff16 fix let in js 2024-04-26 17:59:34 -04:00
domthor
31fafe6a74 fix unexpected function() token 2024-04-26 17:57:37 -04:00
domthor
f87b83bdd1 fix const error 2024-04-26 17:56:06 -04:00
domthor
88e458077b fix unexpected token linting error 2024-04-26 17:54:12 -04:00
domthor
a7cc576ef2 Merge branch 'edit-profile-tabs-fix#497' of github.com:domthor/growstuff into edit-profile-tabs-fix#497 2024-04-26 17:50:30 -04:00
domthor
a713d2936c fix linting errors 2024-04-26 17:48:09 -04:00
Dominick Thornton
751c2e1a89 Merge branch 'dev' into edit-profile-tabs-fix#497 2024-04-26 17:43:32 -04:00
domthor
9fd7e145b5 Added javascript to fix edit profile tab issue. Fixes #497 2024-04-26 21:35:34 +00:00
dependabot[bot]
728aa51c2f Merge pull request #3723 from Growstuff/dependabot/bundler/selenium-webdriver-4.20.0 2024-04-25 08:50:43 +00:00
dependabot[bot]
d6799da48d Bump selenium-webdriver from 4.19.0 to 4.20.0
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.19.0 to 4.20.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.19.0...selenium-4.20.0)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-25 07:33:08 +00:00
Daniel O'Connor
df01e0d1aa Update README.md 2024-04-25 15:35:32 +09:30
dependabot[bot]
666e2cf13f Merge pull request #3722 from Growstuff/dependabot/bundler/rubocop-1.63.3 2024-04-24 08:16:46 +00:00
dependabot[bot]
00f7931ee6 Bump rubocop from 1.63.2 to 1.63.3
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.2 to 1.63.3.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.2...v1.63.3)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-23 07:17:09 +00:00
dependabot[bot]
7aed900e79 Merge pull request #3720 from Growstuff/dependabot/bundler/rubocop-1.63.2 2024-04-18 09:47:22 +00:00
dependabot[bot]
02137acda2 Bump rubocop from 1.63.1 to 1.63.2
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.1 to 1.63.2.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.1...v1.63.2)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-17 08:01:47 +00:00
Daniel O'Connor
7325f22c02 Merge pull request #3709 from bennett-zink/add-noseed-ux
added ux when none logged #3618
2024-04-16 04:48:37 +09:30
dependabot[bot]
f45a37fece Merge pull request #3717 from Growstuff/dependabot/bundler/devise-4.9.4 2024-04-11 09:35:48 +00:00
dependabot[bot]
f276b19613 Bump devise from 4.9.3 to 4.9.4
Bumps [devise](https://github.com/heartcombo/devise) from 4.9.3 to 4.9.4.
- [Release notes](https://github.com/heartcombo/devise/releases)
- [Changelog](https://github.com/heartcombo/devise/blob/main/CHANGELOG.md)
- [Commits](https://github.com/heartcombo/devise/compare/v4.9.3...v4.9.4)

---
updated-dependencies:
- dependency-name: devise
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 08:35:26 +00:00
Daniel O'Connor
2ead00eb0c Merge pull request #3718 from Growstuff/dependabot/bundler/rubocop-1.63.1
Bump rubocop from 1.63.0 to 1.63.1
2024-04-11 18:03:45 +09:30
dependabot[bot]
bdd403daff Bump rubocop from 1.63.0 to 1.63.1
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.0 to 1.63.1.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.0...v1.63.1)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 07:45:49 +00:00
Daniel O'Connor
3027cb155f Merge pull request #3715 from Growstuff/dev
April 2024 Release
2024-04-11 08:26:22 +09:30
Daniel O'Connor
e435d21bd9 Merge branch 'dev' into add-noseed-ux 2024-04-09 22:17:31 +09:30
Daniel O'Connor
3347519593 Merge pull request #3714 from Growstuff/trade-seeds
Fix button display on small screens
2024-04-09 22:17:19 +09:30
Daniel O'Connor
559e272347 Merge branch 'dev' into add-noseed-ux 2024-04-09 21:51:14 +09:30
Daniel O'Connor
e334fc449e Merge branch 'dev' into trade-seeds 2024-04-09 21:51:04 +09:30
Daniel O'Connor
f9ce3044ec Merge pull request #3713 from Growstuff/footer
Improve header, footer
2024-04-09 21:48:54 +09:30
Daniel O'Connor
9ec2d9d639 Merge branch 'dev' into trade-seeds 2024-04-09 21:28:14 +09:30
Daniel O'Connor
00b20e6643 Merge branch 'dev' into footer 2024-04-09 21:28:11 +09:30
Daniel O'Connor
6970f4c915 Merge branch 'dev' into add-noseed-ux 2024-04-09 21:27:51 +09:30
Daniel O'Connor
ed21fbb1ee Merge pull request #3716 from Growstuff/dependabot/bundler/rubocop-1.63.0
Bump rubocop from 1.62.1 to 1.63.0
2024-04-08 20:55:08 +09:30
dependabot[bot]
64d046c2fe Bump rubocop from 1.62.1 to 1.63.0
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.62.1 to 1.63.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.62.1...v1.63.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08 07:55:03 +00:00
Bennett Zink
9a0a5935d2 change seed wording 2024-04-07 11:06:43 -04:00
Bennett Zink
41446f281e change plantings wording 2024-04-07 11:06:09 -04:00
Bennett Zink
d149e25aec change harvest wording
Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com>
2024-04-07 11:05:35 -04:00
Bennett Zink
637aba85bf Merge branch 'dev' into add-noseed-ux 2024-04-07 11:04:21 -04:00
Daniel O'Connor
b213647a43 Merge branch 'dev' into trade-seeds 2024-04-07 22:17:37 +09:30
Daniel O'Connor
ded6aca4b1 Merge branch 'dev' into footer 2024-04-07 22:17:30 +09:30
Daniel O'Connor
26189855cc Reduce visual impact of hover, and make snappier (#3712)
* Reduce visual impact of hover, and make snappier

* Better seed

* Improve seeding

* Fix codespaces login
2024-04-07 22:17:16 +09:30
Daniel O'Connor
7f16f51a47 Fix https://github.com/Growstuff/growstuff/issues/3632 2024-04-07 12:45:50 +00:00
Daniel O'Connor
f23289ec6e Improve header, footer 2024-04-07 12:31:07 +00:00
Daniel O'Connor
725c146e2d Improve profile page on mobile (#3711)
* Avoid showing when there are 0 things

* Styling

* Styling

* Collapse stats by default on small screens

* Add ARIA skip links

* Refactoring out of partial, and use CSS to set order on mobile

* Remove partial

* Update expectations

* Fix visual appearance on Ban button on your own profile for admins

* Typo

* Stale expectation
2024-04-07 21:43:52 +09:30
Daniel O'Connor
e3bb749e6d Fix activities (#3710)
* Clean up activities display

* Clean up activities display

* Fix display
2024-04-07 20:10:29 +09:30
Daniel O'Connor
dea254c658 Merge branch 'dev' into add-noseed-ux 2024-04-07 17:54:56 +09:30
Daniel O'Connor
659c38eea3 Merge pull request #3706 from bennett-zink/fix-bio-link
fixed 404 bug on "add a bio" #3667
2024-04-07 17:49:49 +09:30
bennett-zink
c408687e36 added ux when none logged #3618 2024-04-06 20:08:31 +00:00
Bennett Zink
c37c1c9f38 Merge branch 'dev' into fix-bio-link 2024-04-06 11:20:44 -04:00
dependabot[bot]
5f44dd7ab0 Merge pull request #3708 from Growstuff/dependabot/bundler/rubocop-rspec-2.29.1 2024-04-06 01:08:00 +00:00
dependabot[bot]
09b3654395 Bump rubocop-rspec from 2.28.0 to 2.29.1
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 2.28.0 to 2.29.1.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.28.0...v2.29.1)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-06 00:49:16 +00:00
dependabot[bot]
10335d51db Merge pull request #3704 from Growstuff/dependabot/bundler/scout_apm-5.3.8 2024-04-06 00:47:43 +00:00
dependabot[bot]
c2e46d93fc Bump scout_apm from 5.3.7 to 5.3.8
Bumps [scout_apm](https://github.com/scoutapp/scout_apm_ruby) from 5.3.7 to 5.3.8.
- [Changelog](https://github.com/scoutapp/scout_apm_ruby/blob/master/CHANGELOG.markdown)
- [Commits](https://github.com/scoutapp/scout_apm_ruby/compare/v5.3.7...v5.3.8)

---
updated-dependencies:
- dependency-name: scout_apm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-06 00:29:22 +00:00
dependabot[bot]
5c67006cb8 Merge pull request #3707 from Growstuff/dependabot/bundler/rake-13.2.1 2024-04-06 00:28:23 +00:00
dependabot[bot]
47c6937db2 Bump rake from 13.2.0 to 13.2.1
Bumps [rake](https://github.com/ruby/rake) from 13.2.0 to 13.2.1.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/v13.2.0...v13.2.1)

---
updated-dependencies:
- dependency-name: rake
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-05 07:04:36 +00:00
bennett-zink
b5bab8bd0b fixed Bug: 404 on "add a bio" #3667 2024-04-04 23:41:41 +00:00
dependabot[bot]
1699d7f57a Merge pull request #3701 from Growstuff/dependabot/bundler/rake-13.2.0 2024-04-03 12:23:19 +00:00
dependabot[bot]
bbc9f3b1cc Bump rake from 13.1.0 to 13.2.0
Bumps [rake](https://github.com/ruby/rake) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/v13.1.0...v13.2.0)

---
updated-dependencies:
- dependency-name: rake
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03 12:05:02 +00:00
dependabot[bot]
6d294823d1 Merge pull request #3699 from Growstuff/dependabot/bundler/letter_opener-1.10.0 2024-04-03 12:04:04 +00:00
dependabot[bot]
2680d028ca Bump letter_opener from 1.9.0 to 1.10.0
Bumps [letter_opener](https://github.com/ryanb/letter_opener) from 1.9.0 to 1.10.0.
- [Changelog](https://github.com/ryanb/letter_opener/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ryanb/letter_opener/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: letter_opener
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03 11:46:29 +00:00
dependabot[bot]
6d057204e9 Merge pull request #3700 from Growstuff/dependabot/bundler/rubocop-rspec-2.28.0 2024-04-03 11:44:55 +00:00
dependabot[bot]
c568345307 Bump rubocop-rspec from 2.27.1 to 2.28.0
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 2.27.1 to 2.28.0.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.27.1...v2.28.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03 09:47:23 +00:00
dependabot[bot]
c8eedb49fa Merge pull request #3703 from Growstuff/dependabot/bundler/terser-1.2.2 2024-04-03 09:46:22 +00:00
dependabot[bot]
41d3de7374 Bump terser from 1.2.1 to 1.2.2
Bumps [terser](https://github.com/ahorek/terser-ruby) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/ahorek/terser-ruby/releases)
- [Changelog](https://github.com/ahorek/terser-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ahorek/terser-ruby/compare/1.2.1...1.2.2)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03 09:26:14 +00:00
dependabot[bot]
3fc72bd9db Merge pull request #3702 from Growstuff/dependabot/bundler/faker-3.3.1 2024-04-03 09:24:52 +00:00
dependabot[bot]
65d0d0893b Bump faker from 3.3.0 to 3.3.1
Bumps [faker](https://github.com/faker-ruby/faker) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/faker-ruby/faker/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: faker
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03 07:24:14 +00:00
Daniel O'Connor
2a421cf882 Merge pull request #3683 from Growstuff/dev
April 2024 release
2024-04-01 14:31:58 +10:30
Daniel O'Connor
44f864eace Merge branch 'dev' into ruby32 2024-01-27 00:40:07 +10:30
Daniel O'Connor
a762a87d58 Update .env 2024-01-22 00:06:05 +10:30
Daniel O'Connor
4ea77fb52f Update app/views/plantings/index.rss.haml 2024-01-22 00:03:34 +10:30
Daniel O'Connor
56348b1a8e Merge branch 'dev' into ruby32 2024-01-21 19:06:27 +10:30
Daniel O'Connor
82971d773c Update app/views/members/show.html.haml 2023-08-20 16:58:19 +09:30
Daniel O'Connor
3af5b4a53a Merge branch 'dev' into ruby32 2023-08-20 16:57:15 +09:30
Daniel O'Connor
75571a485d Swap to will paginate successor for bootstrap 2023-08-20 02:35:02 +00:00
Daniel O'Connor
8a9137e62e Fix deprecation warning by explicitly calling to_fs 2023-08-20 02:30:00 +00:00
Daniel O'Connor
ec3c010410 Fix deprecation warning by explicitly calling to_fs 2023-08-20 02:25:09 +00:00
Daniel O'Connor
2bfd077190 Fix deprecation warning by explicitly calling to_fs 2023-08-20 02:23:01 +00:00
Daniel O'Connor
b7a7b03029 Merge branch 'dev' into ruby32 2023-08-20 11:30:13 +09:30
Daniel O'Connor
7a470f9fac Appease codeclimate for the nth time 2023-08-11 07:07:50 +00:00
Daniel O'Connor
1dc98da520 Adjust ownership 2023-08-11 07:05:02 +00:00
Daniel O'Connor
1540a3c1e1 Merge branch 'remove-js-routes' into ruby32 2023-08-11 06:54:58 +00:00
Daniel O'Connor
fb322a6a80 Remove 2023-08-11 06:54:42 +00:00
Daniel O'Connor
b15f39dd09 Merge branch 'remove-js-routes' into ruby32 2023-08-11 06:53:44 +00:00
Daniel O'Connor
54211a8cef Remove js-routes 2023-08-11 06:51:39 +00:00
Daniel O'Connor
e55b85c559 Upgrade to js-routes 2. Put all js routes into a global namespace. 2023-08-11 06:36:48 +00:00
Daniel O'Connor
121548df57 Fix creation 2023-08-11 05:56:30 +00:00
Daniel O'Connor
1918884540 Ruby 3.2/Bundler 2.4 2023-08-11 05:45:54 +00:00
48 changed files with 772 additions and 462 deletions

View File

@@ -1,2 +1,2 @@
# Ruby version
VARIANT=3.1.4
VARIANT=3.2.4

View File

@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/ruby:0-3.1-bullseye
FROM mcr.microsoft.com/devcontainers/ruby:0-3.2-bullseye
# Install Rails
RUN gem install rails:7.0.8
@@ -24,3 +24,9 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
# We run as the vscode user.
# Make sure this is writable as https://github.com/rubygems/rubygems/issues/6272 was removed
RUN su root -c "mkdir -p /usr/local/rvm/gems/default/cache/bundler/"
RUN su root -c "mkdir -p /usr/local/rvm/gems/default/bundler/gems/"
RUN su root -c "chmod -R 777 /usr/local/rvm/gems/"

View File

@@ -1,7 +1,11 @@
inherit_from: .rubocop_todo.yml
require:
- rubocop-factory_bot
- rubocop-capybara
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-rake
AllCops:
NewCops: enable
Exclude:

View File

@@ -1,15 +1,44 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-09-16 07:51:19 UTC using RuboCop version 1.56.3.
# on 2024-07-13 05:22:30 UTC using RuboCop version 1.65.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 15
# Offense count: 231
# Configuration parameters: EnforcedStyle.
# SupportedStyles: link_or_button, strict
Capybara/ClickLinkOrButtonStyle:
Enabled: false
# Offense count: 84
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_no, not_to
Capybara/NegationMatcher:
Enabled: false
# Offense count: 39
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: DefaultSelector.
Capybara/RSpec/HaveSelector:
Exclude:
- 'spec/features/conversations/index_spec.rb'
- 'spec/features/footer_spec.rb'
- 'spec/features/gardens/adding_gardens_spec.rb'
- 'spec/features/harvests/harvesting_a_crop_spec.rb'
- 'spec/features/members/list_spec.rb'
- 'spec/features/plantings/planting_a_crop_spec.rb'
- 'spec/features/seeds/adding_seeds_spec.rb'
- 'spec/features/shared_examples/crop_suggest.rb'
- 'spec/helpers/application_helper_spec.rb'
- 'spec/support/feature_helpers.rb'
- 'spec/views/posts/show.html.haml_spec.rb'
# Offense count: 14
Capybara/SpecificMatcher:
Exclude:
- 'spec/features/crops/browse_crops_spec.rb'
- 'spec/features/footer_spec.rb'
- 'spec/features/gardens/adding_gardens_spec.rb'
- 'spec/features/harvests/harvesting_a_crop_spec.rb'
@@ -23,8 +52,7 @@ Capybara/VisibilityMatcher:
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include, EnforcedStyle, NonImplicitAssociationMethodNames.
# Include: spec/factories.rb, spec/factories/**/*.rb, features/support/factories/**/*.rb
# Configuration parameters: EnforcedStyle, NonImplicitAssociationMethodNames.
# SupportedStyles: explicit, implicit
FactoryBot/AssociationStyle:
Exclude:
@@ -33,26 +61,59 @@ FactoryBot/AssociationStyle:
- 'spec/factories/like.rb'
- 'spec/factories/scientific_name.rb'
# Offense count: 8
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include, EnforcedStyle, ExplicitOnly.
# Include: **/*_spec.rb, **/spec/**/*, spec/factories.rb, spec/factories/**/*.rb, features/support/factories/**/*.rb
# Configuration parameters: AutoCorrect, Include, EnforcedStyle, ExplicitOnly.
# Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
# SupportedStyles: create_list, n_times
FactoryBot/CreateList:
Exclude:
- 'spec/factories/member.rb'
- 'spec/helpers/gardens_helper_spec.rb'
- 'spec/views/comments/index.rss.haml_spec.rb'
- 'spec/views/home/index_spec.rb'
- 'spec/views/photos/index.html.haml_spec.rb'
- 'spec/views/places/show.html.haml_spec.rb'
- 'spec/views/posts/index.html.haml_spec.rb'
# Offense count: 1135
# Offense count: 4
# Configuration parameters: Include, MaxAmount.
# Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
FactoryBot/ExcessiveCreateList:
Exclude:
- 'spec/controllers/posts_controller_spec.rb'
- 'spec/features/crops/show_spec.rb'
- 'spec/features/percy/percy_spec.rb'
# Offense count: 1127
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
FactoryBot/SyntaxMethods:
Enabled: false
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith.
# SupportedStylesAlignWith: either, start_of_block, start_of_line
Layout/BlockAlignment:
Exclude:
- 'spec/factories/activity.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment.
Layout/CommentIndentation:
Exclude:
- 'config/environments/production.rb'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterMagicComment:
Exclude:
- 'config/initializers/application_controller_renderer.rb'
- 'config/initializers/backtrace_silencers.rb'
- 'config/initializers/content_security_policy.rb'
- 'config/initializers/mime_types.rb'
- 'config/initializers/new_framework_defaults_5_2.rb'
- 'db/migrate/20240218053122_add_slug_to_activity.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
@@ -61,6 +122,32 @@ Layout/EmptyLineBetweenDefs:
- 'db/migrate/20171129041341_create_photographings.rb'
- 'db/migrate/20190130090437_add_crop_to_photographings.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLines:
Exclude:
- 'spec/models/ability_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Layout/EmptyLinesAroundBlockBody:
Exclude:
- 'lib/tasks/gardens.rake'
- 'spec/rails_helper.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Exclude:
- 'app/models/concerns/search_activities.rb'
- 'app/models/concerns/search_plantings.rb'
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
@@ -88,12 +175,30 @@ Layout/LineEndStringConcatenationIndentation:
- 'spec/features/rss/posts_spec.rb'
- 'spec/features/rss/seeds_spec.rb'
# Offense count: 1
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 304
Exclude:
- 'app/helpers/crops_helper.rb'
- 'db/seeds.rb'
- 'spec/requests/plantings_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingEmptyLines:
Exclude:
- 'spec/features/admin/newsletter_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowInHeredoc.
Layout/TrailingWhitespace:
Exclude:
- 'spec/factories/activity.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
@@ -103,11 +208,12 @@ Lint/AmbiguousOperatorPrecedence:
- 'spec/helpers/gardens_helper_spec.rb'
- 'spec/helpers/seeds_helper_spec.rb'
# Offense count: 2
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: RequireParenthesesForMethodChains.
Lint/AmbiguousRange:
Exclude:
- 'app/models/concerns/search_activities.rb'
- 'app/models/concerns/search_harvests.rb'
- 'app/models/concerns/search_plantings.rb'
@@ -130,6 +236,12 @@ Lint/EmptyBlock:
- 'spec/features/crops/crop_detail_page_spec.rb'
- 'spec/requests/authentications_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopDisableDirective:
Exclude:
- 'db/migrate/20230313015323_create_active_storage_tables.active_storage.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/RedundantDirGlobSort:
@@ -142,48 +254,46 @@ Lint/SuppressedException:
Exclude:
- 'lib/tasks/testing.rake'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, consistent
Lint/SymbolConversion:
Exclude:
- 'app/controllers/likes_controller.rb'
# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessAssignment:
Exclude:
- 'config.rb'
- 'config/compass.rb'
# Offense count: 45
# Offense count: 52
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 151
# Offense count: 10
# Offense count: 14
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 61
Max: 115
# Offense count: 6
# Offense count: 7
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 171
Max: 183
# Offense count: 4
# Offense count: 6
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 32
# Offense count: 61
# Offense count: 71
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 59
Max: 127
# Offense count: 3
# Offense count: 2
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 125
# Offense count: 5
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 32
@@ -202,7 +312,7 @@ RSpec/ContextWording:
# Offense count: 36
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle.
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
@@ -212,6 +322,7 @@ RSpec/DescribedClass:
# Offense count: 13
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
RSpec/EmptyExampleGroup:
Exclude:
- 'spec/controllers/authentications_controller_spec.rb'
@@ -227,24 +338,26 @@ RSpec/EmptyExampleGroup:
- 'spec/views/photos/edit.html.haml_spec.rb'
- 'spec/views/posts/_single.html.haml_spec.rb'
# Offense count: 134
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowConsecutiveOneLiners.
RSpec/EmptyLineAfterExample:
Exclude:
- 'spec/models/ability_spec.rb'
# Offense count: 140
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 25
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/ExcessiveDocstringSpacing:
Exclude:
- 'spec/controllers/crops_controller_spec.rb'
- 'spec/features/crops/crop_photos_spec.rb'
# Offense count: 30
# Offense count: 32
RSpec/ExpectInHook:
Exclude:
- 'spec/controllers/garden_types_controller_spec.rb'
- 'spec/controllers/gardens_controller_spec.rb'
- 'spec/features/admin/forums_spec.rb'
- 'spec/features/admin/plant_parts_spec.rb'
- 'spec/features/admin/roles_spec.rb'
- 'spec/features/crops/crop_photos_spec.rb'
- 'spec/features/members/list_spec.rb'
- 'spec/features/plantings/planting_a_crop_spec.rb'
@@ -260,11 +373,12 @@ RSpec/HookArgument:
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect.
RSpec/HooksBeforeExamples:
Exclude:
- 'spec/features/crops/creating_a_crop_spec.rb'
# Offense count: 35
# Offense count: 37
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
Exclude:
@@ -272,6 +386,7 @@ RSpec/IndexedLet:
- 'spec/controllers/plantings_controller_spec.rb'
- 'spec/features/crops/crop_photos_spec.rb'
- 'spec/features/members/list_spec.rb'
- 'spec/features/members/profile_spec.rb'
- 'spec/features/percy/percy_spec.rb'
- 'spec/features/planting_reminder_spec.rb'
- 'spec/features/timeline/index_spec.rb'
@@ -279,7 +394,7 @@ RSpec/IndexedLet:
- 'spec/models/member_spec.rb'
- 'spec/views/forums/index.html.haml_spec.rb'
# Offense count: 710
# Offense count: 720
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Enabled: false
@@ -288,6 +403,12 @@ RSpec/InstanceVariable:
RSpec/LetSetup:
Enabled: false
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
RSpec/MatchArray:
Exclude:
- 'spec/models/post_spec.rb'
# Offense count: 2
RSpec/MessageChain:
Exclude:
@@ -304,16 +425,16 @@ RSpec/MultipleDescribes:
Exclude:
- 'spec/features/crops/crop_wranglers_spec.rb'
# Offense count: 147
# Offense count: 152
RSpec/MultipleExpectations:
Max: 19
# Offense count: 137
# Offense count: 138
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 14
# Offense count: 132
# Offense count: 133
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
@@ -324,7 +445,7 @@ RSpec/NamedSubject:
RSpec/NestedGroups:
Max: 6
# Offense count: 407
# Offense count: 403
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
@@ -336,21 +457,6 @@ RSpec/PendingWithoutReason:
- 'spec/features/seeds/misc_seeds_spec.rb'
- 'spec/features/unsubscribing_spec.rb'
# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/Rails/HaveHttpStatus:
Exclude:
- 'spec/controllers/api/v1/plantings_controller_spec.rb'
- 'spec/controllers/harvests_controller_spec.rb'
- 'spec/controllers/likes_controller_spec.rb'
- 'spec/requests/harvests_spec.rb'
# Offense count: 16
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Inferences.
RSpec/Rails/InferredSpecType:
Enabled: false
# Offense count: 2
RSpec/RepeatedDescription:
Exclude:
@@ -370,6 +476,7 @@ RSpec/RepeatedExampleGroupBody:
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect.
RSpec/ScatteredSetup:
Exclude:
- 'spec/features/percy/percy_spec.rb'
@@ -382,14 +489,6 @@ RSpec/SpecFilePathFormat:
Exclude:
- 'spec/controllers/member_controller_spec.rb'
# Offense count: 2
# Configuration parameters: Include.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/SpecFilePathSuffix:
Exclude:
- 'spec/features/seeds/seed_photos.rb'
- 'spec/models/garden_type.rb'
# Offense count: 3
RSpec/StubbedMock:
Exclude:
@@ -413,7 +512,24 @@ RSpec/VerifiedDoubles:
- 'spec/controllers/gardens_controller_spec.rb'
- 'spec/views/devise/shared/_links_spec.rb'
# Offense count: 26
# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ResponseMethods.
# ResponseMethods: response, last_response
RSpecRails/HaveHttpStatus:
Exclude:
- 'spec/controllers/api/v1/plantings_controller_spec.rb'
- 'spec/controllers/harvests_controller_spec.rb'
- 'spec/controllers/likes_controller_spec.rb'
- 'spec/requests/harvests_spec.rb'
# Offense count: 16
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Inferences.
RSpecRails/InferredSpecType:
Enabled: false
# Offense count: 28
# Configuration parameters: Database, Include.
# SupportedDatabases: mysql, postgresql
# Include: db/**/*.rb
@@ -436,17 +552,6 @@ Rails/Date:
Exclude:
- 'app/mailers/notifier_mailer.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Exclude:
- 'app/controllers/crops_controller.rb'
- 'config/application.rb'
- 'config/environments/development.rb'
- 'db/seeds.rb'
# Offense count: 11
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
@@ -485,12 +590,13 @@ Rails/I18nLocaleAssignment:
Rails/I18nLocaleTexts:
Enabled: false
# Offense count: 2
# Offense count: 3
# Configuration parameters: Include.
# Include: app/controllers/**/*.rb, app/mailers/**/*.rb
Rails/LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/data_controller.rb'
- 'app/controllers/registrations_controller.rb'
# Offense count: 2
Rails/OutputSafety:
@@ -498,6 +604,12 @@ Rails/OutputSafety:
- 'app/helpers/auto_suggest_helper.rb'
- 'app/helpers/gardens_helper.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Rails/PluralizationGrammar:
Exclude:
- 'spec/requests/plantings_spec.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
@@ -508,8 +620,10 @@ Rails/RakeEnvironment:
- 'lib/tasks/i18n.rake'
- 'lib/tasks/testing.rake'
# Offense count: 10
# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: ActionMailer::Preview, ActiveSupport::TimeZone
Rails/RedundantActiveRecordAllMethod:
Exclude:
- 'app/controllers/admin/roles_controller.rb'
@@ -518,7 +632,6 @@ Rails/RedundantActiveRecordAllMethod:
- 'app/controllers/plant_parts_controller.rb'
- 'app/controllers/scientific_names_controller.rb'
- 'app/services/openfarm_service.rb'
- 'spec/features/members/deletion_spec.rb'
- 'spec/features/percy/percy_spec.rb'
- 'spec/models/harvest_spec.rb'
@@ -541,8 +654,8 @@ Rails/ResponseParsedBody:
- 'spec/controllers/likes_controller_spec.rb'
- 'spec/requests/api/v1/crop_request_spec.rb'
- 'spec/requests/api/v1/gardens_request_spec.rb'
- 'spec/requests/api/v1/harvest_request_spec.rb'
- 'spec/requests/api/v1/member_request_spec.rb'
- 'spec/requests/api/v1/harvests_request_spec.rb'
- 'spec/requests/api/v1/members_request_spec.rb'
- 'spec/requests/api/v1/photos_request_spec.rb'
- 'spec/requests/api/v1/plantings_request_spec.rb'
- 'spec/requests/api/v1/seeds_request_spec.rb'
@@ -562,26 +675,11 @@ Rails/RootPathnameMethods:
- 'app/controllers/crops_controller.rb'
- 'app/helpers/icons_helper.rb'
# Offense count: 20
# Offense count: 21
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ThreeStateBooleanColumn:
Exclude:
- 'db/migrate/20121203034745_add_tos_agreement_to_users.rb'
- 'db/migrate/20130206051328_add_show_email_to_member.rb'
- 'db/migrate/20130212123628_create_notifications.rb'
- 'db/migrate/20130327120024_add_send_email_to_member.rb'
- 'db/migrate/20130517051922_create_account_types.rb'
- 'db/migrate/20130718011247_add_trading_to_seeds.rb'
- 'db/migrate/20130722050836_remove_tradable_from_seeds.rb'
- 'db/migrate/20130827105823_add_newsletter_to_member.rb'
- 'db/migrate/20131025104228_add_fields_to_gardens.rb'
- 'db/migrate/20140829230600_add_finished_to_planting.rb'
- 'db/migrate/20140928085713_add_send_planting_reminder_to_member.rb'
- 'db/migrate/20171022032108_all_the_predictions.rb'
- 'db/migrate/20180213005731_seed_usage.rb'
- 'db/migrate/20190720000555_create_mailboxer.mailboxer_engine.rb'
- 'db/migrate/20190720000558_add_delivery_tracking_info_to_mailboxer_receipts.mailboxer_engine.rb'
Enabled: false
# Offense count: 6
# Configuration parameters: Include.
@@ -603,6 +701,18 @@ Rails/WhereEquals:
- 'app/models/harvest.rb'
- 'app/models/planting.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/WhereRange:
Exclude:
- 'app/models/concerns/predict_planting.rb'
- 'app/models/garden.rb'
# Offense count: 1
Rake/MethodDefinitionInTask:
Exclude:
- 'lib/tasks/growstuff.rake'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
@@ -613,6 +723,14 @@ Style/ClassAndModuleChildren:
- 'lib/haml/filters/escaped_markdown.rb'
- 'lib/haml/filters/growstuff_markdown.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Keywords, RequireColon.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
Style/CommentAnnotation:
Exclude:
- 'spec/features/seeds/adding_seeds_spec.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CommentedKeyword:
@@ -628,7 +746,7 @@ Style/CommentedKeyword:
Style/FetchEnvVar:
Enabled: false
# Offense count: 4
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
@@ -636,32 +754,42 @@ Style/FrozenStringLiteralComment:
Exclude:
- 'config/initializers/new_framework_defaults_6_0.rb'
- 'db/migrate/20200801084007_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.active_storage.rb'
- 'db/migrate/20200815012538_remove_median_function.rb'
- 'spec/lib/haml/filters/growstuff_markdown_spec.rb'
# Offense count: 2
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
Exclude:
- 'config/environments/production.rb'
- 'lib/tasks/gbif.rake'
- 'lib/tasks/openfarm.rake'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
Exclude:
- 'app/controllers/activities_controller.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
Style/HashSyntax:
Exclude:
- 'app/models/csv_importer.rb'
- 'spec/requests/api/v1/gardens_request_spec.rb'
- 'spec/requests/api/v1/plantings_request_spec.rb'
# Offense count: 2
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
Exclude:
- 'app/controllers/activities_controller.rb'
- 'app/controllers/application_controller.rb'
- 'bin/setup'
- 'spec/features/shared_examples/crop_suggest.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
@@ -683,13 +811,21 @@ Style/MixinUsage:
- 'bin/update'
- 'spec/rails_helper.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
Exclude:
- 'app/models/activity.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/NegatedIfElseCondition:
Exclude:
- 'app/helpers/crops_helper.rb'
# Offense count: 3
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
@@ -697,6 +833,7 @@ Style/NumericPredicate:
Exclude:
- 'app/helpers/harvests_helper.rb'
- 'app/helpers/plantings_helper.rb'
- 'app/models/concerns/predict_planting.rb'
# Offense count: 6
Style/OpenStructUse:
@@ -752,15 +889,7 @@ Style/RedundantReturn:
Exclude:
- 'app/controllers/messages_controller.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/messages_controller.rb'
# Offense count: 20
# Offense count: 24
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
@@ -771,6 +900,13 @@ Style/StringConcatenation:
- 'spec/helpers/gardens_helper_spec.rb'
- 'spec/helpers/seeds_helper_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/SuperArguments:
Exclude:
- 'app/controllers/omniauth_callbacks_controller.rb'
- 'lib/haml/filters/escaped_markdown.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.

View File

@@ -1 +1 @@
3.1.4
3.2.2

View File

@@ -93,6 +93,8 @@ submit the change with your pull request.
- Martina Simicic / [simicic](https://github.com/simicic)
- Rowan Crawford / [wombleton](https://github.com/wombleton)
- Ítalo Pires / [italopires](https://github.com/italopires)
- Bennett Zink / [bennett-zink](https://github.com/bennett-zink)
- Dominick Thornton / [domthor](https://github.com/domthor)
## Bots

View File

@@ -167,8 +167,12 @@ group :development, :test do
gem 'rspec-activemodel-mocks'
gem 'rspec-rails' # unit testing framework
gem 'rswag-specs'
gem 'rubocop-capybara'
gem 'rubocop-factory_bot'
gem 'rubocop-rails'
gem 'rubocop-rake'
gem 'rubocop-rspec'
gem 'rubocop-rspec_rails'
gem 'webrat' # provides HTML matchers for view tests
gem 'dotenv-rails'

View File

@@ -33,35 +33,35 @@ GEM
GEM
remote: https://rubygems.org/
specs:
actioncable (7.1.3.2)
actionpack (= 7.1.3.2)
activesupport (= 7.1.3.2)
actioncable (7.1.3.4)
actionpack (= 7.1.3.4)
activesupport (= 7.1.3.4)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (7.1.3.2)
actionpack (= 7.1.3.2)
activejob (= 7.1.3.2)
activerecord (= 7.1.3.2)
activestorage (= 7.1.3.2)
activesupport (= 7.1.3.2)
actionmailbox (7.1.3.4)
actionpack (= 7.1.3.4)
activejob (= 7.1.3.4)
activerecord (= 7.1.3.4)
activestorage (= 7.1.3.4)
activesupport (= 7.1.3.4)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.1.3.2)
actionpack (= 7.1.3.2)
actionview (= 7.1.3.2)
activejob (= 7.1.3.2)
activesupport (= 7.1.3.2)
actionmailer (7.1.3.4)
actionpack (= 7.1.3.4)
actionview (= 7.1.3.4)
activejob (= 7.1.3.4)
activesupport (= 7.1.3.4)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.2)
actionpack (7.1.3.2)
actionview (= 7.1.3.2)
activesupport (= 7.1.3.2)
actionpack (7.1.3.4)
actionview (= 7.1.3.4)
activesupport (= 7.1.3.4)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
@@ -69,15 +69,15 @@ GEM
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actiontext (7.1.3.2)
actionpack (= 7.1.3.2)
activerecord (= 7.1.3.2)
activestorage (= 7.1.3.2)
activesupport (= 7.1.3.2)
actiontext (7.1.3.4)
actionpack (= 7.1.3.4)
activerecord (= 7.1.3.4)
activestorage (= 7.1.3.4)
activesupport (= 7.1.3.4)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.1.3.2)
activesupport (= 7.1.3.2)
actionview (7.1.3.4)
activesupport (= 7.1.3.4)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
@@ -92,22 +92,22 @@ GEM
active_utils (3.4.1)
activesupport (>= 4.2)
i18n
activejob (7.1.3.2)
activesupport (= 7.1.3.2)
activejob (7.1.3.4)
activesupport (= 7.1.3.4)
globalid (>= 0.3.6)
activemodel (7.1.3.2)
activesupport (= 7.1.3.2)
activerecord (7.1.3.2)
activemodel (= 7.1.3.2)
activesupport (= 7.1.3.2)
activemodel (7.1.3.4)
activesupport (= 7.1.3.4)
activerecord (7.1.3.4)
activemodel (= 7.1.3.4)
activesupport (= 7.1.3.4)
timeout (>= 0.4.0)
activestorage (7.1.3.2)
actionpack (= 7.1.3.2)
activejob (= 7.1.3.2)
activerecord (= 7.1.3.2)
activesupport (= 7.1.3.2)
activestorage (7.1.3.4)
actionpack (= 7.1.3.4)
activejob (= 7.1.3.4)
activerecord (= 7.1.3.4)
activesupport (= 7.1.3.4)
marcel (~> 1.0)
activesupport (7.1.3.2)
activesupport (7.1.3.4)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -122,14 +122,14 @@ GEM
ast (2.4.2)
autoprefixer-rails (10.4.16.0)
execjs (~> 2)
axe-core-api (4.9.0)
axe-core-api (4.9.1)
dumb_delegator
virtus
axe-core-capybara (4.9.0)
axe-core-api
axe-core-capybara (4.9.1)
axe-core-api (= 4.9.1)
dumb_delegator
axe-core-rspec (4.9.0)
axe-core-api
axe-core-rspec (4.9.1)
axe-core-api (= 4.9.1)
dumb_delegator
virtus
axiom-types (0.1.1)
@@ -137,19 +137,12 @@ GEM
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
base64 (0.2.0)
bcrypt (3.1.19)
bcrypt (3.1.20)
better_errors (2.10.1)
erubi (>= 1.0.0)
rack (>= 0.9.0)
rouge (>= 1.0.0)
better_html (2.0.2)
actionview (>= 6.0)
activesupport (>= 6.0)
ast (~> 2.0)
erubi (~> 1.4)
parser (>= 2.4)
smart_properties
bigdecimal (3.1.7)
bigdecimal (3.1.8)
bluecloth (2.2.0)
bonsai-elasticsearch-rails (7.0.1)
elasticsearch-model (< 8)
@@ -162,12 +155,12 @@ GEM
bootstrap_form (5.4.0)
actionpack (>= 6.1)
activemodel (>= 6.1)
builder (3.2.4)
builder (3.3.0)
bullet (7.1.6)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
byebug (11.1.3)
cancancan (3.5.0)
cancancan (3.6.1)
capybara (3.40.0)
addressable
matrix
@@ -190,7 +183,8 @@ GEM
image_processing (~> 1.1)
marcel (~> 1.0.0)
ssrf_filter (~> 1.0)
chartkick (5.0.6)
chartkick (5.0.7)
childprocess (5.0.0)
codeclimate-test-reporter (1.0.9)
simplecov (<= 0.13)
coderay (1.1.3)
@@ -205,9 +199,10 @@ GEM
coffee-script-source (1.12.2)
comfy_bootstrap_form (4.0.9)
rails (>= 5.0.0)
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
crass (1.0.6)
csv (3.3.0)
csv_shaper (1.3.2)
activesupport (>= 3.0.0)
dalli (3.2.8)
@@ -220,7 +215,7 @@ GEM
date (3.3.4)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
devise (4.9.3)
devise (4.9.4)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
@@ -230,9 +225,9 @@ GEM
discard (1.3.0)
activerecord (>= 4.2, < 8)
docile (1.1.5)
dotenv (3.1.0)
dotenv-rails (3.1.0)
dotenv (= 3.1.0)
dotenv (3.1.2)
dotenv-rails (3.1.2)
dotenv (= 3.1.2)
railties (>= 6.1)
drb (2.2.1)
dumb_delegator (1.0.0)
@@ -249,19 +244,20 @@ GEM
elasticsearch-transport (7.0.0)
faraday
multi_json
erubi (1.12.0)
erubi (1.13.0)
erubis (2.7.0)
excon (0.109.0)
excon (0.110.0)
execjs (2.9.1)
factory_bot (6.4.5)
activesupport (>= 5.0.0)
factory_bot_rails (6.4.3)
factory_bot (~> 6.4)
railties (>= 5.0.0)
faker (3.3.0)
faker (3.4.1)
i18n (>= 1.8.11, < 2)
faraday (2.9.0)
faraday (2.10.0)
faraday-net_http (>= 2.0, < 3.2)
logger
faraday-net_http (3.1.0)
net-http
ffi (1.16.3)
@@ -271,7 +267,9 @@ GEM
friendly_id (5.5.1)
activerecord (>= 4.0.0)
gbifrb (0.2.0)
geocoder (1.8.2)
geocoder (1.8.3)
base64 (>= 0.1.0)
csv (>= 3.0.0)
gibbon (1.2.1)
httparty
multi_json (>= 1.9.0)
@@ -295,7 +293,7 @@ GEM
activesupport (>= 5.1)
haml (>= 4.0.6)
railties (>= 5.1)
haml_lint (0.57.0)
haml_lint (0.58.0)
haml (>= 5.0)
parallel (~> 1.10)
rainbow
@@ -308,16 +306,15 @@ GEM
moneta
multi_json (>= 1.9.2)
webrick
highline (2.1.0)
highline (3.0.1)
httparty (0.21.0)
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
i18n (1.14.4)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
i18n-tasks (1.0.13)
i18n-tasks (1.0.14)
activesupport (>= 4.0.2)
ast (>= 2.1.0)
better_html (>= 1.0, < 3.0)
erubi
highline (>= 2.0.0)
i18n
@@ -333,14 +330,14 @@ GEM
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
io-console (0.7.2)
irb (1.12.0)
rdoc
irb (1.13.2)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
jquery-rails (4.6.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.7.1)
json (2.7.2)
json-schema (4.1.1)
addressable (>= 2.8)
jsonapi-resources (0.10.7)
@@ -352,16 +349,18 @@ GEM
kramdown (2.4.0)
rexml
language_server-protocol (3.17.0.3)
launchy (2.5.2)
launchy (3.0.0)
addressable (~> 2.8)
childprocess (~> 5.0)
leaflet-rails (1.9.4)
actionpack (>= 4.2.0)
railties (>= 4.2.0)
letter_opener (1.9.0)
launchy (>= 2.2, < 3)
letter_opener (1.10.0)
launchy (>= 2.2, < 4)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
@@ -387,8 +386,8 @@ GEM
rake
mini_magick (4.12.0)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.22.3)
mini_portile2 (2.8.7)
minitest (5.24.1)
moneta (1.0.0)
msgpack (1.7.2)
multi_json (1.15.0)
@@ -396,23 +395,23 @@ GEM
mutex_m (0.2.0)
net-http (0.4.1)
uri
net-imap (0.4.10)
net-imap (0.4.11)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.4.0.1)
net-smtp (0.5.0)
net-protocol
nio4r (2.7.0)
nokogiri (1.16.3)
nio4r (2.7.3)
nokogiri (1.16.6)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.3-x86_64-linux)
nokogiri (1.16.6-x86_64-linux)
racc (~> 1.4)
oauth (0.5.6)
oj (3.16.3)
oj (3.16.4)
bigdecimal (>= 3.0)
omniauth (1.9.2)
hashie (>= 3.4.6)
@@ -427,14 +426,14 @@ GEM
omniauth-oauth (~> 1.1)
rack
orm_adapter (0.5.0)
parallel (1.24.0)
parser (3.3.0.5)
parallel (1.25.1)
parser (3.3.4.0)
ast (~> 2.4.1)
racc
percy-capybara (5.0.0)
capybara (>= 3)
pg (1.5.6)
platform-api (3.6.0)
platform-api (3.7.0)
heroics (~> 0.1.1)
moneta (~> 1.0.0)
rate_throttle_client (~> 0.1.0)
@@ -444,11 +443,11 @@ GEM
method_source (~> 1.0)
psych (5.1.2)
stringio
public_suffix (5.0.4)
public_suffix (5.0.5)
puma (6.4.2)
nio4r (~> 2.0)
query_diet (0.7.1)
racc (1.7.3)
racc (1.8.0)
rack (2.2.9)
rack-cors (2.0.2)
rack (>= 2.0.0)
@@ -462,20 +461,20 @@ GEM
rackup (1.0.0)
rack (< 3)
webrick
rails (7.1.3.2)
actioncable (= 7.1.3.2)
actionmailbox (= 7.1.3.2)
actionmailer (= 7.1.3.2)
actionpack (= 7.1.3.2)
actiontext (= 7.1.3.2)
actionview (= 7.1.3.2)
activejob (= 7.1.3.2)
activemodel (= 7.1.3.2)
activerecord (= 7.1.3.2)
activestorage (= 7.1.3.2)
activesupport (= 7.1.3.2)
rails (7.1.3.4)
actioncable (= 7.1.3.4)
actionmailbox (= 7.1.3.4)
actionmailer (= 7.1.3.4)
actionpack (= 7.1.3.4)
actiontext (= 7.1.3.4)
actionview (= 7.1.3.4)
activejob (= 7.1.3.4)
activemodel (= 7.1.3.4)
activerecord (= 7.1.3.4)
activestorage (= 7.1.3.4)
activesupport (= 7.1.3.4)
bundler (>= 1.15.0)
railties (= 7.1.3.2)
railties (= 7.1.3.4)
rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1)
actionview (>= 5.0.1.rc1)
@@ -487,7 +486,7 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rails-i18n (7.0.8)
rails-i18n (7.0.9)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
rails_12factor (0.0.3)
@@ -495,9 +494,9 @@ GEM
rails_stdout_logging
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (7.1.3.2)
actionpack (= 7.1.3.2)
activesupport (= 7.1.3.2)
railties (7.1.3.4)
actionpack (= 7.1.3.4)
activesupport (= 7.1.3.4)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
@@ -505,23 +504,24 @@ GEM
zeitwerk (~> 2.6)
rainbow (3.1.1)
raindrops (0.20.0)
rake (13.1.0)
rake (13.2.1)
rate_throttle_client (0.1.2)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rdoc (6.6.3.1)
rdoc (6.7.0)
psych (>= 4.0.0)
recaptcha (5.16.0)
redis-client (0.20.0)
recaptcha (5.17.0)
redis-client (0.22.2)
connection_pool
regexp_parser (2.9.0)
reline (0.4.3)
regexp_parser (2.9.2)
reline (0.5.9)
io-console (~> 0.5)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rexml (3.2.6)
rexml (3.3.1)
strscan
rouge (4.1.2)
rspec (3.13.0)
rspec-core (~> 3.13.0)
@@ -533,13 +533,13 @@ GEM
rspec-mocks (>= 2.99, < 4.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (6.1.2)
rspec-rails (6.1.3)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
@@ -562,32 +562,35 @@ GEM
rswag-ui (2.13.0)
actionpack (>= 3.1, < 7.2)
railties (>= 3.1, < 7.2)
rubocop (1.62.1)
rubocop (1.65.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
rubocop-capybara (2.20.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-rails (2.24.1)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-rails (2.25.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (2.27.1)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (3.0.2)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
rubocop-rspec (~> 3, >= 3.0.1)
ruby-progressbar (1.13.0)
ruby-units (4.0.3)
ruby-vips (2.2.1)
@@ -606,27 +609,28 @@ GEM
sprockets (> 3.0)
sprockets-rails
tilt
scout_apm (5.3.7)
scout_apm (5.3.8)
parser
searchkick (5.3.1)
activemodel (>= 6.1)
hashie
selenium-webdriver (4.19.0)
selenium-webdriver (4.22.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sidekiq (7.2.2)
sidekiq (7.3.0)
concurrent-ruby (< 2)
connection_pool (>= 2.3.0)
logger
rack (>= 2.2.4)
redis-client (>= 0.19.0)
redis-client (>= 0.22.2)
simplecov (0.13.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
smart_properties (1.17.0)
sprockets (3.7.3)
base64
concurrent-ruby (~> 1.0)
@@ -636,17 +640,18 @@ GEM
activesupport (>= 5.2)
sprockets (>= 3.0.0)
ssrf_filter (1.1.2)
stringio (3.1.0)
stringio (3.1.1)
strscan (3.1.0)
sysexits (1.2.0)
temple (0.10.3)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
terser (1.2.1)
terser (1.2.3)
execjs (>= 0.3.0, < 3)
thor (1.3.1)
thread_safe (0.3.6)
tilt (2.3.0)
timecop (0.9.8)
timecop (0.9.10)
timeout (0.4.1)
trollop (1.16.2)
tzinfo (2.0.6)
@@ -676,14 +681,14 @@ GEM
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
will_paginate (4.0.0)
will_paginate (4.0.1)
will_paginate-bootstrap-style (0.3.0)
will_paginate (~> 4.0, >= 4.0.0)
xmlrpc (0.3.3)
webrick
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.13)
zeitwerk (2.6.16)
PLATFORMS
ruby
@@ -775,8 +780,12 @@ DEPENDENCIES
rswag-specs
rswag-ui
rubocop
rubocop-capybara
rubocop-factory_bot
rubocop-rails
rubocop-rake
rubocop-rspec
rubocop-rspec_rails
ruby-units
sassc-rails
scout_apm
@@ -795,7 +804,7 @@ DEPENDENCIES
xmlrpc
RUBY VERSION
ruby 3.1.4p223
ruby 3.2.2p53
BUNDLED WITH
2.3.11
2.4.22

View File

@@ -15,6 +15,11 @@ Growstuff was founded in 2012 and has been built by dozens of
[contributors](CONTRIBUTORS.md). We are an inclusive, welcoming project, and
encourage participation from people of all backgrounds and skill levels.
## Want to contribute?
Don't ask to ask, the best way to get started is to fork the project, start a codespace and get hacking.
Dive on in and submit your PRs.
## Important links
* [Issues](https://github.com/orgs/Growstuff/projects/1) (features we're

View File

@@ -0,0 +1,22 @@
$(document).ready(function() {
var url = location.href.replace(/\/$/, '');
if (location.hash) {
var hash = url.split('#');
var triggerEl = document.querySelector('#myTab a[href="#' + hash[1] + '"]');
var tab = new bootstrap.Tab(triggerEl);
tab.show();
url = location.href.replace(/\/#/, '#');
history.replaceState(null, null, url);
setTimeout(function() {
$(window).scrollTop(0);
}, 20);
}
$('a[data-bs-toggle="tab"]').on('click', function() {
var newUrl;
var hash = $(this).attr('href');
newUrl = url.split('#')[0] + hash;
history.replaceState(null, null, newUrl);
});
});

View File

@@ -102,16 +102,14 @@ section {
box-shadow: 1px 3px 3px 1px darken($beige, 20%);
cursor: pointer;
transition:
0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
0.3s box-shadow,
0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
0.1s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
0.1s box-shadow,
0.1s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
}
.card:hover {
box-shadow:
0 10px 20px darken($beige, 30%),
0 4px 8px darken($beige, 40%);
transform: scale(1.1);
1px 3px 3px 1px darken($beige, 30%);
}
}
@@ -148,10 +146,6 @@ section {
color: $brown;
}
}
.card:hover {
background-color: $beige;
}
}
.img-cover,

View File

@@ -2,6 +2,10 @@
class ApplicationController < ActionController::Base
protect_from_forgery
# Working from codespaces, we want to turn off validation
if Rails.env.development? && ENV['CODESPACE_NAME']
skip_before_action :verify_authenticity_token
end
include ApplicationHelper
@@ -10,13 +14,13 @@ class ApplicationController < ActionController::Base
rescue_from ActiveRecord::RecordNotFound, with: :not_found
def store_location
unless request.path.in?(["/members/sign_in",
"/members/sign_up",
"/members/password/new",
"/members/password/edit",
"/members/confirmation",
"/members/sign_out"]) || request.xhr?
store_location_for(:member, request.fullpath) if request.format == :html
if !(request.path.in?(["/members/sign_in",
"/members/sign_up",
"/members/password/new",
"/members/password/edit",
"/members/confirmation",
"/members/sign_out"]) || request.xhr?) && (request.format == :html)
store_location_for(:member, request.fullpath)
end
end

View File

@@ -81,7 +81,7 @@ class CropsController < ApplicationController
@companions = @crop.companions.approved
end
format.svg do
icon_data = @crop.svg_icon.presence || File.read(Rails.root.join('app', 'assets', 'images', 'icons', 'sprout.svg'))
icon_data = @crop.svg_icon.presence || File.read(Rails.root.join("app/assets/images/icons/sprout.svg"))
send_data(icon_data, type: "image/svg+xml", disposition: "inline")
end
format.json do

View File

@@ -58,7 +58,7 @@ class LikesController < ApplicationController
def failed(like, message)
respond_to do |format|
format.json { render(json: { 'error': message }, status: :forbidden) }
format.json { render(json: { error: message }, status: :forbidden) }
format.html do
flash[:error] = message
if like&.likeable

View File

@@ -8,11 +8,9 @@ class MessagesController < ApplicationController
end
def show
if (@message = Message.find_by(id: params[:id])) && (@conversation = @message.conversation)
if @conversation.is_participant?(current_member)
redirect_to conversation_path(@conversation, box: @box, anchor: "message_" + @message.id.to_s)
return
end
if (@message = Message.find_by(id: params[:id])) && (@conversation = @message.conversation) && @conversation.is_participant?(current_member)
redirect_to conversation_path(@conversation, box: @box, anchor: "message_" + @message.id.to_s)
return
end
redirect_to conversations_path(box: @box)
end

View File

@@ -153,5 +153,10 @@ class Ability
can :destroy, PlantPart do |pp|
pp.harvests.empty?
end
# Admins can't delete themselves
cannot :destroy, Member
can :destroy, Member do |other_member|
other_member&.id != member.id
end
end
end

View File

@@ -78,7 +78,7 @@ module PredictPlanting
end
# Deactivate any plantings over time_limit that are super late in small batches.
def self.archive!(time_limit: 3.years.ago, limit: 100)
def self.archive!(time_limit: 3.years.ago, limit: 1000)
active_plantings = Planting.annual.active.where("planted_at < ?", time_limit).order(planted_at: :asc).limit(limit)
active_plantings.each do |planting|
if planting.finish_is_predicatable? && planting.super_late?

View File

@@ -80,11 +80,11 @@ class Garden < ApplicationRecord
def reindex(refresh: false); end
# Deactivate any gardens with no active plantings
def self.archive!(time_limit: 3.years.ago, limit: 100)
Garden.active.where("updated_at < ?", time_limit).order(updated_at: :asc).limit(limit).each do |active_garden|
def self.archive!(time_limit: 3.years.ago, limit: 1000)
Garden.active.where("gardens.updated_at < ?", time_limit).order(updated_at: :asc).limit(limit).each do |active_garden|
unless active_garden.plantings.active.any?
garden.active = false
garden.save
active_garden.active = false
active_garden.save
end
end
end

View File

@@ -9,7 +9,7 @@ class Photo < ApplicationRecord
has_many :photo_associations, dependent: :delete_all, inverse_of: :photo
# This doesn't work, ActiveRecord tries to use the polymoriphinc photographable
# This doesn't work, ActiveRecord tries to use the polymoriphic photographable
# relationship instead.
# has_many :crops, through: :photo_associations, counter_cache: true
def crops

View File

@@ -1,4 +1,6 @@
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :delete, class: 'form-horizontal' }) do |f|
= form_for(resource, as: resource_name,
url: registration_path(resource_name) + '#delete',
html: { method: :delete, class: 'form-horizontal' }) do |f|
%br/
= render 'devise/shared/error_messages', resource: resource

View File

@@ -1,5 +1,5 @@
= form_for(resource, as: resource_name,
url: registration_path(resource_name),
url: registration_path(resource_name) + '#apps',
html: { method: :put, class: 'form-horizontal' }) do |_f|
%br/
= render 'devise/shared/error_messages', resource: resource

View File

@@ -1,5 +1,5 @@
= form_for(resource, as: resource_name,
url: registration_path(resource_name),
url: registration_path(resource_name) + '#email',
html: { method: :put, class: 'form-horizontal' }) do |f|
%br/
= render 'devise/shared/error_messages', resource: resource

View File

@@ -1,5 +1,5 @@
= form_for(resource, as: resource_name,
url: registration_path(resource_name),
url: registration_path(resource_name) + '#password',
html: { method: :put, class: 'form-horizontal' }) do |f|
%br/
= render 'devise/shared/error_messages', resource: resource

View File

@@ -1,5 +1,5 @@
= form_for(resource, as: resource_name,
url: registration_path(resource_name),
url: registration_path(resource_name) + '#profile',
html: { method: :put, class: 'form-horizontal' }) do |f|
%br/
= render 'devise/shared/error_messages', resource: resource

View File

@@ -28,6 +28,8 @@
%section
%h2= title('harvests', @owner, @crop, @planting)
= will_paginate @harvests
- if @harvests.blank?
%p No harvests recorded yet
.index-cards
- @harvests.each do |h|
= render 'harvests/card', harvest: h

View File

@@ -10,7 +10,7 @@
.col
%p
- if current_member.plantings.active.any?
= link_to member_path(current_member), class: 'btn btn-dark' do
= link_to member_path(current_member, anchor: "#content"), class: 'btn btn-dark' do
= planting_icon
Track my plantings
%p

View File

@@ -1,4 +1,4 @@
%nav.navbar.navbar-expand-lg.navbar-dark.bg-dark.justify-content-between
%nav.navbar.navbar-expand-lg.navbar-dark.bg-dark.justify-content-between.sticky-top
.nav
%a.navbar-brand{ href: root_path }
= image_tag("pear.png", class: 'logo', alt: 'Growstuff brand logo (drawing of a pear)')

View File

@@ -2,7 +2,7 @@
%html{ lang: "en", prefix: "og: https://ogp.me/ns#" }
= yield :scripts
= render "layouts/head"
%body
%body.d-flex.flex-column.vh-100
= query_diet_widget if Rails.env.development?
.sr-only= link_to t(".skip"), "#skipnav"
= render "layouts/header"
@@ -25,7 +25,7 @@
= render "shared/flash_messages", flash: flash
%main= yield
%footer.page-footer.font-small.bg-dark.pt-4= render "layouts/footer"
%footer.page-footer.font-small.bg-dark.pt-4.mt-auto= render "layouts/footer"
/
Javascripts
\==================================================

View File

@@ -1,7 +1,11 @@
%h2 All about #{member.login_name}
%p
%small
%a{href: "#content"}
Skip to main content
- if member.bio.blank?
- if can? :edit, member
= link_to "Add a bio to complete your profile.", edit_member_path(member)
= link_to "Add a bio to complete your profile.", edit_member_registration_path
- else
#{member.login_name} hasn't written a bio yet.
- else

View File

@@ -1,46 +0,0 @@
- if @harvesting.size.positive?
%section.harvests
%h2 Ready to harvest
.index-cards
- @harvesting.each do |planting|
= render 'plantings/thumbnail', planting: planting
- if @others.size.positive?
%section.planting-progress
%h2 Progress report
%p Still growing and not ready for harvesting.
.list-group
- @others.each do |planting|
.list-group-item
%span= render 'plantings/tiny', planting: planting
%span= render 'plantings/progress', planting: planting
- if @late.size.positive?
%section.late
%h2 Late
%p
These plantings are at the end of their lifecycle.
- if member_signed_in? && @member == current_member
%strong When you have removed the planting from your garden, mark the planting as finished in Growstuff.
.index-cards
- @late.each do |planting|
= render 'plantings/thumbnail', planting: planting
- if @super_late.any?
%section.superlate
%h2 Super late
%p
We suspect the following plantings finished long ago and no longer need tracking.
- if member_signed_in? && current_member == @member
%strong You can mark these plantings as finished to stop tracking.
%ul
- @super_late.each do |planting|
%li
= link_to planting.crop_name, planting_url(slug: planting.slug)
planted on #{planting.planted_at.to_date}
- if @harvests.any?
%section.havests
%h2 Recent Harvests
.index-cards
- @harvests.each do |harvest|
= render 'harvests/thumbnail', harvest: harvest

View File

@@ -1,45 +1,33 @@
.card-body
%h3 Activity
%ul.list-group.list-group-flush
%li.list-group-item
%h3
Stats
.label.d-md-none{type: "button", :data => { :bs_toggle => "collapse", :bs_target => "#stats-collapse"}}
%a
Show/Hide
.collapse.d-md-block#stats-collapse
%ul.list-group.list-group-flush
- if member.gardens.present?
= link_to localize_plural(member.gardens, Garden), member_gardens_path(member)
- else
0 gardens
%li.list-group-item
%li.list-group-item
= link_to localize_plural(member.gardens, Garden), member_gardens_path(member)
- if member.plantings.present?
= link_to localize_plural(member.plantings, Planting), member_plantings_path(member)
- else
0 plantings
%li.list-group-item
%li.list-group-item
= link_to localize_plural(member.plantings, Planting), member_plantings_path(member)
- if member.harvests.present?
= link_to localize_plural(member.harvests, Harvest), member_harvests_path(member)
- else
0 harvests
%li.list-group-item
%li.list-group-item
= link_to localize_plural(member.harvests, Harvest), member_harvests_path(member)
- if member.seeds.present?
= link_to localize_plural(member.seeds, Seed), member_seeds_path(member)
- else
0 seeds
%li.list-group-item
%li.list-group-item
= link_to localize_plural(member.seeds, Seed), member_seeds_path(member)
- if member.posts.present?
= link_to localize_plural(member.posts, Post), member_posts_path(member)
- else
0 posts
%li.list-group-item
%li.list-group-item
= link_to localize_plural(member.posts, Post), member_posts_path(member)
- if member.activities.present?
= link_to localize_plural(member.plantings, Activity), member_activities_path(member)
- else
0 activities
%li.list-group-item
%li.list-group-item
= link_to localize_plural(member.plantings, Activity), member_activities_path(member)
- if member.followed.present?
= link_to localize_plural(member.followed, Follow), member_follows_path(member)
- else
0 following
%li.list-group-item
%li.list-group-item
= link_to localize_plural(member.followed, Follow), member_follows_path(member)
- if member.followers.present?
= link_to pluralize(member.followers.size, "follower"), member_followers_path(member)
- else
0 followers
%li.list-group-item
= link_to pluralize(member.followers.size, "follower"), member_followers_path(member)

View File

@@ -21,9 +21,10 @@
.row
.col= render "bio", member: @member
.col= render "avatar", member: @member
%p
- @member.roles.each do |role|
%span.badge.badge-info= role.name.titleize
- if @member.roles.any?
%p
- @member.roles.each do |role|
%span.badge.badge-info= role.name.titleize
- if @member.location.present?
%p.badge.badge-location{ title: @member.location }
= icon 'fas', 'map-marker'
@@ -31,9 +32,10 @@
%p
%strong Member since
= @member.created_at.to_fs(:date)
%p
%strong Last Login
= @member.last_sign_in_at
- if @member.last_sign_in_at
%p
%strong Last Login
= @member.last_sign_in_at&.to_fs(:default)
- if can? :update, @member
= link_to edit_member_registration_path, class: 'btn btn-block' do
@@ -59,24 +61,71 @@
= render "contact", member: @member, twitter_auth: @twitter_auth,
flickr_auth: @flickr_auth
.col-md-10
%section= render "map", member: @member
= render 'members/full_summary', member: @member
%section.activity
%h2 Activity
.list-group
- @activity.each do |event|
.list-group-item.list-group-item-action.flex-column.align-items-start{:href => "#!"}
.d-flex.w-100.justify-content-between
%h5
= icon_for_model(event.event_type)
= event_description(event)
= render 'timeline/photos', photo: resolve_model(event) if event.event_type == 'photo'
%small
- if event.event_at.present?
- if event.event_at.kind_of?(Date)
#{distance_of_time_in_words(event.event_at, Time.zone.now.to_date)} ago
- else
#{time_ago_in_words(event.event_at)} ago
- else
unknown date
.col-md-10#content
.row
%section.order-3.order-md-1.col-12= render "map", member: @member
- if @harvesting.size.positive?
%section.harvests.order-2.order-md-1
%h2 Ready to harvest
.index-cards
- @harvesting.each do |planting|
= render 'plantings/thumbnail', planting: planting
- if @others.size.positive?
%section.planting-progress.order-2.order-md-1.col-12
%h2 Progress report
%p Still growing and not ready for harvesting.
.list-group
- @others.each do |planting|
.list-group-item
%span= render 'plantings/tiny', planting: planting
%span= render 'plantings/progress', planting: planting
- if @late.size.positive?
%section.late.order-2.order-md-1.col-12
%h2 Late
%p
These plantings are at the end of their lifecycle.
- if member_signed_in? && @member == current_member
%strong When you have removed the planting from your garden, mark the planting as finished in Growstuff.
.index-cards
- @late.each do |planting|
= render 'plantings/thumbnail', planting: planting
- if @super_late.any?
%section.superlate.order-2.order-md-1.col-12
%h2 Super late
%p
We suspect the following plantings finished long ago and no longer need tracking.
- if member_signed_in? && current_member == @member
%strong You can mark these plantings as finished to stop tracking.
%ul
- @super_late.each do |planting|
%li
= link_to planting.crop_name, planting_url(slug: planting.slug)
planted on #{planting.planted_at.to_date}
- if @harvests.any?
%section.havests.order-2.order-md-1.col-12
%h2 Recent Harvests
.index-cards
- @harvests.each do |harvest|
= render 'harvests/thumbnail', harvest: harvest
- if @activity.any?
%section.activity.order-2.order-md-1.col-12
%h2 Activity
.list-group
- @activity.each do |event|
.list-group-item.list-group-item-action.flex-column.align-items-start{:href => "#!"}
.d-flex.w-100.justify-content-between
%h5.col-md-11.col-xs-10.text-truncate
= icon_for_model(event.event_type)
= event_description(event)
= render 'timeline/photos', photo: resolve_model(event) if event.event_type == 'photo'
%small.col-md-1.col-xs-2.text-right
- if event.event_at.present?
- if event.event_at.kind_of?(Date)
#{distance_of_time_in_words(event.event_at, Time.zone.now.to_date)} ago
- else
#{time_ago_in_words(event.event_at)} ago
- else
unknown date

View File

@@ -39,6 +39,8 @@
%section
%h2= title('plantings', @owner, @crop, @planting)
= will_paginate @plantings
- if @plantings.blank?
%p No plantings recorded yet
.index-cards
- @plantings.each do |p|
= render 'plantings/card', planting: p

View File

@@ -8,10 +8,10 @@
in
= link_to @post.forum, @post.forum
on
= @post.created_at
= @post.created_at.to_fs(:default)
- if @post.updated_at > @post.created_at
and edited at
= @post.updated_at
= @post.updated_at.to_fs(:default)
= link_to "Permalink", post

View File

@@ -16,11 +16,11 @@
%hr/
%p Yes, I would be willing trade these from #{current_member.location}
.btn-group{"aria-label" => "trade to", role: "group"}
- Seed::TRADABLE_TO_VALUES.each do |t|
.btn-group.d-grid.flex-column{"aria-label" => "trade to", role: "group"}
- Seed::TRADABLE_TO_VALUES.reverse.each do |t|
- unless t == 'nowhere'
= button_to seeds_path(seed: {crop_id: seed.crop_id, tradable_to: t}), method: :post, class: 'btn' do
%h3= t
= button_to seeds_path(seed: {crop_id: seed.crop_id, tradable_to: t}), method: :post, class: 'btn col-12' do
= t
%hr/
%p

View File

@@ -35,7 +35,8 @@
%section
%h2= title('seeds', @owner, @crop, @planting)
= will_paginate @seeds
- if @seeds.blank?
%p No seeds recorded yet
.index-cards
- @seeds.each do |s|
= render 'seeds/card', seed: s

View File

@@ -26,7 +26,7 @@ module Growstuff
config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time, ActiveSupport::TimeWithZone, ActiveSupport::TimeZone]
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
I18n.load_path += Dir[Rails.root.join("config/locales/*.{rb,yml}")]
I18n.default_locale = :en
# rails will fallback to config.i18n.default_locale translation
config.i18n.fallbacks = true

View File

@@ -16,7 +16,7 @@ Rails.application.configure do
# Enable/disable caching. By default caching is disabled.
# Run rails dev:cache to toggle caching.
if Rails.root.join('tmp', 'caching-dev.txt').exist?
if Rails.root.join("tmp/caching-dev.txt").exist?
config.action_controller.perform_caching = true
config.cache_store = :memory_store
@@ -67,7 +67,11 @@ Rails.application.configure do
config.action_mailer.delivery_method = :letter_opener
config.host = 'localhost:3000'
config.hosts << ".preview.app.github.dev"
if ENV['CODESPACE_NAME']
config.host = "#{ENV['CODESPACE_NAME']}-3000.app.github.dev:443"
config.hosts << ".preview.app.github.dev"
config.hosts << ".app.github.dev"
end
config.analytics_code = ''
config.action_controller.action_on_unpermitted_parameters = :raise

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
class CreateCms < ActiveRecord::Migration[4.2]
def self.up # rubocop:disable Metrics/MethodLength
def self.up
# -- Sites --------------------------------------------------------------
create_table :comfy_cms_sites do |t|
t.string :label, null: false

View File

@@ -39,7 +39,7 @@ class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
t.foreign_key :active_storage_blobs, column: :blob_id
end
create_table :active_storage_variant_records, id: primary_key_type do |t|
create_table :active_storage_variant_records, id: primary_key_type do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.belongs_to :blob, null: false, index: false, type: foreign_key_type
t.string :variation_digest, null: false

View File

@@ -26,7 +26,7 @@ def load_data
end
def load_crops
source_path = Rails.root.join('db', 'seeds')
source_path = Rails.root.join("db/seeds")
Dir.glob("#{source_path}/crops*.csv").each do |crop_file|
puts "Loading crops from #{crop_file}..."
CSV.foreach(crop_file) do |row|
@@ -44,10 +44,11 @@ def load_roles
end
def load_test_users
require "faker"
puts "Loading test users..."
# Open suburb csv
source_path = Rails.root.join('db', 'seeds')
source_path = Rails.root.join("db/seeds")
begin
suburb_file = File.open("#{source_path}/suburbs.csv")
rescue StandardError
@@ -80,24 +81,114 @@ def load_test_users
end
# Create a planting by the member
Planting.create(
owner_id: @user.id,
garden_id: @user.gardens.first.id,
planted_at: Time.zone.today,
crop_id: Crop.find(i % Crop.all.size + 1).id,
sunniness: select_random_item(Planting::SUNNINESS_VALUES),
planted_from: select_random_item(Planting::PLANTED_FROM_VALUES)
)
10.times do |n|
planting = Planting.create!(
owner_id: @user.id,
garden_id: @user.gardens.first.id,
planted_at: (n * 7).days.ago,
crop_id: Crop.find((i + n) % Crop.all.size + 1).id,
sunniness: select_random_item(Planting::SUNNINESS_VALUES),
planted_from: select_random_item(Planting::PLANTED_FROM_VALUES)
)
photo = Photo.create!(
owner: @user,
source: 'flickr',
source_id: 1,
title: Faker::Movies::HarryPotter.quote,
license_name: "CC-BY",
license_url: "http://example.com/license.html",
thumbnail_url: "https://picsum.photos/200?planting-#{planting.id}",
fullsize_url: "https://picsum.photos/600?planting-#{planting.id}",
link_url: Faker::Internet.url
)
planting.photos << photo
end
# Create an activity by the member
Activity.create(
owner_id: @user.id,
garden_id: @user.gardens.first.id,
due_date: Time.zone.today,
name: "Remove all weeds",
category: "Weeding",
description: "Get rid of the invasive grass, again"
3.times do |_n|
Activity.create!(
owner_id: @user.id,
garden_id: @user.gardens.first.id,
due_date: Time.zone.today,
name: Faker::Book.title,
category: "Weeding",
description: Faker::Lorem.paragraphs.join("\n")
)
end
# Create a post by the member
post = Post.create!(
author_id: @user.id,
subject: Faker::Book.title,
body: Faker::Lorem.paragraphs.join("\n")
)
photo = Photo.create!(
owner: @user,
source: 'flickr',
source_id: 1,
title: Faker::Movies::HarryPotter.quote,
license_name: "CC-BY",
license_url: "http://example.com/license.html",
thumbnail_url: "https://picsum.photos/200?post-#{post.id}",
fullsize_url: "https://picsum.photos/600?post-#{post.id}",
link_url: Faker::Internet.url
)
post.photos << photo
2.times do
harvest = Harvest.create!(
crop: @user.plantings.last.crop,
planting: @user.plantings.last,
plant_part: select_random_item(PlantPart.all.to_a),
owner: @user,
harvested_at: 1.day.ago,
quantity: "3",
unit: "individual",
weight_quantity: 6,
weight_unit: "kg",
description: Faker::Book.title
)
photo = Photo.create!(
owner: @user,
source: 'flickr',
source_id: 1,
title: Faker::Movies::HarryPotter.quote,
license_name: "CC-BY",
license_url: "http://example.com/license.html",
thumbnail_url: "https://picsum.photos/200?harvest-#{harvest.id}",
fullsize_url: "https://picsum.photos/600?harvest-#{harvest.id}",
link_url: Faker::Internet.url
)
harvest.photos << photo
end
5.times do
seed = Seed.create!(
owner: @user,
crop: @user.plantings.first.crop,
description: Faker::Book.title,
quantity: Faker::Number.number(digits: 3),
tradable_to: select_random_item(Seed::TRADABLE_TO_VALUES),
organic: select_random_item(Seed::ORGANIC_VALUES),
gmo: select_random_item(['certified GMO-free', 'non-certified GMO-free', 'GMO', 'unknown']), # Strangely, this doesn't want to work as Seed:GMO_VALUES
heirloom: select_random_item(Seed::HEIRLOOM_VALUES),
parent_planting: @user.plantings.first
)
photo = Photo.create!(
owner: @user,
source: 'flickr',
source_id: 1,
title: Faker::Movies::HarryPotter.quote,
license_name: "CC-BY",
license_url: "http://example.com/license.html",
thumbnail_url: "https://picsum.photos/200?seed-#{seed.id}",
fullsize_url: "https://picsum.photos/600?seed-#{seed.id}",
link_url: Faker::Internet.url
)
seed.photos << photo
end
end
puts "Finished loading test users"

View File

@@ -28,7 +28,7 @@ describe CropsController do
end
end
describe "GET crop hierarchy " do
describe "GET crop hierarchy" do
describe 'fetches the crop hierarchy page' do
context 'wrangler' do
include_context 'login as wrangler'

View File

@@ -69,7 +69,7 @@ describe "crop detail page", :js, :search do
include_examples "shows photos"
end
context "when not signed in " do
context "when not signed in" do
include_examples "shows photos"
end
end

View File

@@ -54,11 +54,11 @@ describe "member profile", :js do
context "activity stats" do
it "with no activity" do
visit member_path(member)
expect(page).to have_content "Activity"
expect(page).to have_content "0 plantings"
expect(page).to have_content "0 harvests"
expect(page).to have_content "0 seeds"
expect(page).to have_content "0 posts"
expect(page).to have_content "Stats"
expect(page).not_to have_content "0 plantings"
expect(page).not_to have_content "0 harvests"
expect(page).not_to have_content "0 seeds"
expect(page).not_to have_content "0 posts"
end
context "with some activity" do

View File

@@ -118,4 +118,28 @@ describe Ability do
end
end
end
context 'members' do
context 'ordinary member' do
it "can't manage members" do
ability.should_not be_able_to(:destroy, Member)
end
end
context 'admin' do
let(:role) { FactoryBot.create(:admin) }
before do
member.roles << role
end
it "can manage members" do
ability.should be_able_to(:destroy, FactoryBot.create(:member))
end
it "cannot delete themselves" do
ability.should_not be_able_to(:destroy, member)
end
end
end
end

View File

@@ -144,7 +144,7 @@ describe Post do
end
it "does not duplicate" do
expect(post.crops) =~ [tomato, maize]
expect(post.crops).to match_array([tomato, maize])
end
it "is updated when post was modified" do

View File

@@ -68,7 +68,7 @@ describe "posts/_single" do
end
it "shows the updated time" do
rendered.should have_content @post.updated_at
rendered.should have_content @post.updated_at.to_fs(:default)
end
end

View File

@@ -292,11 +292,11 @@ brace-expansion@^1.1.7:
concat-map "0.0.1"
braces@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
version "3.0.3"
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"
integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
dependencies:
fill-range "^7.0.1"
fill-range "^7.1.1"
buffer-crc32@~0.2.3:
version "0.2.13"
@@ -767,10 +767,10 @@ file-entry-cache@^5.0.1:
dependencies:
flat-cache "^2.0.1"
fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
fill-range@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
dependencies:
to-regex-range "^5.0.1"
@@ -1693,9 +1693,9 @@ write@1.0.3:
mkdirp "^0.5.1"
ws@^8.0.0:
version "8.5.0"
resolved "https://registry.yarnpkg.com/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f"
integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==
version "8.17.1"
resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b"
integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==
y18n@^4.0.0:
version "4.0.3"