Skip to content

Commit fef6adb

Browse files
author
Jonathan Siegel
committed
Removing sunset gems.
1 parent 0a41535 commit fef6adb

File tree

14 files changed

+5
-55
lines changed

14 files changed

+5
-55
lines changed

Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gem 'dalli'
1515
gem 'excon'
1616
gem 'faraday'
1717
gem 'friendly_id'
18-
gem 'green_monkey'
18+
# gem 'green_monkey'
1919
gem 'haml-rails'
2020
gem 'icalendar'
2121
gem 'invisible_captcha'
@@ -51,9 +51,7 @@ gem 'turbolinks'
5151
gem 'uglifier' #, '>= 1.3.0'
5252

5353
# Legacy gems needed for porting, can remove soon
54-
gem 'sequel'
5554
gem 'redis'
56-
gem 'reverse_markdown'
5755

5856
group :development, :test do
5957
gem 'byebug'

Gemfile.lock

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ GEM
7171
base64 (0.2.0)
7272
bcrypt (3.1.20)
7373
benchmark-ips (2.13.0)
74-
bigdecimal (3.1.6)
7574
bindex (0.8.1)
76-
blankslate (3.1.3)
7775
browser (5.3.1)
7876
bugsnag (6.26.3)
7977
concurrent-ruby (~> 1.0)
@@ -103,8 +101,6 @@ GEM
103101
carrierwave (>= 0.5, < 2.2)
104102
case_transform (0.2)
105103
activesupport
106-
chronic_duration (0.10.6)
107-
numerizer (~> 0.1.1)
108104
clearance (2.6.2)
109105
actionmailer (>= 5.0)
110106
activemodel (>= 5.0)
@@ -175,10 +171,6 @@ GEM
175171
ffi (~> 1.0)
176172
globalid (1.1.0)
177173
activesupport (>= 5.0)
178-
green_monkey (0.3.0)
179-
chronic_duration
180-
haml (>= 3.1.0)
181-
mida_vocabulary (>= 0.2.2)
182174
haml (5.2.2)
183175
temple (>= 0.8.0)
184176
tilt
@@ -258,8 +250,6 @@ GEM
258250
meta-tags (2.19.0)
259251
actionpack (>= 3.2.0, < 7.2)
260252
method_source (1.0.0)
261-
mida_vocabulary (0.2.2)
262-
blankslate (~> 3.1)
263253
mime-types (3.5.2)
264254
mime-types-data (~> 3.2015)
265255
mime-types-data (3.2023.1205)
@@ -289,7 +279,6 @@ GEM
289279
nokogiri (1.15.5)
290280
mini_portile2 (~> 2.8.2)
291281
racc (~> 1.4)
292-
numerizer (0.1.1)
293282
parallel (1.24.0)
294283
parser (3.3.0.5)
295284
ast (~> 2.4.1)
@@ -364,8 +353,6 @@ GEM
364353
http-cookie (>= 1.0.2, < 2.0)
365354
mime-types (>= 1.16, < 4.0)
366355
netrc (~> 0.8)
367-
reverse_markdown (2.1.1)
368-
nokogiri
369356
rexml (3.2.6)
370357
rubocop (1.60.2)
371358
json (~> 2.3)
@@ -395,8 +382,6 @@ GEM
395382
sprockets (> 3.0)
396383
sprockets-rails
397384
tilt
398-
sequel (5.76.0)
399-
bigdecimal
400385
sexp_processor (4.17.1)
401386
shoulda (4.0.0)
402387
shoulda-context (~> 2.0)
@@ -465,7 +450,6 @@ DEPENDENCIES
465450
faker
466451
faraday
467452
friendly_id
468-
green_monkey
469453
haml-rails
470454
icalendar
471455
invisible_captcha
@@ -493,10 +477,8 @@ DEPENDENCIES
493477
rails_stdout_logging
494478
redcarpet
495479
redis
496-
reverse_markdown
497480
rubocop
498481
sassc-rails
499-
sequel
500482
shoulda
501483
shoulda-matchers
502484
spring
@@ -511,4 +493,4 @@ RUBY VERSION
511493
ruby 2.7.8p225
512494

513495
BUNDLED WITH
514-
1.16.3
496+
2.4.22

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class ApplicationController < ActionController::Base
2-
include ReactOnRails::Controller
2+
# include ReactOnRails::Controller
33
include Clearance::Controller
44
# Prevent CSRF attacks by raising an exception.
55
# For APIs, you may want to use :null_session instead.

app/models/article.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class Article < ApplicationRecord
77

88
friendly_id :slug_format, :use => :slugged
99
paginates_per 40
10-
html_schema_type :TechArticle
1110

1211
BIG_BANG = Time.parse("05/07/2012").to_i #date protips were launched
1312
before_update :cache_calculated_score!

app/models/comment.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
class Comment < ApplicationRecord
22
include TimeAgoInWordsCacheBuster
33
paginates_per 10
4-
html_schema_type :Comment
54

65
VIDEO_LAG = 25.seconds # TODO: measure the real lag value
76

app/models/user.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
class User < ApplicationRecord
22
include Clearance::User
33

4-
html_schema_type :Person
54
mount_uploader :avatar, AvatarUploader
65

76
before_create :generate_unique_color

app/views/comments/_comment.html.haml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
- cache ['v3', comment, current_user_can_edit?(comment)] do
22
- style ||= :large
33
.inline-block.py1.mb1[comment]{class: ('border-top' if style != :small), style: 'width: 100%'}
4-
.hide= time_tag comment.created_at, itemprop: "datePublished"
5-
.hide[:name]= comment.id
64

75
.left.mt1.mr2.avatar.small{style:"background-color: #{comment.user.color};"}
86
=avatar_url_tag(comment.user)
@@ -19,7 +17,3 @@
1917
&middot;
2018
= button_to comment_path(comment), method: :delete, data: { confirm: "Are you sure you want to delete your comment?" }, form_class: "inline plain" do
2119
= icon('trash')
22-
&middot;
23-
= react_component 'HeartButton', props: { heartableId: comment.dom_id,
24-
href: comment_likes_path(comment), labels: ['',''] },
25-
html_options: { style: "display:inline-block" }

app/views/job_subscriptions/new.html.haml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
-@subscription.errors.full_messages.each do |error|
2121
%p.red.bold=error
2222
23-
= react_component 'NewJobSubscription', props: { stripePublishable: ENV['STRIPE_PUBLISHABLE_KEY'], cost: JobSubscription::CENTS_PER_MONTH }
24-
2523
.mt2.diminish
2624
Coderwall securely accepts all major credit cards.
2725

app/views/jobs/new.html.haml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
-@job.errors.full_messages.each do |error|
1717
%p.red.bold=error
1818
19-
= react_component 'NewJob', props: { stripePublishable: ENV['STRIPE_PUBLISHABLE_KEY'], cost: Job::CENTS_PER_MONTH }
20-
2119
.mt2.diminish
2220
Coderwall securely accepts all major credit cards.
2321

app/views/pages/styleguide.html.erb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
<h1>Protips</h1>
22

33
<div class="protip card clearfix p1 mb2 likeable">
4-
<%= react_component('Heart', props: {count: 4987, hearted: true}, prerender: true) %>
54
<div class="overflow-hidden">
65
<h3 class="mt0 mb0">
7-
<a href="#">
8-
Setup react components in rails
9-
</a>
106
</h3>
117
<div class="font-sm diminish inline">
128
<a href="#">

0 commit comments

Comments
 (0)