Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.6
3.4.1
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "~> 3.3.6"
ruby "~> 3.4.1"

gem "rails", "~> 8.0.1"

Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ GEM
railties (>= 5.0.0)
faker (3.5.1)
i18n (>= 1.8.11, < 2)
ffi (1.17.0-x86_64-linux-gnu)
ffi (1.17.0)
friendly_id (5.5.1)
activerecord (>= 4.0.0)
globalid (1.2.1)
Expand Down Expand Up @@ -456,7 +456,7 @@ DEPENDENCIES
web-console

RUBY VERSION
ruby 3.3.6p108
ruby 3.4.1p0

BUNDLED WITH
2.5.23
2.6.2
4 changes: 2 additions & 2 deletions app/controllers/statistics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def sabeels
@apts[apartment].store(:active_thaalis, active_thaalis.length)
@apts[apartment].store(:total_sabeels, total_sabeels.length)
@apts[apartment].store(:inactive_thaalis, inactive.length)
Thaali::SIZES.each { @apts[apartment].store(_1, active_thaalis.with_thaali_size(_1).length) }
Thaali::SIZES.each { @apts[apartment].store(it, active_thaalis.with_thaali_size(it).length) }
end
end

Expand All @@ -30,7 +30,7 @@ def thaalis
@years[y].store(:count, thaalis.count)
@years[y].store(:pending, Thaali.dues_unpaid_for(y).length)
@years[y].store(:complete, Thaali.dues_cleared_in(y).length)
Thaali::SIZES.each { @years[y].store(_1, thaalis.send(_1).count) }
Thaali::SIZES.each { @years[y].store(it, thaalis.send(it).count) }
end
end
end
2 changes: 1 addition & 1 deletion app/models/concerns/array_extensions.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ArrayExtensions
refine Array do
def to_h_titleize_value = to_h { [_1, _1.to_s.titleize] }
def to_h_titleize_value = to_h { [it, it.to_s.titleize] }
end
end
2 changes: 1 addition & 1 deletion app/models/concerns/has_friendly_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ module HasFriendlyId

def slug_candidates = sluggables.join("-")

def should_generate_new_friendly_id? = sluggables.each { attribute_changed? _1 }
def should_generate_new_friendly_id? = sluggables.each { attribute_changed? it }
end
end
2 changes: 1 addition & 1 deletion app/models/thaali.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ def balance = total - paid

def dues_cleared? = balance.zero?

def paid = transactions.filter_map { _1.amount if _1.persisted? }.sum(0)
def paid = transactions.filter_map { it.amount if it.persisted? }.sum(0)
end
2 changes: 1 addition & 1 deletion app/views/users/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%# locals: (roles: Role.all.map { [_1.name.capitalize, _1.id] }) %>
<%# locals: (roles: Role.all.map { [it.name.capitalize, it.id] }) %>

<% content_for :title, "New User" %>

Expand Down
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
# *CREATES TOTAL Thaalis --> 175 (90 + 85)
# *CREATES TOTAL Transactions --> ~1.1k

Role::NAMES.each { Role.create(name: _1) }
Role::NAMES.each { Role.create(name: it) }

User.create(
its: 12345678,
Expand Down