From 8bd2ce1435546625ed76173dbbf4abe0916a0e82 Mon Sep 17 00:00:00 2001 From: Juzer Shakir Date: Tue, 30 Apr 2024 11:34:48 +0530 Subject: [PATCH 1/2] update rails version to `7.1.3.2` --- Gemfile | 2 +- Gemfile.lock | 144 +++++++++++++++++++++++++-------------------------- 2 files changed, 72 insertions(+), 74 deletions(-) diff --git a/Gemfile b/Gemfile index 27ab50a3..a297b819 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "~> 3.3.0" -gem "rails", "~> 7.1.2" +gem "rails", "~> 7.1.3" gem "active_record_union" gem "bcrypt", "~> 3.1.7" diff --git a/Gemfile.lock b/Gemfile.lock index 60aa25ba..d3503713 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,35 +1,35 @@ GEM remote: https://rubygems.org/ specs: - actioncable (7.1.3) - actionpack (= 7.1.3) - activesupport (= 7.1.3) + actioncable (7.1.3.2) + actionpack (= 7.1.3.2) + activesupport (= 7.1.3.2) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.1.3) - actionpack (= 7.1.3) - activejob (= 7.1.3) - activerecord (= 7.1.3) - activestorage (= 7.1.3) - activesupport (= 7.1.3) + 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) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.1.3) - actionpack (= 7.1.3) - actionview (= 7.1.3) - activejob (= 7.1.3) - activesupport (= 7.1.3) + 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) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp rails-dom-testing (~> 2.2) - actionpack (7.1.3) - actionview (= 7.1.3) - activesupport (= 7.1.3) + actionpack (7.1.3.2) + actionview (= 7.1.3.2) + activesupport (= 7.1.3.2) nokogiri (>= 1.8.5) racc rack (>= 2.2.4) @@ -37,37 +37,37 @@ GEM rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - actiontext (7.1.3) - actionpack (= 7.1.3) - activerecord (= 7.1.3) - activestorage (= 7.1.3) - activesupport (= 7.1.3) + 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) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.1.3) - activesupport (= 7.1.3) + actionview (7.1.3.2) + activesupport (= 7.1.3.2) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) active_record_union (1.3.0) activerecord (>= 4.0) - activejob (7.1.3) - activesupport (= 7.1.3) + activejob (7.1.3.2) + activesupport (= 7.1.3.2) globalid (>= 0.3.6) - activemodel (7.1.3) - activesupport (= 7.1.3) - activerecord (7.1.3) - activemodel (= 7.1.3) - activesupport (= 7.1.3) + 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) - actionpack (= 7.1.3) - activejob (= 7.1.3) - activerecord (= 7.1.3) - activesupport (= 7.1.3) + 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) marcel (~> 1.0) - activesupport (7.1.3) + activesupport (7.1.3.2) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) @@ -89,7 +89,7 @@ GEM erubi (~> 1.4) parser (>= 2.4) smart_properties - bigdecimal (3.1.6) + bigdecimal (3.1.7) bindex (0.8.1) bootsnap (1.15.0) msgpack (~> 1.2) @@ -117,8 +117,7 @@ GEM docile (1.4.0) dockerfile-rails (1.5.12) rails (>= 3.0.0) - drb (2.2.0) - ruby2_keywords + drb (2.2.1) erb_lint (0.4.0) activesupport better_html (>= 2.0.1) @@ -139,10 +138,10 @@ GEM globalid (1.2.1) activesupport (>= 6.1) humanize (2.5.1) - i18n (1.14.1) + i18n (1.14.4) concurrent-ruby (~> 1.0) io-console (0.7.2) - irb (1.11.1) + irb (1.12.0) rdoc reline (>= 0.4.2) jbuilder (2.11.5) @@ -161,23 +160,23 @@ GEM net-imap net-pop net-smtp - marcel (1.0.2) + marcel (1.0.4) matrix (0.4.2) mini_mime (1.1.5) - minitest (5.21.2) + minitest (5.22.3) msgpack (1.6.0) mutex_m (0.2.0) - net-imap (0.4.9.1) + net-imap (0.4.10) 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.2-x86_64-linux) + nio4r (2.7.1) + nokogiri (1.16.4-x86_64-linux) racc (~> 1.4) pagy (6.2.0) parallel (1.23.0) @@ -202,7 +201,7 @@ GEM puma (6.4.2) nio4r (~> 2.0) racc (1.7.3) - rack (3.0.8) + rack (3.0.10) rack-session (2.0.0) rack (>= 3.0.0) rack-test (2.1.0) @@ -213,20 +212,20 @@ GEM rackup (2.1.0) rack (>= 3) webrick (~> 1.8) - rails (7.1.3) - actioncable (= 7.1.3) - actionmailbox (= 7.1.3) - actionmailer (= 7.1.3) - actionpack (= 7.1.3) - actiontext (= 7.1.3) - actionview (= 7.1.3) - activejob (= 7.1.3) - activemodel (= 7.1.3) - activerecord (= 7.1.3) - activestorage (= 7.1.3) - activesupport (= 7.1.3) + 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) bundler (>= 1.15.0) - railties (= 7.1.3) + railties (= 7.1.3.2) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) @@ -241,28 +240,28 @@ GEM rails-i18n (7.0.8) i18n (>= 0.7, < 2) railties (>= 6.0.0, < 8) - railties (7.1.3) - actionpack (= 7.1.3) - activesupport (= 7.1.3) + railties (7.1.3.2) + actionpack (= 7.1.3.2) + activesupport (= 7.1.3.2) irb rackup (>= 1.0.0) rake (>= 12.2) thor (~> 1.0, >= 1.2.2) zeitwerk (~> 2.6) rainbow (3.1.1) - rake (13.1.0) + rake (13.2.1) ransack (4.1.1) activerecord (>= 6.1.5) activesupport (>= 6.1.5) i18n - rdoc (6.6.2) + rdoc (6.6.3.1) psych (>= 4.0.0) redis (5.0.8) redis-client (>= 0.17.0) redis-client (0.18.0) connection_pool regexp_parser (2.8.2) - reline (0.4.2) + reline (0.5.4) io-console (~> 0.5) rexml (3.2.6) rolify (6.0.1) @@ -311,7 +310,6 @@ GEM rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) - ruby2_keywords (0.0.5) rubyzip (2.3.2) selenium-webdriver (4.15.0) rexml (~> 3.2, >= 3.2.5) @@ -350,7 +348,7 @@ GEM stimulus-rails (1.2.1) railties (>= 6.0.0) stringio (3.1.0) - thor (1.3.0) + thor (1.3.1) timeliness (0.4.5) timeout (0.4.1) ttfunk (1.7.0) @@ -378,7 +376,7 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.6.12) + zeitwerk (2.6.13) PLATFORMS x86_64-linux @@ -407,7 +405,7 @@ DEPENDENCIES propshaft puma (~> 6.4.2) rack_session_access - rails (~> 7.1.2) + rails (~> 7.1.3) rails-controller-testing (~> 1.0.5) rails-i18n (~> 7.0.8) ransack (~> 4.1.1) @@ -435,4 +433,4 @@ RUBY VERSION ruby 3.3.0p0 BUNDLED WITH - 2.5.5 + 2.5.6 From c9493477cd281e0467cefd080d68d08514116ae4 Mon Sep 17 00:00:00 2001 From: Juzer Shakir Date: Tue, 30 Apr 2024 11:58:18 +0530 Subject: [PATCH 2/2] BUG FIX: revert column name --- db/migrate/20221217105012_create_transactions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20221217105012_create_transactions.rb b/db/migrate/20221217105012_create_transactions.rb index a27f9e13..e1cf9037 100644 --- a/db/migrate/20221217105012_create_transactions.rb +++ b/db/migrate/20221217105012_create_transactions.rb @@ -2,7 +2,7 @@ class CreateTransactions < ActiveRecord::Migration[7.0] def change create_table :transactions do |t| t.references :thaali, null: false, foreign_key: true - t.integer :receipt_number, null: false, index: {unique: true} + t.integer :recipe_no, null: false, index: {unique: true} t.integer :mode, null: false t.integer :amount, null: false t.date :date, null: false