Skip to content

Commit

Permalink
Upgrade administrate and get rid of a tailwind related hack
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Aug 2, 2024
1 parent b2e38d5 commit dc287da
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 2,834 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ gem "dalli"
gem "rack-attack"

# Admin interface
gem "administrate", "~> 0.20.0"
gem "administrate", "~> 1.0.0.beta"

gem "sprockets-rails"

# Logging in and such things
gem "devise", "~> 4.2" # Pin to a particular major version to get deprecation warnings
Expand Down
22 changes: 3 additions & 19 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,11 @@ GEM
tzinfo (~> 2.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
administrate (0.20.1)
administrate (1.0.0.beta1)
actionpack (>= 6.0, < 8.0)
actionview (>= 6.0, < 8.0)
activerecord (>= 6.0, < 8.0)
jquery-rails (~> 4.6.0)
kaminari (~> 1.2.2)
sassc-rails (~> 2.1)
selectize-rails (~> 0.6)
airbrussh (1.5.2)
sshkit (>= 1.6.1, != 1.7.0)
ast (2.4.2)
Expand Down Expand Up @@ -327,10 +324,6 @@ GEM
reline (>= 0.4.2)
jb (0.8.2)
jmespath (1.6.2)
jquery-rails (4.6.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.7.2)
kaminari (1.2.2)
activesupport (>= 4.1.0)
Expand Down Expand Up @@ -600,21 +593,12 @@ GEM
sanitize (6.1.2)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
sassc (2.4.0)
ffi (~> 1.9)
sassc-rails (2.1.2)
railties (>= 4.0.0)
sassc (>= 2.0)
sprockets (> 3.0)
sprockets-rails
tilt
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
searchkick (5.3.1)
activemodel (>= 6.1)
hashie
selectize-rails (0.12.6)
selenium-webdriver (4.10.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
Expand Down Expand Up @@ -695,7 +679,6 @@ GEM
execjs (>= 0.3.0, < 3)
thor (1.3.1)
thread_safe (0.3.6)
tilt (2.4.0)
timecop (0.9.10)
timeout (0.4.1)
tzinfo (2.0.6)
Expand Down Expand Up @@ -758,7 +741,7 @@ PLATFORMS
DEPENDENCIES
active_record_doctor
activerecord-postgis-adapter
administrate (~> 0.20.0)
administrate (~> 1.0.0.beta)
autoprefixer-rails
aws-sdk-s3
axe-core-capybara
Expand Down Expand Up @@ -849,6 +832,7 @@ DEPENDENCIES
sparql-client
spoom
sprockets
sprockets-rails
tailwindcss-rails (~> 2.0)
tapioca
terser
Expand Down
16 changes: 0 additions & 16 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

# TODO: Remove this as soon as we can remove sassc-rails
# Currently administrate depends on it
class SkippingSassCompressor
def compress(string)
options = { syntax: :scss, cache: false, read_cache: false, style: :compressed}
begin
SassC::Engine.new(string, options).render
rescue => e
puts "Could not compress '#{string[0..65]}'...: #{e.message}, skipping compression"
string
end
end
end

module PlanningalertsApp
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
Expand Down Expand Up @@ -51,8 +37,6 @@ class Application < Rails::Application

config.exceptions_app = routes

config.assets.css_compressor = SkippingSassCompressor.new

# Application configuration
# These are things that are nice to have as configurations but unlikely really
# in practise to change much
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 0 additions & 35 deletions sorbet/rbi/gems/[email protected]

This file was deleted.

Loading

0 comments on commit dc287da

Please sign in to comment.