Skip to content

Commit 9f555b4

Browse files
authored
Merge pull request #43 from JuzerShakir/security-fix
Security & Typo Fixes
2 parents d3665f3 + c949347 commit 9f555b4

File tree

3 files changed

+73
-75
lines changed

3 files changed

+73
-75
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

44
ruby "~> 3.3.0"
55

6-
gem "rails", "~> 7.1.2"
6+
gem "rails", "~> 7.1.3"
77

88
gem "active_record_union"
99
gem "bcrypt", "~> 3.1.7"

Gemfile.lock

Lines changed: 71 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (7.1.3)
5-
actionpack (= 7.1.3)
6-
activesupport (= 7.1.3)
4+
actioncable (7.1.3.2)
5+
actionpack (= 7.1.3.2)
6+
activesupport (= 7.1.3.2)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
99
zeitwerk (~> 2.6)
10-
actionmailbox (7.1.3)
11-
actionpack (= 7.1.3)
12-
activejob (= 7.1.3)
13-
activerecord (= 7.1.3)
14-
activestorage (= 7.1.3)
15-
activesupport (= 7.1.3)
10+
actionmailbox (7.1.3.2)
11+
actionpack (= 7.1.3.2)
12+
activejob (= 7.1.3.2)
13+
activerecord (= 7.1.3.2)
14+
activestorage (= 7.1.3.2)
15+
activesupport (= 7.1.3.2)
1616
mail (>= 2.7.1)
1717
net-imap
1818
net-pop
1919
net-smtp
20-
actionmailer (7.1.3)
21-
actionpack (= 7.1.3)
22-
actionview (= 7.1.3)
23-
activejob (= 7.1.3)
24-
activesupport (= 7.1.3)
20+
actionmailer (7.1.3.2)
21+
actionpack (= 7.1.3.2)
22+
actionview (= 7.1.3.2)
23+
activejob (= 7.1.3.2)
24+
activesupport (= 7.1.3.2)
2525
mail (~> 2.5, >= 2.5.4)
2626
net-imap
2727
net-pop
2828
net-smtp
2929
rails-dom-testing (~> 2.2)
30-
actionpack (7.1.3)
31-
actionview (= 7.1.3)
32-
activesupport (= 7.1.3)
30+
actionpack (7.1.3.2)
31+
actionview (= 7.1.3.2)
32+
activesupport (= 7.1.3.2)
3333
nokogiri (>= 1.8.5)
3434
racc
3535
rack (>= 2.2.4)
3636
rack-session (>= 1.0.1)
3737
rack-test (>= 0.6.3)
3838
rails-dom-testing (~> 2.2)
3939
rails-html-sanitizer (~> 1.6)
40-
actiontext (7.1.3)
41-
actionpack (= 7.1.3)
42-
activerecord (= 7.1.3)
43-
activestorage (= 7.1.3)
44-
activesupport (= 7.1.3)
40+
actiontext (7.1.3.2)
41+
actionpack (= 7.1.3.2)
42+
activerecord (= 7.1.3.2)
43+
activestorage (= 7.1.3.2)
44+
activesupport (= 7.1.3.2)
4545
globalid (>= 0.6.0)
4646
nokogiri (>= 1.8.5)
47-
actionview (7.1.3)
48-
activesupport (= 7.1.3)
47+
actionview (7.1.3.2)
48+
activesupport (= 7.1.3.2)
4949
builder (~> 3.1)
5050
erubi (~> 1.11)
5151
rails-dom-testing (~> 2.2)
5252
rails-html-sanitizer (~> 1.6)
5353
active_record_union (1.3.0)
5454
activerecord (>= 4.0)
55-
activejob (7.1.3)
56-
activesupport (= 7.1.3)
55+
activejob (7.1.3.2)
56+
activesupport (= 7.1.3.2)
5757
globalid (>= 0.3.6)
58-
activemodel (7.1.3)
59-
activesupport (= 7.1.3)
60-
activerecord (7.1.3)
61-
activemodel (= 7.1.3)
62-
activesupport (= 7.1.3)
58+
activemodel (7.1.3.2)
59+
activesupport (= 7.1.3.2)
60+
activerecord (7.1.3.2)
61+
activemodel (= 7.1.3.2)
62+
activesupport (= 7.1.3.2)
6363
timeout (>= 0.4.0)
64-
activestorage (7.1.3)
65-
actionpack (= 7.1.3)
66-
activejob (= 7.1.3)
67-
activerecord (= 7.1.3)
68-
activesupport (= 7.1.3)
64+
activestorage (7.1.3.2)
65+
actionpack (= 7.1.3.2)
66+
activejob (= 7.1.3.2)
67+
activerecord (= 7.1.3.2)
68+
activesupport (= 7.1.3.2)
6969
marcel (~> 1.0)
70-
activesupport (7.1.3)
70+
activesupport (7.1.3.2)
7171
base64
7272
bigdecimal
7373
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -89,7 +89,7 @@ GEM
8989
erubi (~> 1.4)
9090
parser (>= 2.4)
9191
smart_properties
92-
bigdecimal (3.1.6)
92+
bigdecimal (3.1.7)
9393
bindex (0.8.1)
9494
bootsnap (1.15.0)
9595
msgpack (~> 1.2)
@@ -117,8 +117,7 @@ GEM
117117
docile (1.4.0)
118118
dockerfile-rails (1.5.12)
119119
rails (>= 3.0.0)
120-
drb (2.2.0)
121-
ruby2_keywords
120+
drb (2.2.1)
122121
erb_lint (0.4.0)
123122
activesupport
124123
better_html (>= 2.0.1)
@@ -139,10 +138,10 @@ GEM
139138
globalid (1.2.1)
140139
activesupport (>= 6.1)
141140
humanize (2.5.1)
142-
i18n (1.14.1)
141+
i18n (1.14.4)
143142
concurrent-ruby (~> 1.0)
144143
io-console (0.7.2)
145-
irb (1.11.1)
144+
irb (1.12.0)
146145
rdoc
147146
reline (>= 0.4.2)
148147
jbuilder (2.11.5)
@@ -161,23 +160,23 @@ GEM
161160
net-imap
162161
net-pop
163162
net-smtp
164-
marcel (1.0.2)
163+
marcel (1.0.4)
165164
matrix (0.4.2)
166165
mini_mime (1.1.5)
167-
minitest (5.21.2)
166+
minitest (5.22.3)
168167
msgpack (1.6.0)
169168
mutex_m (0.2.0)
170-
net-imap (0.4.9.1)
169+
net-imap (0.4.10)
171170
date
172171
net-protocol
173172
net-pop (0.1.2)
174173
net-protocol
175174
net-protocol (0.2.2)
176175
timeout
177-
net-smtp (0.4.0.1)
176+
net-smtp (0.5.0)
178177
net-protocol
179-
nio4r (2.7.0)
180-
nokogiri (1.16.2-x86_64-linux)
178+
nio4r (2.7.1)
179+
nokogiri (1.16.4-x86_64-linux)
181180
racc (~> 1.4)
182181
pagy (6.2.0)
183182
parallel (1.23.0)
@@ -202,7 +201,7 @@ GEM
202201
puma (6.4.2)
203202
nio4r (~> 2.0)
204203
racc (1.7.3)
205-
rack (3.0.8)
204+
rack (3.0.10)
206205
rack-session (2.0.0)
207206
rack (>= 3.0.0)
208207
rack-test (2.1.0)
@@ -213,20 +212,20 @@ GEM
213212
rackup (2.1.0)
214213
rack (>= 3)
215214
webrick (~> 1.8)
216-
rails (7.1.3)
217-
actioncable (= 7.1.3)
218-
actionmailbox (= 7.1.3)
219-
actionmailer (= 7.1.3)
220-
actionpack (= 7.1.3)
221-
actiontext (= 7.1.3)
222-
actionview (= 7.1.3)
223-
activejob (= 7.1.3)
224-
activemodel (= 7.1.3)
225-
activerecord (= 7.1.3)
226-
activestorage (= 7.1.3)
227-
activesupport (= 7.1.3)
215+
rails (7.1.3.2)
216+
actioncable (= 7.1.3.2)
217+
actionmailbox (= 7.1.3.2)
218+
actionmailer (= 7.1.3.2)
219+
actionpack (= 7.1.3.2)
220+
actiontext (= 7.1.3.2)
221+
actionview (= 7.1.3.2)
222+
activejob (= 7.1.3.2)
223+
activemodel (= 7.1.3.2)
224+
activerecord (= 7.1.3.2)
225+
activestorage (= 7.1.3.2)
226+
activesupport (= 7.1.3.2)
228227
bundler (>= 1.15.0)
229-
railties (= 7.1.3)
228+
railties (= 7.1.3.2)
230229
rails-controller-testing (1.0.5)
231230
actionpack (>= 5.0.1.rc1)
232231
actionview (>= 5.0.1.rc1)
@@ -241,28 +240,28 @@ GEM
241240
rails-i18n (7.0.8)
242241
i18n (>= 0.7, < 2)
243242
railties (>= 6.0.0, < 8)
244-
railties (7.1.3)
245-
actionpack (= 7.1.3)
246-
activesupport (= 7.1.3)
243+
railties (7.1.3.2)
244+
actionpack (= 7.1.3.2)
245+
activesupport (= 7.1.3.2)
247246
irb
248247
rackup (>= 1.0.0)
249248
rake (>= 12.2)
250249
thor (~> 1.0, >= 1.2.2)
251250
zeitwerk (~> 2.6)
252251
rainbow (3.1.1)
253-
rake (13.1.0)
252+
rake (13.2.1)
254253
ransack (4.1.1)
255254
activerecord (>= 6.1.5)
256255
activesupport (>= 6.1.5)
257256
i18n
258-
rdoc (6.6.2)
257+
rdoc (6.6.3.1)
259258
psych (>= 4.0.0)
260259
redis (5.0.8)
261260
redis-client (>= 0.17.0)
262261
redis-client (0.18.0)
263262
connection_pool
264263
regexp_parser (2.8.2)
265-
reline (0.4.2)
264+
reline (0.5.4)
266265
io-console (~> 0.5)
267266
rexml (3.2.6)
268267
rolify (6.0.1)
@@ -311,7 +310,6 @@ GEM
311310
rubocop-capybara (~> 2.17)
312311
rubocop-factory_bot (~> 2.22)
313312
ruby-progressbar (1.13.0)
314-
ruby2_keywords (0.0.5)
315313
rubyzip (2.3.2)
316314
selenium-webdriver (4.15.0)
317315
rexml (~> 3.2, >= 3.2.5)
@@ -350,7 +348,7 @@ GEM
350348
stimulus-rails (1.2.1)
351349
railties (>= 6.0.0)
352350
stringio (3.1.0)
353-
thor (1.3.0)
351+
thor (1.3.1)
354352
timeliness (0.4.5)
355353
timeout (0.4.1)
356354
ttfunk (1.7.0)
@@ -378,7 +376,7 @@ GEM
378376
websocket-extensions (0.1.5)
379377
xpath (3.2.0)
380378
nokogiri (~> 1.8)
381-
zeitwerk (2.6.12)
379+
zeitwerk (2.6.13)
382380

383381
PLATFORMS
384382
x86_64-linux
@@ -407,7 +405,7 @@ DEPENDENCIES
407405
propshaft
408406
puma (~> 6.4.2)
409407
rack_session_access
410-
rails (~> 7.1.2)
408+
rails (~> 7.1.3)
411409
rails-controller-testing (~> 1.0.5)
412410
rails-i18n (~> 7.0.8)
413411
ransack (~> 4.1.1)
@@ -435,4 +433,4 @@ RUBY VERSION
435433
ruby 3.3.0p0
436434

437435
BUNDLED WITH
438-
2.5.5
436+
2.5.6

db/migrate/20221217105012_create_transactions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class CreateTransactions < ActiveRecord::Migration[7.0]
22
def change
33
create_table :transactions do |t|
44
t.references :thaali, null: false, foreign_key: true
5-
t.integer :receipt_number, null: false, index: {unique: true}
5+
t.integer :recipe_no, null: false, index: {unique: true}
66
t.integer :mode, null: false
77
t.integer :amount, null: false
88
t.date :date, null: false

0 commit comments

Comments
 (0)