From e3f0242ac4e42c4de712fa50bb22ef426acf9516 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 31 Mar 2021 23:43:55 -0700 Subject: [PATCH 1/2] remove all the pdf stuff --- Gemfile | 9 --------- Gemfile.lock | 7 ------- config/initializers/wicked_pdf.rb | 27 --------------------------- 3 files changed, 43 deletions(-) delete mode 100644 config/initializers/wicked_pdf.rb diff --git a/Gemfile b/Gemfile index 1e6286c2..3bd5b822 100644 --- a/Gemfile +++ b/Gemfile @@ -73,7 +73,6 @@ gem 'barnes' # Apps #gem 'easy_translate' #gem 'levenshtein-ffi' -gem 'wicked_pdf' # Feature rollout gem 'flipper' @@ -158,11 +157,3 @@ group :worker do gem 'ibm_watson' gem 'textstat' end - -# PDF handling -group :production do - gem 'wkhtmltopdf-heroku' -end -group :development do - gem 'wkhtmltopdf-binary-edge' -end \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 8436c498..3c2105c3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1688,10 +1688,6 @@ GEM websocket-driver (0.7.3) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) - wicked_pdf (2.1.0) - activesupport - wkhtmltopdf-binary-edge (0.12.6.0) - wkhtmltopdf-heroku (2.12.6.0) xpath (3.2.0) nokogiri (~> 1.8) zeitwerk (2.4.2) @@ -1788,9 +1784,6 @@ DEPENDENCIES web-console webmock webpacker - wicked_pdf - wkhtmltopdf-binary-edge - wkhtmltopdf-heroku RUBY VERSION ruby 2.7.2p137 diff --git a/config/initializers/wicked_pdf.rb b/config/initializers/wicked_pdf.rb deleted file mode 100644 index 262cdcfa..00000000 --- a/config/initializers/wicked_pdf.rb +++ /dev/null @@ -1,27 +0,0 @@ -# WickedPDF Global Configuration -# -# Use this to set up shared configuration options for your entire application. -# Any of the configuration options shown here can also be applied to single -# models by passing arguments to the `render :pdf` call. -# -# To learn more, check out the README: -# -# https://github.com/mileszs/wicked_pdf/blob/master/README.md - -WickedPdf.config = { - # Path to the wkhtmltopdf executable: This usually isn't needed if using - # one of the wkhtmltopdf-binary family of gems. - # exe_path: '/usr/local/bin/wkhtmltopdf', - # or - # exe_path: Gem.bin_path('wkhtmltopdf-binary', 'wkhtmltopdf') - - # Layout file to be used for all PDFs - # (but can be overridden in `render :pdf` calls) - # layout: 'pdf.html', - - # Using wkhtmltopdf without an X server can be achieved by enabling the - # 'use_xvfb' flag. This will wrap all wkhtmltopdf commands around the - # 'xvfb-run' command, in order to simulate an X server. - # - # use_xvfb: true, -} From 0c58c5978bec59695d578a1ae6976c20ccff45c5 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 1 Apr 2021 00:21:12 -0700 Subject: [PATCH 2/2] IT IS TIME FOR APRIL --- app/services/forum_replacement_service.rb | 106 +++++++++++----------- 1 file changed, 54 insertions(+), 52 deletions(-) diff --git a/app/services/forum_replacement_service.rb b/app/services/forum_replacement_service.rb index 4ac28643..c8aa1b53 100644 --- a/app/services/forum_replacement_service.rb +++ b/app/services/forum_replacement_service.rb @@ -74,8 +74,7 @@ class ForumReplacementService < Service 'cats' => 'feline whiskerdoodles', 'cereal' => 'pip pip gollywock', 'chaos' => 'extremely peaceful times you need not worry about', - 'chat' => 'chitterchatter', - 'chats' => 'chitterchatters', + 'chatting' => 'chitterchattering', 'changed' => 'infested', 'cheese omelette' => 'omelette du fromage', 'cheeseburger' => 'beef wellington ensemble with cheese', @@ -147,11 +146,14 @@ class ForumReplacementService < Service 'hamburgers' => 'beef wellington ensembles with lettuce', 'hat' => 'fuzzy head chimney', 'hate' => 'absolutely love', + 'heart' => 'corazón', + 'hearts' => 'corazones', 'hey all' => 'greetings, earthlings', 'hip' => 'hep', 'homework' => 'timey wimey studystruggles', 'hot chocolate' => 'boiled chocowater', 'ice cold' => 'cooler than being cool', + 'icky' => 'oofy doofy', 'insect' => 'motorized freckle', 'insects' => 'motorized freckles', 'jelly' => 'fruit spleggings', @@ -193,7 +195,7 @@ class ForumReplacementService < Service 'nugget' => "lil' nuggy", 'nuggets' => "lil' nuggies", 'offensive' => 'bogue', - 'oof' => 'oooooooooooooooooooooooooooooooooooooof', + 'oof' => 'oooooooooooooooooooooooooooooooooooooof', 'owo' => '(◕‿◕✿)', 'pancake' => 'roundy-yum', 'pancakes' => 'roundy-yums', @@ -286,7 +288,7 @@ class ForumReplacementService < Service 'watch out' => 'gardyloo', 'water' => 'water', 'weed' => "devil's lettuce", - 'weird' => 'wonky-wonky', + 'weird' => 'wonky-donky', 'whale' => 'blubberbutt watermutt', 'whales' => 'blubberbutt watermutts', 'wheeze' => 'sneeze', @@ -303,57 +305,57 @@ class ForumReplacementService < Service 'zalgo' => 'H̶̛̼̼̪̝̞͓̞͕͇̯͚͎͚̘̳͕̱̤̠̗͔͇̙̣̰͓̖̰̯̀̓̐̑̇͊͂̀͋̒̐̓͒̒͊͊̕͜͝ͅE̴̡̧̨̨̲̥̯͎̭̻̩̞̘̞̪̞̗̭͖̻͙͕͎̮͕̺͕̲̘̻̣͚̳̥͍̙͈͚͍͉̗͙̱͖͚̾̂̇͛̉͋͊̾͛̆̀́͑͛̅̋͊̕͘͜͜͜͝ͅͅͅͅ ̸̡̡̨̡̨̛̞͎̹̩̬̗̗̞̬̰̮̙̪̖͈̣̹͔̺̫̰̓̔̉̋̈̈́͐́̿̈̀͊̿̈̉̅̃̊̽͗̈̿̈́̓̈́̎͌̄̀̆̌̎͗̋͒̋̿̋̊̈́͆̋̾̈̏̈́̋̿̕̕̚͝͝͠͠ͅͅͅC̵̛̘̳͙̪̭͖̲̞̯̰̜͇̈̾̈́͋̌̉̽̽͑̎͌̾̈́͌̑͊̊̔̀͆̌̀̇̓͊̀̂̇̿̃͑́̈́̆͂̈́̾̓́̂̂̓̂̍̍͛͆͌͌̽̎̍̀̒̆̀͗͋͘͘͘͝͠͝͝͠͝͝Ǫ̸͕̻̞̝̜͚̗̮̼͎̤͔̤̱͔̫͂̄̉̋̈͊͐͂̇̀̌̎́͑̐̀̈́͋̓̾̅͒̒̄͑̒̆̑̾͜͝͝͝͝M̷̧̧̡̨̛̛̩̭̞͍̼̝̗͕̖͇̣̣̩͆̿̑͒́̉̅̓̌̆̈́͐͒̾̐̂̿̓̚͘̚͜E̵̡̨̢̧̢̢̡̢̨̛̠̱̻̺̦͚̹͓̬͔̪̟̼̥̯̠̘͚̫̯͍̺͔̫̟͇̱̦̟̪͚͉̣̳͓͍̬̙̲͔̘͙͔̤̰̜͍̠̩͉͐̂̊̏̐̿̊̋͑̿̇̊̈́͗̎̋́́̉̓̂̐͑̇̐̐͋́̒̈́͛͑͒̂͒̂̔̀̄̈́̓͂͆̈́͒̌͆̓͗̋͐̔̑͐̕͘ͅͅͅŞ̴̧̧̡̢̧̡̢͕̝͚̝̖͚̣̞̫̻̯͔̳̗̝̰̗̰̰̥̭͕̜̜̫͍̪̳̘̣̺̠͉̗̟͕̹͇̬̘̘̪͆͗̎̕', ## Crazy mode - 'depression' => 'megasadness', - 'ice cream' => 'eyes cream', - 'strawberry' => 'plastic tubefruit', - 'soul' => 'inner ghost', - 'dance' => 'woopwoop', - 'curling iron' => 'medieval torture device', - 'room' => 'human containment unit', - 'gay' => 'rainbow', - 'wednesday' => 'wendsday', - 'taxation' => 'theft', - 'insurance' => 'the biggest scam known to man', - 'bird' => 'flying spy drone', - 'birds' => 'flying spy drones', - 'kitchen' => 'fridge-and-oven combination room', - 'lemonade' => 'sour drank', - 'salamander' => 'baby dragon', - 'scrolling' => 'vertically surfing through a screen', - 'eyes' => 'little ball peepers', - 'la croix' => 'water that has sat next to a fruit at one point in its life', - 'history' => 'lastpast yesteryear', - 'tall' => 'giraffy', - 'subtext' => 'subtweeting but IRL', - 'how' => 'how now brown cow', - 'midnight' => 'dayover', - 'murder' => 'mucduc', - 'kill' => 'deathsnuggle', - 'babe' => 'bae', - 'video' => 'series of images played in rapid succession to give the illusion of movement on a static screen', - 'online' => 'on the interwebs', - 'internet' => 'series of electrotubes', - 'highlighted' => 'becoming better', - 'backfired' => 'went incredibly well', - 'an hour' => '3600 seconds', - 'football' => 'soccer', - 'baseball' => 'thrown soccer', - 'basketball' => 'dribbling soccer', - 'volleyball' => 'beach soccer', - 'hello' => 'howdy, partner', - 'rule' => 'law you must obey', - 'rules' => 'laws you must obey', - 'what is happening' => 'everything is fine', - 'why is this happening' => 'I think this is great', - 'two days ago' => 'a thousand years after 365002 days ago', - 'summer' => 'hotseason', - 'winter' => 'coldeason', - 'spring' => 'flowerseason', - 'autumn' => 'rainseason' + # 'depression' => 'megasadness', + # 'ice cream' => 'eyes cream', + # 'strawberry' => 'plastic tubefruit', + # 'soul' => 'inner ghost', + # 'dance' => 'woopwoop', + # 'curling iron' => 'medieval torture device', + # 'room' => 'human containment unit', + # 'gay' => 'rainbow', + # 'wednesday' => 'wendsday', + # 'taxation' => 'theft', + # 'insurance' => 'the biggest scam known to man', + # 'bird' => 'flying spy drone', + # 'birds' => 'flying spy drones', + # 'kitchen' => 'fridge-and-oven combination room', + # 'lemonade' => 'sour drank', + # 'salamander' => 'baby dragon', + # 'scrolling' => 'vertically surfing through a screen', + # 'eyes' => 'little ball peepers', + # 'la croix' => 'water that has sat next to a fruit at one point in its life', + # 'history' => 'lastpast yesteryear', + # 'tall' => 'giraffy', + # 'subtext' => 'subtweeting but IRL', + # 'how' => 'how now brown cow', + # 'midnight' => 'dayover', + # 'murder' => 'mucduc', + # 'kill' => 'deathsnuggle', + # 'babe' => 'bae', + # 'video' => 'series of images played in rapid succession to give the illusion of movement on a static screen', + # 'online' => 'on the interwebs', + # 'internet' => 'series of electrotubes', + # 'highlighted' => 'becoming better', + # 'backfired' => 'went incredibly well', + # 'an hour' => '3600 seconds', + # 'football' => 'soccer', + # 'baseball' => 'thrown soccer', + # 'basketball' => 'dribbling soccer', + # 'volleyball' => 'beach soccer', + # 'hello' => 'howdy, partner', + # 'rule' => 'law you must obey', + # 'rules' => 'laws you must obey', + # 'what is happening' => 'everything is fine', + # 'why is this happening' => 'I think this is great', + # 'two days ago' => 'a thousand years after 365002 days ago', + # 'summer' => 'hotseason', + # 'winter' => 'coldeason', + # 'spring' => 'flowerseason', + # 'autumn' => 'rainseason' } def self.replace(text) - return text + # return text # It's april fool's! # TODO allow users to turn this madness off with a user setting (return text)