Remove omniauth and twitter (sharing) related gems
`twitter-text` is still required to generate the shared post bodies
This commit is contained in:
parent
06d7db7ff8
commit
a86dcde30a
8
Gemfile
8
Gemfile
|
@ -58,12 +58,6 @@ gem "httparty"
|
|||
gem "redcarpet"
|
||||
gem "sanitize"
|
||||
|
||||
# OmniAuth and providers
|
||||
gem "omniauth"
|
||||
gem "omniauth-twitter"
|
||||
|
||||
# OAuth clients
|
||||
gem "twitter"
|
||||
gem "twitter-text"
|
||||
|
||||
gem "redis"
|
||||
|
@ -109,8 +103,6 @@ group :production do
|
|||
gem "lograge"
|
||||
end
|
||||
|
||||
gem "omniauth-rails_csrf_protection", "~> 1.0"
|
||||
|
||||
gem "net-imap"
|
||||
gem "net-pop"
|
||||
gem "net-smtp"
|
||||
|
|
56
Gemfile.lock
56
Gemfile.lock
|
@ -90,7 +90,6 @@ GEM
|
|||
bootstrap_form (5.1.0)
|
||||
actionpack (>= 5.2)
|
||||
activemodel (>= 5.2)
|
||||
buftok (0.2.0)
|
||||
builder (3.2.4)
|
||||
bullet (7.0.7)
|
||||
activesupport (>= 3.0.0)
|
||||
|
@ -131,8 +130,6 @@ GEM
|
|||
devise (>= 4.8.0)
|
||||
diff-lcs (1.5.0)
|
||||
docile (1.4.0)
|
||||
domain_name (0.5.20190701)
|
||||
unf (>= 0.0.5, < 1.0.0)
|
||||
dry-core (1.0.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
zeitwerk (~> 2.6)
|
||||
|
@ -148,7 +145,6 @@ GEM
|
|||
dry-inflector (~> 1.0, < 2)
|
||||
dry-logic (>= 1.4, < 2)
|
||||
zeitwerk (~> 2.6)
|
||||
equalizer (0.0.11)
|
||||
erubi (1.12.0)
|
||||
excon (0.98.0)
|
||||
factory_bot (6.2.0)
|
||||
|
@ -162,9 +158,6 @@ GEM
|
|||
faker (3.1.0)
|
||||
i18n (>= 1.8.11, < 2)
|
||||
ffi (1.15.5)
|
||||
ffi-compiler (1.0.1)
|
||||
ffi (>= 1.0.0)
|
||||
rake
|
||||
fog-aws (3.16.0)
|
||||
fog-core (~> 2.1)
|
||||
fog-json (~> 1.1)
|
||||
|
@ -196,22 +189,10 @@ GEM
|
|||
rainbow
|
||||
rubocop (>= 0.50.0)
|
||||
sysexits (~> 1.1)
|
||||
hashie (5.0.0)
|
||||
hcaptcha (7.1.0)
|
||||
json
|
||||
hkdf (0.3.0)
|
||||
http-2 (0.11.0)
|
||||
http (4.4.1)
|
||||
addressable (~> 2.3)
|
||||
http-cookie (~> 1.0)
|
||||
http-form_data (~> 2.2)
|
||||
http-parser (~> 1.2.0)
|
||||
http-cookie (1.0.4)
|
||||
domain_name (~> 0.5)
|
||||
http-form_data (2.3.0)
|
||||
http-parser (1.2.3)
|
||||
ffi-compiler (>= 1.0, < 2.0)
|
||||
http_parser.rb (0.6.0)
|
||||
httparty (0.21.0)
|
||||
mini_mime (>= 1.0.0)
|
||||
multi_xml (>= 0.5.2)
|
||||
|
@ -257,8 +238,6 @@ GEM
|
|||
mail (2.7.1)
|
||||
mini_mime (>= 0.1.1)
|
||||
marcel (1.0.2)
|
||||
memoizable (0.4.2)
|
||||
thread_safe (~> 0.3, >= 0.3.1)
|
||||
method_source (1.0.0)
|
||||
mime-types (3.4.1)
|
||||
mime-types-data (~> 3.2015)
|
||||
|
@ -273,8 +252,6 @@ GEM
|
|||
msgpack (1.6.0)
|
||||
multi_json (1.15.0)
|
||||
multi_xml (0.6.0)
|
||||
multipart-post (2.1.1)
|
||||
naught (1.1.0)
|
||||
nested_form (0.3.2)
|
||||
net-http-persistent (4.0.1)
|
||||
connection_pool (~> 2.2)
|
||||
|
@ -293,21 +270,7 @@ GEM
|
|||
nokogiri (1.14.0)
|
||||
mini_portile2 (~> 2.8.0)
|
||||
racc (~> 1.4)
|
||||
oauth (0.5.8)
|
||||
oj (3.13.23)
|
||||
omniauth (2.1.0)
|
||||
hashie (>= 3.4.6)
|
||||
rack (>= 2.2.3)
|
||||
rack-protection
|
||||
omniauth-oauth (1.2.0)
|
||||
oauth
|
||||
omniauth (>= 1.0, < 3)
|
||||
omniauth-rails_csrf_protection (1.0.1)
|
||||
actionpack (>= 4.2)
|
||||
omniauth (~> 2.0)
|
||||
omniauth-twitter (1.4.0)
|
||||
omniauth-oauth (~> 1.1)
|
||||
rack
|
||||
openssl (3.1.0)
|
||||
orm_adapter (0.5.0)
|
||||
parallel (1.22.1)
|
||||
|
@ -324,8 +287,6 @@ GEM
|
|||
questiongenerator (1.1.0)
|
||||
racc (1.6.2)
|
||||
rack (2.2.6.2)
|
||||
rack-protection (3.0.5)
|
||||
rack
|
||||
rack-test (2.0.2)
|
||||
rack (>= 1.3)
|
||||
rails (6.1.7.2)
|
||||
|
@ -462,7 +423,6 @@ GEM
|
|||
connection_pool (>= 2.2.5, < 3)
|
||||
rack (~> 2.0)
|
||||
redis (>= 4.5.0, < 5)
|
||||
simple_oauth (0.3.1)
|
||||
simplecov (0.22.0)
|
||||
docile (~> 1.1)
|
||||
simplecov-html (~> 0.11)
|
||||
|
@ -486,7 +446,6 @@ GEM
|
|||
sysexits (1.2.0)
|
||||
temple (0.10.0)
|
||||
thor (1.2.1)
|
||||
thread_safe (0.3.6)
|
||||
tilt (2.0.11)
|
||||
timeout (0.3.1)
|
||||
tldv (0.1.0)
|
||||
|
@ -496,17 +455,6 @@ GEM
|
|||
actionpack (>= 6.0.0)
|
||||
activejob (>= 6.0.0)
|
||||
railties (>= 6.0.0)
|
||||
twitter (7.0.0)
|
||||
addressable (~> 2.3)
|
||||
buftok (~> 0.2.0)
|
||||
equalizer (~> 0.0.11)
|
||||
http (~> 4.0)
|
||||
http-form_data (~> 2.0)
|
||||
http_parser.rb (~> 0.6.0)
|
||||
memoizable (~> 0.4.0)
|
||||
multipart-post (~> 2.0)
|
||||
naught (~> 1.0)
|
||||
simple_oauth (~> 0.3.0)
|
||||
twitter-text (3.1.0)
|
||||
idn-ruby
|
||||
unf (~> 0.1.0)
|
||||
|
@ -570,9 +518,6 @@ DEPENDENCIES
|
|||
net-pop
|
||||
net-smtp
|
||||
oj
|
||||
omniauth
|
||||
omniauth-rails_csrf_protection (~> 1.0)
|
||||
omniauth-twitter
|
||||
openssl (~> 3.1)
|
||||
pg
|
||||
pghero
|
||||
|
@ -612,7 +557,6 @@ DEPENDENCIES
|
|||
sprockets-rails
|
||||
tldv (~> 0.1.0)
|
||||
turbo-rails
|
||||
twitter
|
||||
twitter-text
|
||||
|
||||
BUNDLED WITH
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
Rails.application.config.middleware.use OmniAuth::Builder do
|
||||
APP_CONFIG.fetch('sharing').each do |service, opts|
|
||||
if opts['enabled']
|
||||
provider service.to_sym, opts['consumer_key'], opts['consumer_secret']
|
||||
end
|
||||
end
|
||||
end
|
|
@ -11,7 +11,6 @@ Sentry.init do |config|
|
|||
|
||||
exception_fingerprints = {
|
||||
Excon::Error::ServiceUnavailable => 'external-service',
|
||||
Twitter::Error::InternalServerError => 'external-service',
|
||||
}
|
||||
config.before_send = lambda do |event, hint|
|
||||
# These are used for user-facing errors, not when something goes wrong
|
||||
|
|
Loading…
Reference in New Issue