diff --git a/Gemfile b/Gemfile index 113c3da..86b6a54 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "3.1.6" -gem "rails" +gem "rails", "7.0.8.6" gem "sinatra" diff --git a/Gemfile.lock b/Gemfile.lock index ceb8fe1..7da0472 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,95 +1,84 @@ GEM remote: https://rubygems.org/ specs: - actioncable (7.1.3.2) - actionpack (= 7.1.3.2) - activesupport (= 7.1.3.2) + actioncable (7.0.8.6) + actionpack (= 7.0.8.6) + activesupport (= 7.0.8.6) 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.0.8.6) + actionpack (= 7.0.8.6) + activejob (= 7.0.8.6) + activerecord (= 7.0.8.6) + activestorage (= 7.0.8.6) + activesupport (= 7.0.8.6) 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.0.8.6) + actionpack (= 7.0.8.6) + actionview (= 7.0.8.6) + activejob (= 7.0.8.6) + activesupport (= 7.0.8.6) 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) - nokogiri (>= 1.8.5) - racc - rack (>= 2.2.4) - rack-session (>= 1.0.1) + rails-dom-testing (~> 2.0) + actionpack (7.0.8.6) + actionview (= 7.0.8.6) + activesupport (= 7.0.8.6) + rack (~> 2.0, >= 2.2.4) 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) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (7.0.8.6) + actionpack (= 7.0.8.6) + activerecord (= 7.0.8.6) + activestorage (= 7.0.8.6) + activesupport (= 7.0.8.6) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.1.3.2) - activesupport (= 7.1.3.2) + actionview (7.0.8.6) + activesupport (= 7.0.8.6) builder (~> 3.1) - erubi (~> 1.11) - rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) - activejob (7.1.3.2) - activesupport (= 7.1.3.2) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activejob (7.0.8.6) + activesupport (= 7.0.8.6) 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) - 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) + activemodel (7.0.8.6) + activesupport (= 7.0.8.6) + activerecord (7.0.8.6) + activemodel (= 7.0.8.6) + activesupport (= 7.0.8.6) + activestorage (7.0.8.6) + actionpack (= 7.0.8.6) + activejob (= 7.0.8.6) + activerecord (= 7.0.8.6) + activesupport (= 7.0.8.6) marcel (~> 1.0) - activesupport (7.1.3.2) - base64 - bigdecimal + mini_mime (>= 1.1.0) + activesupport (7.0.8.6) concurrent-ruby (~> 1.0, >= 1.0.2) - connection_pool (>= 2.2.5) - drb i18n (>= 1.6, < 2) minitest (>= 5.1) - mutex_m tzinfo (~> 2.0) base64 (0.2.0) - bigdecimal (3.1.7) builder (3.2.4) byebug (11.1.3) coderay (1.1.3) concurrent-ruby (1.2.3) connection_pool (2.4.1) crass (1.0.6) - database_cleaner-active_record (2.1.0) + database_cleaner-active_record (2.2.0) activerecord (>= 5.a) database_cleaner-core (~> 2.0.0) database_cleaner-core (2.0.1) - date (3.3.4) + date (3.4.1) diff-lcs (1.5.1) - drb (2.2.1) erubi (1.12.0) factory_bot (6.4.6) activesupport (>= 5.0.0) @@ -100,10 +89,6 @@ GEM activesupport (>= 6.1) i18n (1.14.4) concurrent-ruby (~> 1.0) - io-console (0.7.2) - irb (1.12.0) - rdoc - reline (>= 0.4.2) loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -117,10 +102,9 @@ GEM mini_mime (1.1.5) mini_portile2 (2.8.5) minitest (5.22.3) - mustermann (3.0.0) + mustermann (3.0.3) ruby2_keywords (~> 0.0.1) - mutex_m (0.2.0) - net-imap (0.4.10) + net-imap (0.5.1) date net-protocol net-pop (0.1.2) @@ -142,36 +126,29 @@ GEM pry-byebug (3.10.1) byebug (~> 11.0) pry (>= 0.13, < 0.15) - psych (5.1.2) - stringio puma (6.4.2) nio4r (~> 2.0) racc (1.7.3) - rack (3.0.10) - rack-protection (4.0.0) + rack (2.2.10) + rack-protection (3.2.0) base64 (>= 0.1.0) - rack (>= 3.0.0, < 4) - rack-session (2.0.0) - rack (>= 3.0.0) + rack (~> 2.2, >= 2.2.4) rack-test (2.1.0) rack (>= 1.3) - rackup (2.1.0) - rack (>= 3) - webrick (~> 1.8) - 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.0.8.6) + actioncable (= 7.0.8.6) + actionmailbox (= 7.0.8.6) + actionmailer (= 7.0.8.6) + actionpack (= 7.0.8.6) + actiontext (= 7.0.8.6) + actionview (= 7.0.8.6) + activejob (= 7.0.8.6) + activemodel (= 7.0.8.6) + activerecord (= 7.0.8.6) + activestorage (= 7.0.8.6) + activesupport (= 7.0.8.6) bundler (>= 1.15.0) - railties (= 7.1.3.2) + railties (= 7.0.8.6) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest @@ -179,21 +156,16 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - railties (7.1.3.2) - actionpack (= 7.1.3.2) - activesupport (= 7.1.3.2) - irb - rackup (>= 1.0.0) + railties (7.0.8.6) + actionpack (= 7.0.8.6) + activesupport (= 7.0.8.6) + method_source rake (>= 12.2) - thor (~> 1.0, >= 1.2.2) - zeitwerk (~> 2.6) + thor (~> 1.0) + zeitwerk (~> 2.5) rake (13.2.1) - rdoc (6.6.3.1) - psych (>= 4.0.0) redis-client (0.22.0) connection_pool - reline (0.5.1) - io-console (~> 0.5) rspec-core (3.13.0) rspec-support (~> 3.13.0) rspec-expectations (3.13.0) @@ -202,34 +174,31 @@ GEM rspec-mocks (3.13.0) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-rails (6.1.2) - actionpack (>= 6.1) - activesupport (>= 6.1) - railties (>= 6.1) + rspec-rails (7.1.0) + actionpack (>= 7.0) + activesupport (>= 7.0) + railties (>= 7.0) rspec-core (~> 3.13) rspec-expectations (~> 3.13) rspec-mocks (~> 3.13) rspec-support (~> 3.13) rspec-support (3.13.1) ruby2_keywords (0.0.5) - sidekiq (7.2.2) + sidekiq (7.2.4) concurrent-ruby (< 2) connection_pool (>= 2.3.0) rack (>= 2.2.4) redis-client (>= 0.19.0) - sinatra (4.0.0) + sinatra (3.2.0) mustermann (~> 3.0) - rack (>= 3.0.0, < 4) - rack-protection (= 4.0.0) - rack-session (>= 2.0.0, < 3) + rack (~> 2.2, >= 2.2.4) + rack-protection (= 3.2.0) tilt (~> 2.0) - stringio (3.1.0) thor (1.3.1) - tilt (2.3.0) + tilt (2.4.0) timeout (0.4.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - webrick (1.8.1) websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) @@ -246,7 +215,7 @@ DEPENDENCIES pg pry-byebug puma - rails + rails (= 7.0.8.6) rspec-rails sidekiq sinatra diff --git a/db/migrate/20240413100944_create_accountify_organisations.rb b/db/migrate/20240413100944_create_accountify_organisations.rb index f007463..da21a1e 100644 --- a/db/migrate/20240413100944_create_accountify_organisations.rb +++ b/db/migrate/20240413100944_create_accountify_organisations.rb @@ -1,4 +1,4 @@ -class CreateAccountifyOrganisations < ActiveRecord::Migration[7.1] +class CreateAccountifyOrganisations < ActiveRecord::Migration[7.0] def change create_table :accountify_organisations do |t| t.bigint :tenant_id, null: false diff --git a/db/migrate/20240527212747_create_accountify_contacts.rb b/db/migrate/20240527212747_create_accountify_contacts.rb index 0564a51..a96c3fb 100644 --- a/db/migrate/20240527212747_create_accountify_contacts.rb +++ b/db/migrate/20240527212747_create_accountify_contacts.rb @@ -1,4 +1,4 @@ -class CreateAccountifyContacts < ActiveRecord::Migration[7.1] +class CreateAccountifyContacts < ActiveRecord::Migration[7.0] def change create_table :accountify_contacts do |t| t.bigint :tenant_id, null: false, index: true diff --git a/db/migrate/20240529212144_create_accountify_invoices.rb b/db/migrate/20240529212144_create_accountify_invoices.rb index ea435c5..c66e5e0 100644 --- a/db/migrate/20240529212144_create_accountify_invoices.rb +++ b/db/migrate/20240529212144_create_accountify_invoices.rb @@ -1,4 +1,4 @@ -class CreateAccountifyInvoices < ActiveRecord::Migration[7.1] +class CreateAccountifyInvoices < ActiveRecord::Migration[7.0] def change create_table :accountify_invoices do |t| t.bigint :tenant_id, null: false, index: true diff --git a/db/migrate/20240530211442_create_accountify_invoice_line_items.rb b/db/migrate/20240530211442_create_accountify_invoice_line_items.rb index 02d29d7..9f79a4a 100644 --- a/db/migrate/20240530211442_create_accountify_invoice_line_items.rb +++ b/db/migrate/20240530211442_create_accountify_invoice_line_items.rb @@ -1,4 +1,4 @@ -class CreateAccountifyInvoiceLineItems < ActiveRecord::Migration[7.1] +class CreateAccountifyInvoiceLineItems < ActiveRecord::Migration[7.0] def change create_table :accountify_invoice_line_items do |t| t.references :invoice, diff --git a/db/migrate/20240706053510_create_accountify_invoice_status_summary.rb b/db/migrate/20240706053510_create_accountify_invoice_status_summary.rb index bb3c346..593265b 100644 --- a/db/migrate/20240706053510_create_accountify_invoice_status_summary.rb +++ b/db/migrate/20240706053510_create_accountify_invoice_status_summary.rb @@ -1,4 +1,4 @@ -class CreateAccountifyInvoiceStatusSummary < ActiveRecord::Migration[7.1] +class CreateAccountifyInvoiceStatusSummary < ActiveRecord::Migration[7.0] def change create_table :accountify_invoice_status_summaries do |t| t.bigint :tenant_id, null: false diff --git a/db/schema.rb b/db/schema.rb index 3f510cc..4c88e5a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_07_06_053510) do +ActiveRecord::Schema[7.0].define(version: 2024_07_06_053510) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index b4db3ac..2e59ddb 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -19,7 +19,7 @@ end RSpec.configure do |config| - config.fixture_paths = [Rails.root.join('spec/fixtures')] + config.fixture_path = Rails.root.join('spec/fixtures') config.use_transactional_fixtures = false