A platform for community discussion. Free, open, simple.
DEV: update dependencies and add notes about exceptions
Sam Saffrona06fccae1b93
diff --git a/Gemfile b/Gemfileindex 5a77669c3ce..2f3dd97d6ad 100644--- a/Gemfile+++ b/Gemfile@@ -14,8 +14,10 @@ if rails_master?gem 'arel', git: 'https://github.com/rails/arel.git'gem 'rails', git: 'https://github.com/rails/rails.git'else- # until rubygems gives us optional dependencies we are stuck with this- # bundle update actionmailer actionpack actionview activemodel activerecord activesupport railties+ # NOTE: Until rubygems gives us optional dependencies we are stuck with this needing to be explicit+ # this allows us to include the bits of rails we use without pieces we do not.+ #+ # To issue a rails update bump the version number heregem 'actionmailer', '6.0.1'gem 'actionpack', '6.0.1'gem 'actionview', '6.0.1'@@ -36,18 +38,25 @@ gem 'mail', require: falsegem 'mini_mime'gem 'mini_suffix'-gem 'redis', '4.1.3'+gem 'redis'gem 'redis-namespace'+# NOTE: AM serializer gets a lot slower with recent updates+# we used an old branch which is the fastest one out there+# are long term goal here is to fork this gem so we have a+# better maintained living forkgem 'active_model_serializers', '~> 0.8.3'-gem 'onebox', '1.9.24'+gem 'onebox'-gem 'http_accept_language', '~>2.0.5', require: false+gem 'http_accept_language', require: false+# Ember related gems need to be pinned cause they control client side+# behavior, we will push these versions up when upgrading embergem 'ember-rails', '0.18.5'gem 'discourse-ember-source', '~> 3.10.0'gem 'ember-handlebars-template', '0.8.0'+gem 'barber'gem 'message_bus'@@ -66,7 +75,7 @@ gem 'aws-sdk-sns', require: falsegem 'excon', require: falsegem 'unf', require: false-gem 'email_reply_trimmer', '~> 0.1'+gem 'email_reply_trimmer'# Forked until https://github.com/toy/image_optim/pull/162 is merged# https://github.com/discourse/image_optim@@ -92,7 +101,7 @@ gem 'oj'gem 'pg'gem 'mini_sql'gem 'pry-rails', require: false-gem 'r2', '~> 0.2.5', require: false+gem 'r2', require: falsegem 'rake'gem 'thor', require: false@@ -107,7 +116,10 @@ gem 'tilt', require: falsegem 'execjs', require: falsegem 'mini_racer'++# TODO: determine why highline is being held back and upgrade to latestgem 'highline', '~> 1.7.0', require: false+gem 'rack-protection' # securitygem 'cbor', require: falsegem 'cose', require: false@@ -121,7 +133,7 @@ endgroup :test dogem 'webmock', require: false- gem 'fakeweb', '~> 1.3.0', require: false+ gem 'fakeweb', require: falsegem 'minitest', require: falsegem 'simplecov', require: falsegem "test-prof"@@ -136,9 +148,15 @@ group :test, :development dogem 'fabrication', require: falsegem 'mocha', require: falsegem 'rb-fsevent', require: RUBY_PLATFORM =~ /darwin/i ? 'rb-fsevent' : false++ # TODO determine if we can update this to 0.10, API changes happened+ # we would like to upgrade it if possiblegem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM =~ /linux/i ? 'rb-inotify' : false++ # TODO once 4.0.0 is released upgrade to it, at time of writing 3.9.0 is latestgem 'rspec-rails', '4.0.0.beta2', require: false- gem 'shoulda-matchers', '~> 3.1', '>= 3.1.3', require: false++ gem 'shoulda-matchers', require: falsegem 'rspec-html-matchers'gem 'pry-nav'gem 'byebug', require: ENV['RM_INFO'].nil?@@ -153,13 +171,7 @@ group :development dogem 'better_errors'gem 'binding_of_caller'gem 'yaml-lint'-- # waiting on 2.7.5 per: https://github.com/ctran/annotate_models/pull/595- if rails_master?- gem 'annotate', git: 'https://github.com/ctran/annotate_models.git'- else- gem 'annotate'- end+ gem 'annotate'end# this is an optional gem, it provides a high performance replacement@@ -213,11 +225,13 @@ gem 'lz4-ruby', require: false, platform: :mriif ENV["IMPORT"] == "1"gem 'mysql2'gem 'redcarpet'++ # NOTE: in import mode the version of sqlite can matter a lot, so we stick it to a specific onegem 'sqlite3', '~> 1.3', '>= 1.3.13'gem 'ruby-bbcode-to-md', git: 'https://github.com/nlalonde/ruby-bbcode-to-md'gem 'reverse_markdown'gem 'tiny_tds'- gem 'csv', '~> 3.0'+ gem 'csv'endgem 'webpush', require: falsediff --git a/Gemfile.lock b/Gemfile.lockindex 213187d1085..0a65db0d43d 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -145,7 +145,7 @@ GEMhighline (1.7.10)hkdf (0.3.0)htmlentities (4.3.4)- http_accept_language (2.0.5)+ http_accept_language (2.1.1)i18n (1.7.0)concurrent-ruby (~> 1.0)image_size (1.5.0)@@ -375,8 +375,8 @@ GEMseed-fu (2.3.9)activerecord (>= 3.1)activesupport (>= 3.1)- shoulda-matchers (3.1.3)- activesupport (>= 4.0.0)+ shoulda-matchers (4.1.2)+ activesupport (>= 4.2.0)sidekiq (5.2.7)connection_pool (~> 2.2, >= 2.2.2)rack (>= 1.5.0)@@ -420,7 +420,7 @@ GEMhkdf (~> 0.2)jwt (~> 2.0)yaml-lint (0.0.10)- zeitwerk (2.2.1)+ zeitwerk (2.2.2)PLATFORMSruby@@ -452,13 +452,13 @@ DEPENDENCIESdiffydiscourse-ember-source (~> 3.10.0)discourse_image_optim- email_reply_trimmer (~> 0.1)+ email_reply_trimmerember-handlebars-template (= 0.8.0)ember-rails (= 0.18.5)exconexecjsfabrication- fakeweb (~> 1.3.0)+ fakewebfast_blankfast_xorfast_xs@@ -467,7 +467,7 @@ DEPENDENCIESgc_tracerhighline (~> 1.7.0)htmlentities- http_accept_language (~> 2.0.5)+ http_accept_languagelistenlogragelogstash-event@@ -499,14 +499,14 @@ DEPENDENCIESomniauth-oauth2omniauth-openidomniauth-twitter- onebox (= 1.9.24)+ oneboxopenid-redis-storeparallel_testspgpry-navpry-railspuma- r2 (~> 0.2.5)+ r2rack-mini-profilerrack-protectionrails_multisite@@ -516,7 +516,7 @@ DEPENDENCIESrb-inotify (~> 0.9)rbtracerchardet- redis (= 4.1.3)+ redisredis-namespacerinkurotp@@ -534,7 +534,7 @@ DEPENDENCIESsasscsassc-railsseed-fu- shoulda-matchers (~> 3.1, >= 3.1.3)+ shoulda-matcherssidekiqsimplecovsprockets-railsdiff --git a/spec/models/post_reply_spec.rb b/spec/models/post_reply_spec.rbindex 9f808f5dc2c..85e02b8b6a8 100644--- a/spec/models/post_reply_spec.rb+++ b/spec/models/post_reply_spec.rb@@ -7,9 +7,6 @@ describe PostReply dofab!(:post) { Fabricate(:post, topic: topic) }fab!(:other_post) { Fabricate(:post, topic: topic) }- it { is_expected.to belong_to :post }- it { is_expected.to belong_to :reply }-context "validation" doit "should ensure that the posts belong in the same topic" doexpect(PostReply.new(post: post, reply: other_post)).to be_valid