Skip to content

Commit 62c4009

Browse files
authored
Clean up Gemfile and remove unused gems (#5033)
1 parent 5b32c90 commit 62c4009

3 files changed

Lines changed: 2 additions & 34 deletions

File tree

Gemfile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ gem "rails", "7.2.2"
2323
gem 'azure-storage-blob'
2424
# Adds soft delete functionality for models.
2525
gem 'discard', '~> 1.3'
26-
# Adds grouping by date/month/etc to queries.
27-
gem "groupdate", "~> 6.5"
2826
# Treats attributes like money, which knows about dollars and cents.
2927
gem "money-rails"
3028
# Tracks history / audits models.
@@ -52,6 +50,8 @@ gem "recaptcha"
5250
gem "turbo-rails"
5351
# Sprinkle a little JS to add interactivity
5452
gem "stimulus-rails"
53+
# Use JS import maps to manage JS without transpiling or bundling.
54+
gem "importmap-rails", "~> 2.1"
5555

5656
##### VIEWS/CONTROLLERS #####
5757

@@ -67,8 +67,6 @@ gem "omniauth"
6767
gem "omniauth-rails_csrf_protection"
6868
# Allow login via Google.
6969
gem "omniauth-google-oauth2"
70-
71-
gem "matrix"
7270
# Generate PDFs as views.
7371
gem "prawn-rails"
7472
# Reduces boilerplate HTML code when writing forms.
@@ -92,8 +90,6 @@ gem "flipper-active_record"
9290
gem "flipper-ui"
9391
# Calculates latitude and longitude from an address.
9492
gem "geocoder"
95-
# Enable making HTTP requests
96-
gem 'httparty'
9793
# Generate .ics calendars for use with Google Calendar
9894
gem 'icalendar', require: false
9995
# JSON Web Token encoding / decoding (e.g. for links in e-mails)
@@ -110,7 +106,6 @@ gem 'bootsnap', require: false
110106
# Technically they don't need to be in this Gemfile at all, but we are pinning them to
111107
# specific versions for compatibility reasons.
112108
gem "nokogiri", ">= 1.10.4"
113-
gem "image_processing"
114109
gem "sprockets", "~> 4.2.1"
115110

116111
group :production, :staging do
@@ -220,5 +215,3 @@ end
220215
if %w(mingw mswin x64_mingw jruby).include?(RUBY_PLATFORM)
221216
gem "tzinfo-data", "~> 1.2", platforms: %i(mingw mswin x64_mingw jruby)
222217
end
223-
224-
gem "importmap-rails", "~> 2.1"

Gemfile.lock

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ GEM
277277
csv (>= 3.0.0)
278278
globalid (1.2.1)
279279
activesupport (>= 6.1)
280-
groupdate (6.5.1)
281-
activesupport (>= 7)
282280
guard (2.18.0)
283281
formatador (>= 0.2.4)
284282
listen (>= 2.7, < 4.0)
@@ -296,20 +294,13 @@ GEM
296294
hashdiff (1.1.1)
297295
hashery (2.1.2)
298296
hashie (5.0.0)
299-
httparty (0.22.0)
300-
csv
301-
mini_mime (>= 1.0.0)
302-
multi_xml (>= 0.5.2)
303297
i18n (1.14.7)
304298
concurrent-ruby (~> 1.0)
305299
icalendar (2.10.3)
306300
ice_cube (~> 0.16)
307301
ostruct
308302
ice_cube (0.17.0)
309303
ice_nine (0.11.2)
310-
image_processing (1.13.0)
311-
mini_magick (>= 4.9.5, < 5)
312-
ruby-vips (>= 2.0.17, < 3)
313304
importmap-rails (2.1.0)
314305
actionpack (>= 6.0.0)
315306
activesupport (>= 6.0.0)
@@ -372,7 +363,6 @@ GEM
372363
matrix (0.4.2)
373364
memory_profiler (1.1.0)
374365
method_source (1.1.0)
375-
mini_magick (4.13.2)
376366
mini_mime (1.1.5)
377367
mini_portile2 (2.8.8)
378368
minitest (5.25.4)
@@ -608,9 +598,6 @@ GEM
608598
rexml
609599
ruby-progressbar (1.13.0)
610600
ruby-rc4 (0.1.5)
611-
ruby-vips (2.2.2)
612-
ffi (~> 1.12)
613-
logger
614601
ruby2_keywords (0.0.5)
615602
sanitize (6.1.3)
616603
crass (~> 1.0.2)
@@ -764,11 +751,8 @@ DEPENDENCIES
764751
flipper-ui
765752
foreman
766753
geocoder
767-
groupdate (~> 6.5)
768754
guard-rspec
769-
httparty
770755
icalendar
771-
image_processing
772756
importmap-rails (~> 2.1)
773757
jbuilder
774758
jwt
@@ -778,7 +762,6 @@ DEPENDENCIES
778762
listen (~> 3.9.0)
779763
lograge
780764
magic_test
781-
matrix
782765
memory_profiler
783766
money-rails
784767
newrelic_rpm

app/models/donation.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,6 @@ def source_view
9292
product_drive_participant&.donation_source_view || product_drive.donation_source_view
9393
end
9494

95-
def self.daily_quantities_by_source(start, stop)
96-
joins(:line_items).includes(:line_items)
97-
.between(start, stop)
98-
.group(:source)
99-
.group_by_day("donations.created_at")
100-
.sum("line_items.quantity")
101-
end
102-
10395
def details
10496
case source
10597
when SOURCES[:product_drive]

0 commit comments

Comments
 (0)