Merge branch 'next-minor' into develop

This commit is contained in:
Benjamin Neff 2021-06-30 23:27:57 +02:00
commit d27eefeb34
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
15 changed files with 170 additions and 271 deletions

51
Gemfile
View file

@ -2,7 +2,7 @@
source "https://rubygems.org" source "https://rubygems.org"
gem "rails", "5.2.5" gem "rails", "5.2.6"
# Legacy Rails features, remove me! # Legacy Rails features, remove me!
# responders (class level) # responders (class level)
@ -27,10 +27,10 @@ gem "yajl-ruby", "1.4.1"
# Authentication # Authentication
gem "devise", "4.7.3" gem "devise", "4.8.0"
gem "devise-two-factor", "4.0.0"
gem "devise_lastseenable", "0.0.6" gem "devise_lastseenable", "0.0.6"
gem "rqrcode", "1.1.2" gem "devise-two-factor", "4.0.0"
gem "rqrcode", "2.0.0"
# Captcha # Captcha
@ -38,7 +38,7 @@ gem "simple_captcha2", "0.5.0", require: "simple_captcha"
# Background processing # Background processing
gem "redis", "4.2.5" gem "redis", "4.3.1"
gem "sidekiq", "6.2.1" gem "sidekiq", "6.2.1"
# Scheduled processing # Scheduled processing
@ -60,12 +60,12 @@ gem "rack-cors", "1.1.1", require: "rack/cors"
# CSS # CSS
gem "autoprefixer-rails", "10.2.4.0" gem "autoprefixer-rails", "10.2.5.1"
gem "bootstrap-sass", "3.4.1" gem "bootstrap-sass", "3.4.1"
gem "bootstrap-switch-rails", "3.3.3" # 3.3.4 and 3.3.5 is broken, see https://github.com/Bttstrp/bootstrap-switch/issues/691 gem "bootstrap-switch-rails", "3.3.3" # 3.3.4 and 3.3.5 is broken, see https://github.com/Bttstrp/bootstrap-switch/issues/691
gem "compass-rails", "3.1.0" gem "compass-rails", "3.1.0"
gem "sass-rails", "5.0.7" gem "sass-rails", "5.0.7"
gem "sprockets-rails", "3.2.1" gem "sprockets-rails", "3.2.2"
# Database # Database
@ -76,14 +76,13 @@ group :postgresql, optional: true do
gem "pg", "1.2.3" gem "pg", "1.2.3"
end end
gem "activerecord-import", "1.1.0"
gem "activerecord-import", "1.0.4"
# File uploading # File uploading
gem "carrierwave", "1.3.2" gem "carrierwave", "2.2.2"
gem "fog-aws", "3.5.2" gem "fog-aws", "3.10.0"
gem "mini_magick", "4.10.1" gem "mini_magick", "4.11.0"
# GUID generation # GUID generation
gem "uuid", "2.3.9" gem "uuid", "2.3.9"
@ -94,10 +93,10 @@ gem "entypo-rails", "3.0.0"
# JavaScript # JavaScript
gem "handlebars_assets", "0.23.8" gem "handlebars_assets", "0.23.9"
gem "jquery-rails", "4.4.0" gem "jquery-rails", "4.4.0"
gem "jquery-ui-rails", "5.0.5" gem "jquery-ui-rails", "5.0.5"
gem "js-routes", "1.4.9" gem "js-routes", "1.4.14"
gem "js_image_paths", "0.1.1" gem "js_image_paths", "0.1.1"
gem "sprockets-es6", "0.9.2" gem "sprockets-es6", "0.9.2"
@ -143,14 +142,14 @@ gem "rails-i18n", "5.1.3"
gem "markerb", "1.1.0" gem "markerb", "1.1.0"
# Map # Map
gem "leaflet-rails", "1.6.0" gem "leaflet-rails", "1.7.0"
# Parsing # Parsing
gem "nokogiri", "1.11.3" gem "nokogiri", "1.11.7"
gem "open_graph_reader", "0.7.1" # also update User-Agent in features/support/webmock.rb and open_graph_cache_spec.rb gem "open_graph_reader", "0.7.1" # also update User-Agent in features/support/webmock.rb and open_graph_cache_spec.rb
gem "redcarpet", "3.5.1" gem "redcarpet", "3.5.1"
gem "ruby-oembed", "0.12.0" gem "ruby-oembed", "0.15.0"
gem "twitter-text", "3.1.0" gem "twitter-text", "3.1.0"
# RTL support # RTL support
@ -170,7 +169,7 @@ gem "omniauth-wordpress", "0.2.2"
gem "twitter", "7.0.0" gem "twitter", "7.0.0"
# OpenID Connect # OpenID Connect
gem "openid_connect", "1.1.8" gem "openid_connect", "1.2.0"
# Serializers # Serializers
@ -178,7 +177,7 @@ gem "active_model_serializers", "0.9.7"
# Tags # Tags
gem "acts-as-taggable-on", "6.5.0" gem "acts-as-taggable-on", "8.1.0"
# URIs and HTTP # URIs and HTTP
@ -190,10 +189,10 @@ gem "typhoeus", "1.4.0"
# Views # Views
gem "gon", "6.3.2" gem "gon", "6.4.0"
gem "hamlit", "2.14.6" gem "hamlit", "2.15.0"
gem "mobile-fu", "1.4.0" gem "mobile-fu", "1.4.0"
gem "rails-timeago", "2.18.0" gem "rails-timeago", "2.19.1"
gem "will_paginate", "3.3.0" gem "will_paginate", "3.3.0"
# Logging # Logging
@ -237,12 +236,12 @@ group :production do # we don"t install these on travis to speed up test runs
# Third party asset hosting # Third party asset hosting
gem "asset_sync", "2.11.0", require: false gem "asset_sync", "2.14.2", require: false
end end
group :development do group :development do
# Linters # Linters
gem "haml_lint", "0.37.0", require: false gem "haml_lint", "0.37.1", require: false
gem "pronto", "0.11.0", require: false gem "pronto", "0.11.0", require: false
gem "pronto-eslint", "0.11.0", require: false gem "pronto-eslint", "0.11.0", require: false
gem "pronto-haml", "0.11.0", require: false gem "pronto-haml", "0.11.0", require: false
@ -284,7 +283,7 @@ group :test do
gem "factory_bot_rails", "6.1.0" gem "factory_bot_rails", "6.1.0"
gem "shoulda-matchers", "4.5.1" gem "shoulda-matchers", "4.5.1"
gem "timecop", "0.9.4" gem "timecop", "0.9.4"
gem "webmock", "3.12.2", require: false gem "webmock", "3.13.0", require: false
gem "diaspora_federation-test", "0.2.6" gem "diaspora_federation-test", "0.2.6"
end end
@ -304,5 +303,5 @@ group :development, :test do
gem "sinon-rails", "1.15.0" gem "sinon-rails", "1.15.0"
# For `assigns` in controller specs # For `assigns` in controller specs
gem "rails-controller-testing", "1.0.4" gem "rails-controller-testing", "1.0.5"
end end

View file

@ -2,25 +2,25 @@ GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
remote: https://gems.diasporafoundation.org/ remote: https://gems.diasporafoundation.org/
specs: specs:
actioncable (5.2.5) actioncable (5.2.6)
actionpack (= 5.2.5) actionpack (= 5.2.6)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
actionmailer (5.2.5) actionmailer (5.2.6)
actionpack (= 5.2.5) actionpack (= 5.2.6)
actionview (= 5.2.5) actionview (= 5.2.6)
activejob (= 5.2.5) activejob (= 5.2.6)
mail (~> 2.5, >= 2.5.4) mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
actionpack (5.2.5) actionpack (5.2.6)
actionview (= 5.2.5) actionview (= 5.2.6)
activesupport (= 5.2.5) activesupport (= 5.2.6)
rack (~> 2.0, >= 2.0.8) rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3) rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2) rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.5) actionview (5.2.6)
activesupport (= 5.2.5) activesupport (= 5.2.6)
builder (~> 3.1) builder (~> 3.1)
erubi (~> 1.4) erubi (~> 1.4)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
@ -28,28 +28,28 @@ GEM
active_model_serializers (0.9.7) active_model_serializers (0.9.7)
activemodel (>= 3.2) activemodel (>= 3.2)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
activejob (5.2.5) activejob (5.2.6)
activesupport (= 5.2.5) activesupport (= 5.2.6)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (5.2.5) activemodel (5.2.6)
activesupport (= 5.2.5) activesupport (= 5.2.6)
activerecord (5.2.5) activerecord (5.2.6)
activemodel (= 5.2.5) activemodel (= 5.2.6)
activesupport (= 5.2.5) activesupport (= 5.2.6)
arel (>= 9.0) arel (>= 9.0)
activerecord-import (1.0.4) activerecord-import (1.1.0)
activerecord (>= 3.2) activerecord (>= 3.2)
activestorage (5.2.5) activestorage (5.2.6)
actionpack (= 5.2.5) actionpack (= 5.2.6)
activerecord (= 5.2.5) activerecord (= 5.2.6)
marcel (~> 1.0.0) marcel (~> 1.0.0)
activesupport (5.2.5) activesupport (5.2.6)
concurrent-ruby (~> 1.0, >= 1.0.2) concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2) i18n (>= 0.7, < 2)
minitest (~> 5.1) minitest (~> 5.1)
tzinfo (~> 1.1) tzinfo (~> 1.1)
acts-as-taggable-on (6.5.0) acts-as-taggable-on (8.1.0)
activerecord (>= 5.0, < 6.1) activerecord (>= 5.0, < 6.2)
acts_as_api (1.0.1) acts_as_api (1.0.1)
activemodel (>= 3.0.0) activemodel (>= 3.0.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
@ -61,7 +61,7 @@ GEM
capybara (~> 3.13, < 4) capybara (~> 3.13, < 4)
websocket-driver (>= 0.6.5) websocket-driver (>= 0.6.5)
arel (9.0.0) arel (9.0.0)
asset_sync (2.11.0) asset_sync (2.14.2)
activemodel (>= 4.1.0) activemodel (>= 4.1.0)
fog-core fog-core
mime-types (>= 2.99) mime-types (>= 2.99)
@ -70,14 +70,14 @@ GEM
attr_encrypted (3.1.0) attr_encrypted (3.1.0)
encryptor (~> 3.0.0) encryptor (~> 3.0.0)
attr_required (1.0.1) attr_required (1.0.1)
autoprefixer-rails (10.2.4.0) autoprefixer-rails (10.2.5.1)
execjs execjs (> 0)
babel-source (5.8.35) babel-source (5.8.35)
babel-transpiler (0.7.0) babel-transpiler (0.7.0)
babel-source (>= 4.0, < 6) babel-source (>= 4.0, < 6)
execjs (~> 2.0) execjs (~> 2.0)
bcrypt (3.1.16) bcrypt (3.1.16)
bindata (2.4.8) bindata (2.4.10)
bootstrap-sass (3.4.1) bootstrap-sass (3.4.1)
autoprefixer-rails (>= 5.2.1) autoprefixer-rails (>= 5.2.1)
sassc (>= 2.0.0) sassc (>= 2.0.0)
@ -93,10 +93,13 @@ GEM
rack-test (>= 0.6.3) rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0) regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2) xpath (~> 3.2)
carrierwave (1.3.2) carrierwave (2.2.2)
activemodel (>= 4.0.0) activemodel (>= 5.0.0)
activesupport (>= 4.0.0) activesupport (>= 5.0.0)
mime-types (>= 1.16) addressable (~> 2.6)
image_processing (~> 1.1)
marcel (~> 1.0.0)
mini_mime (>= 0.1.3)
ssrf_filter (~> 1.0) ssrf_filter (~> 1.0)
celluloid (0.17.4) celluloid (0.17.4)
celluloid-essentials celluloid-essentials
@ -140,9 +143,9 @@ GEM
compass (~> 1.0.0) compass (~> 1.0.0)
sass-rails (< 5.1) sass-rails (< 5.1)
sprockets (< 4.0) sprockets (< 4.0)
concurrent-ruby (1.1.8) concurrent-ruby (1.1.9)
configurate (0.5.0) configurate (0.5.0)
connection_pool (2.2.3) connection_pool (2.2.5)
crack (0.4.5) crack (0.4.5)
rexml rexml
crass (1.0.6) crass (1.0.6)
@ -190,7 +193,7 @@ GEM
database_cleaner-active_record (1.8.0) database_cleaner-active_record (1.8.0)
activerecord activerecord
database_cleaner (~> 1.8.0) database_cleaner (~> 1.8.0)
devise (4.7.3) devise (4.8.0)
bcrypt (~> 3.0) bcrypt (~> 3.0)
orm_adapter (~> 0.1) orm_adapter (~> 0.1)
railties (>= 4.1.0) railties (>= 4.1.0)
@ -220,7 +223,7 @@ GEM
fabrication (~> 2.16) fabrication (~> 2.16)
uuid (~> 2.3, >= 2.3.8) uuid (~> 2.3, >= 2.3.8)
diff-lcs (1.4.4) diff-lcs (1.4.4)
docile (1.3.5) docile (1.4.0)
domain_name (0.5.20190701) domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0) unf (>= 0.0.5, < 1.0.0)
encryptor (3.0.0) encryptor (3.0.0)
@ -234,10 +237,10 @@ GEM
rake rake
et-orbi (1.2.4) et-orbi (1.2.4)
tzinfo tzinfo
ethon (0.12.0) ethon (0.14.0)
ffi (>= 1.3.0) ffi (>= 1.15.0)
excon (0.79.0) excon (0.82.0)
execjs (2.7.0) execjs (2.8.1)
eye (0.10.0) eye (0.10.0)
celluloid (~> 0.17.3) celluloid (~> 0.17.3)
celluloid-io (~> 0.17.0) celluloid-io (~> 0.17.0)
@ -257,7 +260,7 @@ GEM
http-cookie (~> 1.0.0) http-cookie (~> 1.0.0)
faraday_middleware (0.13.1) faraday_middleware (0.13.1)
faraday (>= 0.7.4, < 1.0) faraday (>= 0.7.4, < 1.0)
ffi (1.15.0) ffi (1.15.3)
ffi-compiler (1.0.1) ffi-compiler (1.0.1)
ffi (>= 1.0.0) ffi (>= 1.0.0)
rake rake
@ -265,12 +268,12 @@ GEM
activerecord (>= 2) activerecord (>= 2)
activesupport (>= 2) activesupport (>= 2)
hashdiff hashdiff
fog-aws (3.5.2) fog-aws (3.10.0)
fog-core (~> 2.1) fog-core (~> 2.1)
fog-json (~> 1.1) fog-json (~> 1.1)
fog-xml (~> 0.1) fog-xml (~> 0.1)
ipaddress (~> 0.8) ipaddress (~> 0.8)
fog-core (2.2.3) fog-core (2.2.4)
builder builder
excon (~> 0.71) excon (~> 0.71)
formatador (~> 0.2) formatador (~> 0.2)
@ -281,8 +284,8 @@ GEM
fog-xml (0.1.3) fog-xml (0.1.3)
fog-core fog-core
nokogiri (>= 1.5.11, < 2.0.0) nokogiri (>= 1.5.11, < 2.0.0)
formatador (0.2.5) formatador (0.3.0)
fugit (1.4.4) fugit (1.5.0)
et-orbi (~> 1.1, >= 1.1.8) et-orbi (~> 1.1, >= 1.1.8)
raabro (~> 1.4) raabro (~> 1.4)
fuubar (2.5.1) fuubar (2.5.1)
@ -295,7 +298,7 @@ GEM
terminal-table (~> 1.5, >= 1.5.1) terminal-table (~> 1.5, >= 1.5.1)
globalid (0.4.2) globalid (0.4.2)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
gon (6.3.2) gon (6.4.0)
actionpack (>= 3.0.20) actionpack (>= 3.0.20)
i18n (>= 0.7) i18n (>= 0.7)
multi_json multi_json
@ -303,17 +306,17 @@ GEM
haml (5.2.1) haml (5.2.1)
temple (>= 0.8.0) temple (>= 0.8.0)
tilt tilt
haml_lint (0.37.0) haml_lint (0.37.1)
haml (>= 4.0, < 5.3) haml (>= 4.0, < 5.3)
parallel (~> 1.10) parallel (~> 1.10)
rainbow rainbow
rubocop (>= 0.50.0) rubocop (>= 0.50.0)
sysexits (~> 1.1) sysexits (~> 1.1)
hamlit (2.14.6) hamlit (2.15.0)
temple (>= 0.8.2) temple (>= 0.8.2)
thor thor
tilt tilt
handlebars_assets (0.23.8) handlebars_assets (0.23.9)
execjs (~> 2.0) execjs (~> 2.0)
sprockets (>= 2.0.0) sprockets (>= 2.0.0)
tilt (>= 1.2) tilt (>= 1.2)
@ -324,7 +327,7 @@ GEM
http-cookie (~> 1.0) http-cookie (~> 1.0)
http-form_data (~> 2.2) http-form_data (~> 2.2)
http-parser (~> 1.2.0) http-parser (~> 1.2.0)
http-cookie (1.0.3) http-cookie (1.0.4)
domain_name (~> 0.5) domain_name (~> 0.5)
http-form_data (2.3.0) http-form_data (2.3.0)
http-parser (1.2.3) http-parser (1.2.3)
@ -344,6 +347,9 @@ GEM
i18n-inflector (~> 2.6) i18n-inflector (~> 2.6)
railties (>= 3.0.0) railties (>= 3.0.0)
idn-ruby (0.1.0) idn-ruby (0.1.0)
image_processing (1.12.1)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
ipaddress (0.8.3) ipaddress (0.8.3)
jasmine (3.7.0) jasmine (3.7.0)
jasmine-core (~> 3.7.0) jasmine-core (~> 3.7.0)
@ -358,9 +364,8 @@ GEM
thor (>= 0.14, < 2.0) thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5) jquery-ui-rails (5.0.5)
railties (>= 3.2.16) railties (>= 3.2.16)
js-routes (1.4.9) js-routes (1.4.14)
railties (>= 4) railties (>= 4)
sprockets-rails
js_image_paths (0.1.1) js_image_paths (0.1.1)
rails (>= 4.0, < 6.0) rails (>= 4.0, < 6.0)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
@ -376,10 +381,10 @@ GEM
rspec rspec
jsonpath (1.1.0) jsonpath (1.1.0)
multi_json multi_json
jwt (2.2.2) jwt (2.2.3)
kgio (2.11.3) kgio (2.11.4)
kostya-sigar (2.0.8) kostya-sigar (2.0.8)
leaflet-rails (1.6.0) leaflet-rails (1.7.0)
rails (>= 4.2.0) rails (>= 4.2.0)
listen (3.5.1) listen (3.5.1)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
@ -390,7 +395,7 @@ GEM
multi_json (~> 1.14) multi_json (~> 1.14)
logging-rails (0.6.0) logging-rails (0.6.0)
logging (>= 1.8) logging (>= 1.8)
loofah (2.9.1) loofah (2.10.0)
crass (~> 1.0.2) crass (~> 1.0.2)
nokogiri (>= 1.5.9) nokogiri (>= 1.5.9)
macaddr (1.7.2) macaddr (1.7.2)
@ -407,9 +412,9 @@ GEM
mime-types (3.3.1) mime-types (3.3.1)
mime-types-data (~> 3.2015) mime-types-data (~> 3.2015)
mime-types-data (3.2021.0225) mime-types-data (3.2021.0225)
mini_magick (4.10.1) mini_magick (4.11.0)
mini_mime (1.1.0) mini_mime (1.1.0)
mini_portile2 (2.5.0) mini_portile2 (2.5.3)
minitest (5.14.4) minitest (5.14.4)
mobile-fu (1.4.0) mobile-fu (1.4.0)
rack-mobile-detect rack-mobile-detect
@ -421,7 +426,7 @@ GEM
mysql2 (0.5.3) mysql2 (0.5.3)
naught (1.1.0) naught (1.1.0)
nio4r (2.5.7) nio4r (2.5.7)
nokogiri (1.11.3) nokogiri (1.11.7)
mini_portile2 (~> 2.5.0) mini_portile2 (~> 2.5.0)
racc (~> 1.4) racc (~> 1.4)
oauth (0.5.6) oauth (0.5.6)
@ -431,7 +436,7 @@ GEM
multi_json (~> 1.3) multi_json (~> 1.3)
multi_xml (~> 0.5) multi_xml (~> 0.5)
rack (>= 1.2, < 3) rack (>= 1.2, < 3)
octokit (4.20.0) octokit (4.21.0)
faraday (>= 0.9) faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3) sawyer (~> 0.8.0, >= 0.5.3)
omniauth (1.9.1) omniauth (1.9.1)
@ -454,7 +459,7 @@ GEM
open_graph_reader (0.7.1) open_graph_reader (0.7.1)
faraday (>= 0.9.0) faraday (>= 0.9.0)
nokogiri (~> 1.6) nokogiri (~> 1.6)
openid_connect (1.1.8) openid_connect (1.2.0)
activemodel activemodel
attr_required (>= 1.0.0) attr_required (>= 1.0.0)
json-jwt (>= 1.5.0) json-jwt (>= 1.5.0)
@ -466,7 +471,7 @@ GEM
webfinger (>= 1.0.1) webfinger (>= 1.0.1)
orm_adapter (0.5.0) orm_adapter (0.5.0)
parallel (1.20.1) parallel (1.20.1)
parser (3.0.1.0) parser (3.0.1.1)
ast (~> 2.4.1) ast (~> 2.4.1)
pg (1.2.3) pg (1.2.3)
phantomjs (2.1.1.0) phantomjs (2.1.1.0)
@ -496,12 +501,12 @@ GEM
middleware middleware
thor thor
thread_safe thread_safe
pry (0.13.1) pry (0.14.1)
coderay (~> 1.1) coderay (~> 1.1)
method_source (~> 1.0) method_source (~> 1.0)
pry-byebug (3.9.0) pry-byebug (3.8.0)
byebug (~> 11.0) byebug (~> 11.0)
pry (~> 0.13.0) pry (~> 0.10)
public_suffix (4.0.6) public_suffix (4.0.6)
raabro (1.4.0) raabro (1.4.0)
racc (1.5.2) racc (1.5.2)
@ -513,7 +518,7 @@ GEM
activesupport activesupport
rack-mobile-detect (0.4.0) rack-mobile-detect (0.4.0)
rack rack
rack-oauth2 (1.16.0) rack-oauth2 (1.17.0)
activesupport activesupport
attr_required attr_required
httpclient httpclient
@ -525,18 +530,18 @@ GEM
rack rack
rack-test (1.1.0) rack-test (1.1.0)
rack (>= 1.0, < 3) rack (>= 1.0, < 3)
rails (5.2.5) rails (5.2.6)
actioncable (= 5.2.5) actioncable (= 5.2.6)
actionmailer (= 5.2.5) actionmailer (= 5.2.6)
actionpack (= 5.2.5) actionpack (= 5.2.6)
actionview (= 5.2.5) actionview (= 5.2.6)
activejob (= 5.2.5) activejob (= 5.2.6)
activemodel (= 5.2.5) activemodel (= 5.2.6)
activerecord (= 5.2.5) activerecord (= 5.2.6)
activestorage (= 5.2.5) activestorage (= 5.2.6)
activesupport (= 5.2.5) activesupport (= 5.2.6)
bundler (>= 1.3.0) bundler (>= 1.3.0)
railties (= 5.2.5) railties (= 5.2.6)
sprockets-rails (>= 2.0.0) sprockets-rails (>= 2.0.0)
rails-assets-autosize (4.0.2) rails-assets-autosize (4.0.2)
rails-assets-backbone (1.3.3) rails-assets-backbone (1.3.3)
@ -571,10 +576,10 @@ GEM
rails-assets-pica (5.0.0) rails-assets-pica (5.0.0)
rails-assets-underscore (1.9.1) rails-assets-underscore (1.9.1)
rails-assets-utatti-perfect-scrollbar (1.4.0) rails-assets-utatti-perfect-scrollbar (1.4.0)
rails-controller-testing (1.0.4) rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.x) actionpack (>= 5.0.1.rc1)
actionview (>= 5.0.1.x) actionview (>= 5.0.1.rc1)
activesupport (>= 5.0.1.x) activesupport (>= 5.0.1.rc1)
rails-dom-testing (2.0.3) rails-dom-testing (2.0.3)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
nokogiri (>= 1.6) nokogiri (>= 1.6)
@ -583,23 +588,23 @@ GEM
rails-i18n (5.1.3) rails-i18n (5.1.3)
i18n (>= 0.7, < 2) i18n (>= 0.7, < 2)
railties (>= 5.0, < 6) railties (>= 5.0, < 6)
rails-timeago (2.18.0) rails-timeago (2.19.1)
actionpack (>= 3.1) actionpack (>= 3.1)
activesupport (>= 3.1) activesupport (>= 3.1)
railties (5.2.5) railties (5.2.6)
actionpack (= 5.2.5) actionpack (= 5.2.6)
activesupport (= 5.2.5) activesupport (= 5.2.6)
method_source method_source
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0) thor (>= 0.19.0, < 2.0)
rainbow (3.0.0) rainbow (3.0.0)
raindrops (0.19.1) raindrops (0.19.2)
rake (12.3.3) rake (12.3.3)
rb-fsevent (0.10.4) rb-fsevent (0.10.4)
rb-inotify (0.10.1) rb-inotify (0.10.1)
ffi (~> 1.0) ffi (~> 1.0)
redcarpet (3.5.1) redcarpet (3.5.1)
redis (4.2.5) redis (4.3.1)
regexp_parser (2.1.1) regexp_parser (2.1.1)
request_store (1.5.0) request_store (1.5.0)
rack (>= 1.4) rack (>= 1.4)
@ -608,10 +613,10 @@ GEM
railties (>= 5.0) railties (>= 5.0)
rexml (3.2.5) rexml (3.2.5)
rotp (6.2.0) rotp (6.2.0)
rqrcode (1.1.2) rqrcode (2.0.0)
chunky_png (~> 1.0) chunky_png (~> 1.0)
rqrcode_core (~> 0.1) rqrcode_core (~> 1.0)
rqrcode_core (0.2.0) rqrcode_core (1.0.0)
rspec (3.10.0) rspec (3.10.0)
rspec-core (~> 3.10.0) rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0) rspec-expectations (~> 3.10.0)
@ -643,14 +648,16 @@ GEM
rubocop-ast (>= 0.6.0) rubocop-ast (>= 0.6.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0) unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (1.4.1) rubocop-ast (1.7.0)
parser (>= 2.7.1.5) parser (>= 3.0.1.1)
rubocop-rails (2.9.1) rubocop-rails (2.9.1)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
rack (>= 1.1) rack (>= 1.1)
rubocop (>= 0.90.0, < 2.0) rubocop (>= 0.90.0, < 2.0)
ruby-oembed (0.12.0) ruby-oembed (0.15.0)
ruby-progressbar (1.11.0) ruby-progressbar (1.11.0)
ruby-vips (2.1.2)
ffi (~> 1.12)
rubyzip (2.3.0) rubyzip (2.3.0)
rugged (1.0.1) rugged (1.0.1)
sass (3.4.25) sass (3.4.25)
@ -686,7 +693,7 @@ GEM
simplecov-html (~> 0.11) simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1) simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3) simplecov-html (0.12.3)
simplecov_json_formatter (0.1.2) simplecov_json_formatter (0.1.3)
sinon-rails (1.15.0) sinon-rails (1.15.0)
railties (>= 3.1) railties (>= 3.1)
sprockets (3.7.2) sprockets (3.7.2)
@ -696,7 +703,7 @@ GEM
babel-source (>= 5.8.11) babel-source (>= 5.8.11)
babel-transpiler babel-transpiler
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
sprockets-rails (3.2.1) sprockets-rails (3.2.2)
actionpack (>= 4.0) actionpack (>= 4.0)
activesupport (>= 4.0) activesupport (>= 4.0)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
@ -770,11 +777,11 @@ GEM
webfinger (1.1.0) webfinger (1.1.0)
activesupport activesupport
httpclient (>= 2.4) httpclient (>= 2.4)
webmock (3.12.2) webmock (3.13.0)
addressable (>= 2.3.6) addressable (>= 2.3.6)
crack (>= 0.3.2) crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0) hashdiff (>= 0.4.0, < 2.0.0)
websocket-driver (0.7.3) websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0) websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5) websocket-extensions (0.1.5)
will_paginate (3.3.0) will_paginate (3.3.0)
@ -788,24 +795,24 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
active_model_serializers (= 0.9.7) active_model_serializers (= 0.9.7)
activerecord-import (= 1.0.4) activerecord-import (= 1.1.0)
acts-as-taggable-on (= 6.5.0) acts-as-taggable-on (= 8.1.0)
acts_as_api (= 1.0.1) acts_as_api (= 1.0.1)
addressable (= 2.7.0) addressable (= 2.7.0)
apparition (= 0.6.0) apparition (= 0.6.0)
asset_sync (= 2.11.0) asset_sync (= 2.14.2)
autoprefixer-rails (= 10.2.4.0) autoprefixer-rails (= 10.2.5.1)
bootstrap-sass (= 3.4.1) bootstrap-sass (= 3.4.1)
bootstrap-switch-rails (= 3.3.3) bootstrap-switch-rails (= 3.3.3)
capybara (= 3.35.3) capybara (= 3.35.3)
carrierwave (= 1.3.2) carrierwave (= 2.2.2)
chrome_remote (= 0.3.0) chrome_remote (= 0.3.0)
compass-rails (= 3.1.0) compass-rails (= 3.1.0)
configurate (= 0.5.0) configurate (= 0.5.0)
cucumber-api-steps (= 0.14) cucumber-api-steps (= 0.14)
cucumber-rails (= 2.3.0) cucumber-rails (= 2.3.0)
database_cleaner-active_record (= 1.8.0) database_cleaner-active_record (= 1.8.0)
devise (= 4.7.3) devise (= 4.8.0)
devise-two-factor (= 4.0.0) devise-two-factor (= 4.0.0)
devise_lastseenable (= 0.0.6) devise_lastseenable (= 0.0.6)
diaspora_federation-json_schema (= 0.2.6) diaspora_federation-json_schema (= 0.2.6)
@ -818,39 +825,39 @@ DEPENDENCIES
faraday-cookie_jar (= 0.0.6) faraday-cookie_jar (= 0.0.6)
faraday_middleware (= 0.13.1) faraday_middleware (= 0.13.1)
fixture_builder (= 0.5.2) fixture_builder (= 0.5.2)
fog-aws (= 3.5.2) fog-aws (= 3.10.0)
fuubar (= 2.5.1) fuubar (= 2.5.1)
gon (= 6.3.2) gon (= 6.4.0)
haml_lint (= 0.37.0) haml_lint (= 0.37.1)
hamlit (= 2.14.6) hamlit (= 2.15.0)
handlebars_assets (= 0.23.8) handlebars_assets (= 0.23.9)
http_accept_language (= 2.1.1) http_accept_language (= 2.1.1)
i18n-inflector-rails (= 1.0.7) i18n-inflector-rails (= 1.0.7)
jasmine (= 3.7.0) jasmine (= 3.7.0)
jasmine-jquery-rails (= 2.0.3) jasmine-jquery-rails (= 2.0.3)
jquery-rails (= 4.4.0) jquery-rails (= 4.4.0)
jquery-ui-rails (= 5.0.5) jquery-ui-rails (= 5.0.5)
js-routes (= 1.4.9) js-routes (= 1.4.14)
js_image_paths (= 0.1.1) js_image_paths (= 0.1.1)
json (= 2.3.0) json (= 2.3.0)
json-schema (= 2.8.1) json-schema (= 2.8.1)
json-schema-rspec (= 0.0.4) json-schema-rspec (= 0.0.4)
leaflet-rails (= 1.6.0) leaflet-rails (= 1.7.0)
listen (= 3.5.1) listen (= 3.5.1)
logging-rails (= 0.6.0) logging-rails (= 0.6.0)
markdown-it-html5-embed (= 1.0.0) markdown-it-html5-embed (= 1.0.0)
markerb (= 1.1.0) markerb (= 1.1.0)
mini_magick (= 4.10.1) mini_magick (= 4.11.0)
minitest minitest
mobile-fu (= 1.4.0) mobile-fu (= 1.4.0)
mysql2 (= 0.5.3) mysql2 (= 0.5.3)
nokogiri (= 1.11.3) nokogiri (= 1.11.7)
omniauth (= 1.9.1) omniauth (= 1.9.1)
omniauth-tumblr (= 1.2) omniauth-tumblr (= 1.2)
omniauth-twitter (= 1.4.0) omniauth-twitter (= 1.4.0)
omniauth-wordpress (= 0.2.2) omniauth-wordpress (= 0.2.2)
open_graph_reader (= 0.7.1) open_graph_reader (= 0.7.1)
openid_connect (= 1.1.8) openid_connect (= 1.2.0)
pg (= 1.2.3) pg (= 1.2.3)
pronto (= 0.11.0) pronto (= 0.11.0)
pronto-eslint (= 0.11.0) pronto-eslint (= 0.11.0)
@ -864,7 +871,7 @@ DEPENDENCIES
rack-piwik (= 0.3.0) rack-piwik (= 0.3.0)
rack-rewrite (= 1.5.1) rack-rewrite (= 1.5.1)
rack-ssl (= 1.4.1) rack-ssl (= 1.4.1)
rails (= 5.2.5) rails (= 5.2.6)
rails-assets-autosize (= 4.0.2)! rails-assets-autosize (= 4.0.2)!
rails-assets-backbone (= 1.3.3)! rails-assets-backbone (= 1.3.3)!
rails-assets-blueimp-gallery (= 2.33.0)! rails-assets-blueimp-gallery (= 2.33.0)!
@ -887,18 +894,18 @@ DEPENDENCIES
rails-assets-markdown-it-sup (= 1.0.0)! rails-assets-markdown-it-sup (= 1.0.0)!
rails-assets-pica (= 5.0.0)! rails-assets-pica (= 5.0.0)!
rails-assets-utatti-perfect-scrollbar (= 1.4.0)! rails-assets-utatti-perfect-scrollbar (= 1.4.0)!
rails-controller-testing (= 1.0.4) rails-controller-testing (= 1.0.5)
rails-i18n (= 5.1.3) rails-i18n (= 5.1.3)
rails-timeago (= 2.18.0) rails-timeago (= 2.19.1)
redcarpet (= 3.5.1) redcarpet (= 3.5.1)
redis (= 4.2.5) redis (= 4.3.1)
responders (= 3.0.1) responders (= 3.0.1)
rqrcode (= 1.1.2) rqrcode (= 2.0.0)
rspec-json_expectations (~> 2.1) rspec-json_expectations (~> 2.1)
rspec-rails (= 5.0.1) rspec-rails (= 5.0.1)
rubocop (= 0.93.1) rubocop (= 0.93.1)
rubocop-rails (= 2.9.1) rubocop-rails (= 2.9.1)
ruby-oembed (= 0.12.0) ruby-oembed (= 0.15.0)
rubyzip (= 2.3.0) rubyzip (= 2.3.0)
sass-rails (= 5.0.7) sass-rails (= 5.0.7)
secure_headers (= 6.3.2) secure_headers (= 6.3.2)
@ -909,7 +916,7 @@ DEPENDENCIES
simplecov (= 0.21.2) simplecov (= 0.21.2)
sinon-rails (= 1.15.0) sinon-rails (= 1.15.0)
sprockets-es6 (= 0.9.2) sprockets-es6 (= 0.9.2)
sprockets-rails (= 3.2.1) sprockets-rails (= 3.2.2)
string-direction (= 1.2.2) string-direction (= 1.2.2)
timecop (= 0.9.4) timecop (= 0.9.4)
toml-rb (= 2.0.1) toml-rb (= 2.0.1)
@ -922,7 +929,7 @@ DEPENDENCIES
unicorn-worker-killer (= 0.4.5) unicorn-worker-killer (= 0.4.5)
uuid (= 2.3.9) uuid (= 2.3.9)
versionist (= 2.0.1) versionist (= 2.0.1)
webmock (= 3.12.2) webmock (= 3.13.0)
will_paginate (= 3.3.0) will_paginate (= 3.3.0)
yajl-ruby (= 1.4.1) yajl-ruby (= 1.4.1)

View file

@ -1,17 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
module InterimStreamHackinessHelper module InterimStreamHackinessHelper
def commenting_disabled?(post)
return true unless user_signed_in?
if defined?(@commenting_disabled)
@commenting_disabled
elsif defined?(@stream)
!@stream.can_comment?(post)
else
false
end
end
##### These methods need to go away once we pass publisher object into the partial ###### ##### These methods need to go away once we pass publisher object into the partial ######
def publisher_formatted_text def publisher_formatted_text
if params[:prefill].present? if params[:prefill].present?

View file

@ -9,7 +9,7 @@ class ExportedUser < SecureUploader
"uploads/users" "uploads/users"
end end
def extension_whitelist def extension_allowlist
%w[gz] %w[gz]
end end

View file

@ -11,7 +11,7 @@ class ProcessedImage < CarrierWave::Uploader::Base
"uploads/images" "uploads/images"
end end
def extension_whitelist def extension_allowlist
%w[jpg jpeg png gif] %w[jpg jpeg png gif]
end end

View file

@ -17,7 +17,7 @@ class UnprocessedImage < CarrierWave::Uploader::Base
"uploads/images" "uploads/images"
end end
def extension_whitelist def extension_allowlist
%w[jpg jpeg png gif] %w[jpg jpeg png gif]
end end

View file

@ -4,5 +4,5 @@
.stream .stream
= render partial: "shared/stream_element", = render partial: "shared/stream_element",
locals: {post: post, commenting_disabled: commenting_disabled?(post), expanded_info: true} locals: {post: post, expanded_info: true}

View file

@ -8,9 +8,9 @@
ENV['SSL_CERT_FILE'] = AppConfig.environment.certificate_authorities.get ENV['SSL_CERT_FILE'] = AppConfig.environment.certificate_authorities.get
CarrierWave.configure do |config| CarrierWave.configure do |config|
if !Rails.env.test? && AppConfig.environment.s3.enable? if !Rails.env.test? && AppConfig.environment.s3.enable?
config.fog_provider = "fog/aws"
require "carrierwave/storage/fog" require "carrierwave/storage/fog"
config.storage = :fog config.storage = :fog
config.cache_storage = :file
config.cache_dir = Rails.root.join('tmp', 'uploads').to_s config.cache_dir = Rails.root.join('tmp', 'uploads').to_s
config.fog_credentials = { config.fog_credentials = {
provider: 'AWS', provider: 'AWS',

View file

@ -80,15 +80,6 @@ class Stream::Aspect < Stream::Base
@all_aspects ||= aspects.size == user.aspects.size @all_aspects ||= aspects.size == user.aspects.size
end end
# This is perfomance optimization, as everyone in your aspect stream you have
# a contact.
#
# @param post [Post]
# @return [Boolean]
def can_comment?(post)
true
end
private private
def aspect_ids def aspect_ids

View file

@ -17,12 +17,6 @@ class Stream::Base
'change me in lib/base_stream.rb!' 'change me in lib/base_stream.rb!'
end end
# @return [Boolean]
def can_comment?(post)
return true if post.author.local?
post_is_from_contact?(post)
end
def post_from_group(post) def post_from_group(post)
[] []
end end
@ -105,13 +99,4 @@ class Stream::Base
def contacts_in_stream def contacts_in_stream
@contacts_in_stream ||= Contact.where(:user_id => user.id, :person_id => people.map(&:id)).load @contacts_in_stream ||= Contact.where(:user_id => user.id, :person_id => people.map(&:id)).load
end end
# @param post [Post]
# @return [Boolean]
def post_is_from_contact?(post)
@can_comment_cache ||= {}
@can_comment_cache[post.id] ||= contacts_in_stream.find{|contact| contact.person_id == post.author.id}.present?
@can_comment_cache[post.id] ||= (user.person_id == post.author_id)
@can_comment_cache[post.id]
end
end end

View file

@ -15,10 +15,6 @@ class Stream::LocalPublic < Stream::Base
@posts ||= Post.all_local_public @posts ||= Post.all_local_public
end end
def can_comment?(post)
post.author.local?
end
# Override base class method # Override base class method
def aspects def aspects
["public"] ["public"]

View file

@ -18,10 +18,6 @@ class Stream::Public < Stream::Base
@posts ||= Post.all_public @posts ||= Post.all_public
end end
def can_comment?(post)
post.author.local?
end
# Override base class method # Override base class method
def aspects def aspects
["public"] ["public"]

View file

@ -86,19 +86,23 @@ describe StreamsController, :type => :controller do
save_fixture(html_for("body"), "aspects_index_with_one_followed_tag") save_fixture(html_for("body"), "aspects_index_with_one_followed_tag")
end end
it "generates a jasmine fixture with a post containing a video", :fixture => true do it "generates a jasmine fixture with a post containing a video", fixture: true do
stub_request( stub_request(
:get, :get,
"https://www.youtube.com/oembed?format=json&frame=1&iframe=1&maxheight=420&maxwidth=420&scheme=https&url=http://www.youtube.com/watch?v=UYrkQL1bX4A" "https://www.youtube.com/oembed/?format=json&frame=1&iframe=1&maxheight=420&maxwidth=420&scheme=https&url=https://www.youtube.com/watch?v=UYrkQL1bX4A"
).with( ).with(
:headers => {'Accept'=>'*/*'} headers: {
"Accept" => "*/*",
"Accept-Encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3",
"User-Agent" => "Mozilla/5.0 (compatible; ruby-oembed/#{OEmbed::VERSION})"
}
).to_return( ).to_return(
:status => 200, status: 200,
:body => '{ "title": "LazyTown song - Cooking By The Boo" }', body: '{ "title": "LazyTown song - Cooking By The Boo" }',
:headers => {} headers: {}
) )
alice.post(:status_message, :text => "http://www.youtube.com/watch?v=UYrkQL1bX4A", :to => @alices_aspect_2.id) alice.post(:status_message, text: "https://www.youtube.com/watch?v=UYrkQL1bX4A", to: @alices_aspect_2.id)
get :aspects get :aspects
save_fixture(html_for("body"), "aspects_index_with_video_post") save_fixture(html_for("body"), "aspects_index_with_video_post")
end end

View file

@ -1,41 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
describe InterimStreamHackinessHelper, type: :helper do describe InterimStreamHackinessHelper, type: :helper do
describe "commenting_disabled?" do
include Devise::Test::ControllerHelpers
before do
sign_in alice
def user_signed_in?
true
end
end
it 'returns true if no user is signed in' do
def user_signed_in?
false
end
expect(commenting_disabled?(double)).to eq(true)
end
it 'returns true if @commenting_disabled is set' do
@commenting_disabled = true
expect(commenting_disabled?(double)).to eq(true)
@commenting_disabled = false
expect(commenting_disabled?(double)).to eq(false)
end
it 'returns @stream.can_comment? if @stream is set' do
post = double
@stream = double
expect(@stream).to receive(:can_comment?).with(post).and_return(true)
expect(commenting_disabled?(post)).to eq(false)
expect(@stream).to receive(:can_comment?).with(post).and_return(false)
expect(commenting_disabled?(post)).to eq(true)
end
end
describe "#publisher_formatted_text" do describe "#publisher_formatted_text" do
it "returns the prefill text from the stream" do it "returns the prefill text from the stream" do
@stream = double(publisher: Publisher.new(alice, prefill: "hello world")) @stream = double(publisher: Publisher.new(alice, prefill: "hello world"))

View file

@ -30,39 +30,6 @@ describe Stream::Base do
end end
end end
describe ".can_comment?" do
before do
@person = FactoryBot.create(:person)
allow(@stream).to receive(:people).and_return([bob.person, eve.person, @person])
end
it "allows me to comment on my local contacts post" do
post = FactoryBot.create(:status_message, author: bob.person)
expect(@stream.can_comment?(post)).to be true
end
it "allows me to comment on my own post" do
post = FactoryBot.create(:status_message, author: alice.person)
expect(@stream.can_comment?(post)).to be true
end
it "allows me to comment on any local public post" do
post = FactoryBot.create(:status_message, author: eve.person)
expect(@stream.can_comment?(post)).to be true
end
it "allows me to comment on a remote contacts post" do
Contact.create!(user: @stream.user, person: @person)
post = FactoryBot.create(:status_message, author: @person)
expect(@stream.can_comment?(post)).to be true
end
it "returns false if person is remote and not a contact" do
post = FactoryBot.create(:status_message, author: @person)
expect(@stream.can_comment?(post)).to be false
end
end
describe "#people" do describe "#people" do
it "excludes blocked people" do it "excludes blocked people" do
expect(@stream).to receive(:stream_posts).and_return(double.as_null_object) expect(@stream).to receive(:stream_posts).and_return(double.as_null_object)