Commit Graph

1156 Commits

Author SHA1 Message Date
Andrew Brown
d1225c30c5 Fix migration error: Use .all.group_by instead of .group_by on model class
The AddPositionToImageUploads migration was calling group_by directly on the ImageUpload class instead of on a collection. This fixes the NoMethodError by properly calling ImageUpload.all.group_by.

Also updates Gemfile.lock with arm64-darwin platform support after bundle install.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 16:28:24 -07:00
Andrew Brown
ac96a001a8 Fix Stripe subscription errors by migrating deprecated sources API to payment_methods API
- Migrate from deprecated sources API to modern payment_methods API in SubscriptionsController
- Update subscription plan modifications to use Subscription.modify instead of direct assignment
- Fix payment method creation/deletion to use PaymentMethod.create/detach instead of sources
- Update view templates to use new payment_methods data structure
- Migrate price.id usage from deprecated plan.id in data integrity tasks
- Add comprehensive test suite with proper Stripe API stubs
- Add missing test gems: rspec-rails, webmock, factory_bot_rails, shoulda-matchers

This resolves Error 500 when users try to upgrade to Premium subscriptions.
The original error was: NoMethodError - undefined method 'total_count' for nil:NilClass
caused by stripe_customer.sources.total_count when sources API returned nil.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 23:40:36 -07:00
Andrew Brown
0a7fdbfed0 sidekiq 6.5 -> 7.3 & redis 4.8 -> 5.1 2025-05-18 22:15:58 -07:00
Andrew Brown
7b8ccb844c pin engtagger to github version 2025-05-01 20:19:26 -07:00
Andrew Brown
469ff5e38f re-downgrade more gems 2025-05-01 14:27:07 -07:00
Andrew Brown
574ff4613f downgrade our redis gem until we can upgrade redis server 2025-05-01 14:22:05 -07:00
Andrew Brown
fa2b53327c regenerate gems, pin sqlite3 (we can upgrade it after we upgrade rails), and fix some upgrade errors 2025-05-01 10:59:17 -07:00
Andrew Brown
8c0dad0ddc green test suite again 2025-05-01 01:30:33 -07:00
Andrew Brown
f31af2fa9f pin 2.x html-pipeline asset that thredded depends on 2025-05-01 00:26:38 -07:00
Andrew Brown
95b5615548 Merge branch 'master' of github.com:indentlabs/notebook 2025-05-01 00:21:09 -07:00
Andrew Brown
a929428d23
Merge branch 'master' into dependabot/bundler/puma-5.6.9 2025-05-01 00:16:16 -07:00
Andrew Brown
7e573271f9 upgrade thredded dependencies 2025-04-23 23:40:48 -07:00
Andrew Brown
ade2b79163 use Sentry instead of new relic for error tracking 2025-04-23 00:32:11 -07:00
Andrew Brown
fe02d3f189 Merge branch 'master' of github.com:indentlabs/notebook 2025-04-01 13:08:33 -07:00
Andrew Brown
b208dd63c1 add cached word count to revision index 2025-04-01 13:08:23 -07:00
Andrew Brown (drusepth)
d0bf0a902e swap puma for passenger in gemfile 2025-01-18 01:01:48 +00:00
dependabot[bot]
f0acb5bf00
Bump puma from 5.6.5 to 5.6.9
Bumps [puma](https://github.com/puma/puma) from 5.6.5 to 5.6.9.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.6.5...v5.6.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-20 19:10:51 +00:00
Andrew Brown
8a844ab802 remove medium-editor-rails and switch to CDN on editor pages 2024-06-22 15:08:12 -07:00
Andrew Brown
a9f35f2035
Merge branch 'master' into dependabot/bundler/sanitize-6.0.2 2024-06-22 14:57:09 -07:00
Andrew Brown
193f8525fa minor gem updates 2024-06-22 14:51:31 -07:00
dependabot[bot]
d7e4f07dab
Bump sanitize from 6.0.1 to 6.0.2
Bumps [sanitize](https://github.com/rgrove/sanitize) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/rgrove/sanitize/releases)
- [Changelog](https://github.com/rgrove/sanitize/blob/main/HISTORY.md)
- [Commits](https://github.com/rgrove/sanitize/compare/v6.0.1...v6.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 20:04:36 +00:00
Andrew Brown
3aab62aee6
Merge pull request #1261 from indentlabs/dependabot/bundler/rails_admin-3.1.2
Bump rails_admin from 3.1.1 to 3.1.2
2023-05-15 11:05:59 -07:00
Andrew Brown
2d95e0dcbb
Merge pull request #1266 from indentlabs/dependabot/bundler/pg-1.5.3
Bump pg from 1.4.6 to 1.5.3
2023-05-15 11:05:50 -07:00
Andrew Brown
f32b77872a
Merge pull request #1268 from indentlabs/dependabot/bundler/chartkick-5.0.2
Bump chartkick from 4.1.3 to 5.0.2
2023-05-15 11:05:31 -07:00
Andrew Brown
a12905e0c8
Merge pull request #1269 from indentlabs/dependabot/bundler/aws-sdk-s3-1.122.0
Bump aws-sdk-s3 from 1.120.1 to 1.122.0
2023-05-15 11:05:14 -07:00
Andrew Brown
7c01ac0dc5
Merge pull request #1270 from indentlabs/dependabot/bundler/selenium-webdriver-4.9.1
Bump selenium-webdriver from 4.8.0 to 4.9.1
2023-05-15 11:05:07 -07:00
dependabot[bot]
a8f87293cf
Bump terser from 1.1.13 to 1.1.15
Bumps [terser](https://github.com/ahorek/terser-ruby) from 1.1.13 to 1.1.15.
- [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.1.13...1.1.15)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-10 13:04:47 +00:00
dependabot[bot]
b06270aa2f
Bump selenium-webdriver from 4.8.0 to 4.9.1
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.8.0 to 4.9.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/compare/selenium-4.8.0...selenium-4.9.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 13:21:48 +00:00
dependabot[bot]
9108686a92
Bump aws-sdk-s3 from 1.120.1 to 1.122.0
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby) from 1.120.1 to 1.122.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/commits)

---
updated-dependencies:
- dependency-name: aws-sdk-s3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 13:09:36 +00:00
dependabot[bot]
97b7bd55e5
Bump chartkick from 4.1.3 to 5.0.2
Bumps [chartkick](https://github.com/ankane/chartkick) from 4.1.3 to 5.0.2.
- [Release notes](https://github.com/ankane/chartkick/releases)
- [Changelog](https://github.com/ankane/chartkick/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ankane/chartkick/compare/v4.1.3...v5.0.2)

---
updated-dependencies:
- dependency-name: chartkick
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-03 13:10:41 +00:00
dependabot[bot]
a25465e4e6
Bump pg from 1.4.6 to 1.5.3
Bumps [pg](https://github.com/ged/ruby-pg) from 1.4.6 to 1.5.3.
- [Release notes](https://github.com/ged/ruby-pg/releases)
- [Changelog](https://github.com/ged/ruby-pg/blob/master/History.md)
- [Commits](https://github.com/ged/ruby-pg/compare/v1.4.6...v1.5.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-28 13:22:22 +00:00
dependabot[bot]
cb00270ef1
Bump rails_admin from 3.1.1 to 3.1.2
Bumps [rails_admin](https://github.com/sferik/rails_admin) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/sferik/rails_admin/releases)
- [Changelog](https://github.com/railsadminteam/rails_admin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sferik/rails_admin/compare/v3.1.1...v3.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 13:13:08 +00:00
Andrew Brown
eee3fe2dbd
Merge pull request #1258 from indentlabs/dependabot/bundler/sqlite3-1.6.2
Bump sqlite3 from 1.6.0 to 1.6.2
2023-04-21 15:18:05 -07:00
Andrew Brown
6b6981dff1
Merge pull request #1257 from indentlabs/dependabot/bundler/memory_profiler-1.0.1
Bump memory_profiler from 1.0.0 to 1.0.1
2023-04-21 15:17:49 -07:00
dependabot[bot]
841956d260
Bump memory_profiler from 1.0.0 to 1.0.1
Bumps [memory_profiler](https://github.com/SamSaffron/memory_profiler) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/SamSaffron/memory_profiler/releases)
- [Changelog](https://github.com/SamSaffron/memory_profiler/blob/master/CHANGELOG.md)
- [Commits](https://github.com/SamSaffron/memory_profiler/compare/v1.0.0...v1.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 22:17:42 +00:00
Andrew Brown
ca07cbcbd6
Merge pull request #1254 from indentlabs/dependabot/bundler/pg-1.4.6
Bump pg from 1.4.5 to 1.4.6
2023-04-21 15:17:30 -07:00
Andrew Brown
695bc07fec
Merge pull request #1255 from indentlabs/dependabot/bundler/redis-5.0.6
Bump redis from 5.0.5 to 5.0.6
2023-04-21 15:17:04 -07:00
dependabot[bot]
95e833aeed
Bump sqlite3 from 1.6.0 to 1.6.2
Bumps [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) from 1.6.0 to 1.6.2.
- [Release notes](https://github.com/sparklemotion/sqlite3-ruby/releases)
- [Changelog](https://github.com/sparklemotion/sqlite3-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/sqlite3-ruby/compare/v1.6.0...v1.6.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-19 13:06:15 +00:00
dependabot[bot]
249968a4ba
Bump redis from 5.0.5 to 5.0.6
Bumps [redis](https://github.com/redis/redis-rb) from 5.0.5 to 5.0.6.
- [Release notes](https://github.com/redis/redis-rb/releases)
- [Changelog](https://github.com/redis/redis-rb/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/redis-rb/compare/v5.0.5...v5.0.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-19 12:58:48 +00:00
dependabot[bot]
80586eec63
Bump pg from 1.4.5 to 1.4.6
Bumps [pg](https://github.com/ged/ruby-pg) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/ged/ruby-pg/releases)
- [Changelog](https://github.com/ged/ruby-pg/blob/master/History.md)
- [Commits](https://github.com/ged/ruby-pg/compare/v1.4.5...v1.4.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-19 12:57:39 +00:00
dependabot[bot]
6e6ce445bf
Bump devise from 4.8.1 to 4.9.2
Bumps [devise](https://github.com/heartcombo/devise) from 4.8.1 to 4.9.2.
- [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.8.1...v4.9.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-19 00:51:45 +00:00
Andrew Brown
54c311e3e8
Merge pull request #1247 from indentlabs/dependabot/bundler/newrelic_rpm-9.2.0
Bump newrelic_rpm from 8.16.0 to 9.2.0
2023-04-18 16:53:18 -07:00
Andrew Brown
a25008de9c
Merge pull request #1249 from indentlabs/dependabot/bundler/stackprof-0.2.25
Bump stackprof from 0.2.21 to 0.2.25
2023-04-18 16:52:34 -07:00
Andrew Brown
e936993007
Merge pull request #1250 from indentlabs/dependabot/bundler/rmagick-5.2.0
Bump rmagick from 5.1.0 to 5.2.0
2023-04-18 16:52:25 -07:00
dependabot[bot]
5a3448883c
Bump rmagick from 5.1.0 to 5.2.0
Bumps [rmagick](https://github.com/rmagick/rmagick) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/rmagick/rmagick/releases)
- [Changelog](https://github.com/rmagick/rmagick/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rmagick/rmagick/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 23:50:56 +00:00
dependabot[bot]
241ee09ee1
Bump rack-mini-profiler from 3.0.0 to 3.1.0
Bumps [rack-mini-profiler](https://github.com/MiniProfiler/rack-mini-profiler) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/MiniProfiler/rack-mini-profiler/releases)
- [Changelog](https://github.com/MiniProfiler/rack-mini-profiler/blob/master/CHANGELOG.md)
- [Commits](https://github.com/MiniProfiler/rack-mini-profiler/compare/v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: rack-mini-profiler
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 23:50:56 +00:00
dependabot[bot]
a7dbdb2522
Bump newrelic_rpm from 8.16.0 to 9.2.0
Bumps [newrelic_rpm](https://github.com/newrelic/newrelic-ruby-agent) from 8.16.0 to 9.2.0.
- [Release notes](https://github.com/newrelic/newrelic-ruby-agent/releases)
- [Changelog](https://github.com/newrelic/newrelic-ruby-agent/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/newrelic/newrelic-ruby-agent/compare/8.16.0...9.2.0)

---
updated-dependencies:
- dependency-name: newrelic_rpm
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 23:50:55 +00:00
dependabot[bot]
96cb393964
Bump database_cleaner from 2.0.1 to 2.0.2
Bumps [database_cleaner](https://github.com/DatabaseCleaner/database_cleaner) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/DatabaseCleaner/database_cleaner/releases)
- [Changelog](https://github.com/DatabaseCleaner/database_cleaner/blob/main/History.rdoc)
- [Commits](https://github.com/DatabaseCleaner/database_cleaner/compare/v2.0.1...v2.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 23:29:21 +00:00
dependabot[bot]
a59d0f8541
Bump stackprof from 0.2.21 to 0.2.25
Bumps [stackprof](https://github.com/tmm1/stackprof) from 0.2.21 to 0.2.25.
- [Release notes](https://github.com/tmm1/stackprof/releases)
- [Changelog](https://github.com/tmm1/stackprof/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tmm1/stackprof/compare/v0.2.21...v0.2.25)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 23:29:17 +00:00
Andrew Brown
dfd5f4b910 Revert "Bump sidekiq from 6.5.5 to 7.0.8"
This reverts commit 88e29a0347.
2023-04-17 13:34:08 -07:00