mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Upgrade to Rails 5.
This commit is contained in:
parent
d58de2b484
commit
898ee93547
29
Gemfile
29
Gemfile
@ -14,23 +14,14 @@ if rails_master?
|
|||||||
gem 'rails', git: 'https://github.com/rails/rails.git'
|
gem 'rails', git: 'https://github.com/rails/rails.git'
|
||||||
gem 'seed-fu', git: 'https://github.com/SamSaffron/seed-fu.git', branch: 'discourse'
|
gem 'seed-fu', git: 'https://github.com/SamSaffron/seed-fu.git', branch: 'discourse'
|
||||||
else
|
else
|
||||||
# Rails 5 is going to ship with Action Cable, we have no use for it as
|
gem 'actionmailer', '~> 5.1'
|
||||||
# we already ship MessageBus, AC introduces dependencies on Event Machine,
|
gem 'actionpack', '~> 5.1'
|
||||||
# Celluloid and Faye Web Sockets.
|
gem 'actionview', '~> 5.1'
|
||||||
#
|
gem 'activemodel', '~> 5.1'
|
||||||
# Note this means upgrading Rails is more annoying, to do so, comment out the
|
gem 'activerecord', '~> 5.1'
|
||||||
# explicit dependencies, and add gem 'rails', bundle update rails and then
|
gem 'activesupport', '~> 5.1'
|
||||||
# comment back the explicit dependencies. Leaving this in a comment till we
|
gem 'railties', '~> 5.1'
|
||||||
# upgrade to Rails 5
|
gem 'sprockets-rails'
|
||||||
#
|
|
||||||
# gem 'activesupport'
|
|
||||||
# gem 'actionpack'
|
|
||||||
# gem 'activerecord'
|
|
||||||
# gem 'actionmailer'
|
|
||||||
# gem 'activejob'
|
|
||||||
# gem 'railties'
|
|
||||||
# gem 'sprockets-rails'
|
|
||||||
gem 'rails', '~> 4.2'
|
|
||||||
gem 'seed-fu', '~> 2.3.5'
|
gem 'seed-fu', '~> 2.3.5'
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -55,7 +46,7 @@ gem 'barber'
|
|||||||
|
|
||||||
gem 'message_bus'
|
gem 'message_bus'
|
||||||
|
|
||||||
gem 'rails_multisite'
|
gem 'rails_multisite', '~> 1.1.0.rc4'
|
||||||
|
|
||||||
gem 'fast_xs'
|
gem 'fast_xs'
|
||||||
|
|
||||||
@ -120,8 +111,6 @@ group :test do
|
|||||||
gem 'webmock', require: false
|
gem 'webmock', require: false
|
||||||
gem 'fakeweb', '~> 1.3.0', require: false
|
gem 'fakeweb', '~> 1.3.0', require: false
|
||||||
gem 'minitest', require: false
|
gem 'minitest', require: false
|
||||||
# TODO: Remove once we upgrade to Rails 5.
|
|
||||||
gem 'test_after_commit'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test, :development do
|
group :test, :development do
|
||||||
|
108
Gemfile.lock
108
Gemfile.lock
@ -1,41 +1,40 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actionmailer (4.2.9)
|
actionmailer (5.1.3)
|
||||||
actionpack (= 4.2.9)
|
actionpack (= 5.1.3)
|
||||||
actionview (= 4.2.9)
|
actionview (= 5.1.3)
|
||||||
activejob (= 4.2.9)
|
activejob (= 5.1.3)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (4.2.9)
|
actionpack (5.1.3)
|
||||||
actionview (= 4.2.9)
|
actionview (= 5.1.3)
|
||||||
activesupport (= 4.2.9)
|
activesupport (= 5.1.3)
|
||||||
rack (~> 1.6)
|
rack (~> 2.0)
|
||||||
rack-test (~> 0.6.2)
|
rack-test (~> 0.6.3)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
actionview (4.2.9)
|
actionview (5.1.3)
|
||||||
activesupport (= 4.2.9)
|
activesupport (= 5.1.3)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubis (~> 2.7.0)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 1.0, >= 1.0.5)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
||||||
active_model_serializers (0.8.3)
|
active_model_serializers (0.8.3)
|
||||||
activemodel (>= 3.0)
|
activemodel (>= 3.0)
|
||||||
activejob (4.2.9)
|
activejob (5.1.3)
|
||||||
activesupport (= 4.2.9)
|
activesupport (= 5.1.3)
|
||||||
globalid (>= 0.3.0)
|
globalid (>= 0.3.6)
|
||||||
activemodel (4.2.9)
|
activemodel (5.1.3)
|
||||||
activesupport (= 4.2.9)
|
activesupport (= 5.1.3)
|
||||||
builder (~> 3.1)
|
activerecord (5.1.3)
|
||||||
activerecord (4.2.9)
|
activemodel (= 5.1.3)
|
||||||
activemodel (= 4.2.9)
|
activesupport (= 5.1.3)
|
||||||
activesupport (= 4.2.9)
|
arel (~> 8.0)
|
||||||
arel (~> 6.0)
|
activesupport (5.1.3)
|
||||||
activesupport (4.2.9)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (~> 0.7)
|
i18n (~> 0.7)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
thread_safe (~> 0.3, >= 0.3.4)
|
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.5.1)
|
addressable (2.5.1)
|
||||||
public_suffix (~> 2.0, >= 2.0.2)
|
public_suffix (~> 2.0, >= 2.0.2)
|
||||||
@ -43,7 +42,7 @@ GEM
|
|||||||
activerecord (>= 3.2, < 6.0)
|
activerecord (>= 3.2, < 6.0)
|
||||||
rake (>= 10.4, < 13.0)
|
rake (>= 10.4, < 13.0)
|
||||||
ansi (1.5.0)
|
ansi (1.5.0)
|
||||||
arel (6.0.4)
|
arel (8.0.0)
|
||||||
ast (2.3.0)
|
ast (2.3.0)
|
||||||
aws-sdk (2.5.3)
|
aws-sdk (2.5.3)
|
||||||
aws-sdk-resources (= 2.5.3)
|
aws-sdk-resources (= 2.5.3)
|
||||||
@ -100,6 +99,7 @@ GEM
|
|||||||
jquery-rails (>= 1.0.17)
|
jquery-rails (>= 1.0.17)
|
||||||
railties (>= 3.1)
|
railties (>= 3.1)
|
||||||
ember-source (2.13.3)
|
ember-source (2.13.3)
|
||||||
|
erubi (1.6.1)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
excon (0.56.0)
|
excon (0.56.0)
|
||||||
execjs (2.7.0)
|
execjs (2.7.0)
|
||||||
@ -242,40 +242,28 @@ GEM
|
|||||||
public_suffix (2.0.5)
|
public_suffix (2.0.5)
|
||||||
puma (3.9.1)
|
puma (3.9.1)
|
||||||
r2 (0.2.6)
|
r2 (0.2.6)
|
||||||
rack (1.6.8)
|
rack (2.0.3)
|
||||||
rack-mini-profiler (0.10.5)
|
rack-mini-profiler (0.10.5)
|
||||||
rack (>= 1.2.0)
|
rack (>= 1.2.0)
|
||||||
rack-openid (1.3.1)
|
rack-openid (1.3.1)
|
||||||
rack (>= 1.1.0)
|
rack (>= 1.1.0)
|
||||||
ruby-openid (>= 2.1.8)
|
ruby-openid (>= 2.1.8)
|
||||||
rack-protection (1.5.3)
|
rack-protection (2.0.0)
|
||||||
rack
|
rack
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
rails (4.2.9)
|
rails-dom-testing (2.0.3)
|
||||||
actionmailer (= 4.2.9)
|
activesupport (>= 4.2.0)
|
||||||
actionpack (= 4.2.9)
|
nokogiri (>= 1.6)
|
||||||
actionview (= 4.2.9)
|
|
||||||
activejob (= 4.2.9)
|
|
||||||
activemodel (= 4.2.9)
|
|
||||||
activerecord (= 4.2.9)
|
|
||||||
activesupport (= 4.2.9)
|
|
||||||
bundler (>= 1.3.0, < 2.0)
|
|
||||||
railties (= 4.2.9)
|
|
||||||
sprockets-rails
|
|
||||||
rails-deprecated_sanitizer (1.0.3)
|
|
||||||
activesupport (>= 4.2.0.alpha)
|
|
||||||
rails-dom-testing (1.0.8)
|
|
||||||
activesupport (>= 4.2.0.beta, < 5.0)
|
|
||||||
nokogiri (~> 1.6)
|
|
||||||
rails-deprecated_sanitizer (>= 1.0.1)
|
|
||||||
rails-html-sanitizer (1.0.3)
|
rails-html-sanitizer (1.0.3)
|
||||||
loofah (~> 2.0)
|
loofah (~> 2.0)
|
||||||
rails_multisite (1.0.6)
|
rails_multisite (1.1.0.rc4)
|
||||||
rails (> 4.2, < 5)
|
activerecord (> 4.2, < 6)
|
||||||
railties (4.2.9)
|
railties (> 4.2, < 6)
|
||||||
actionpack (= 4.2.9)
|
railties (5.1.3)
|
||||||
activesupport (= 4.2.9)
|
actionpack (= 5.1.3)
|
||||||
|
activesupport (= 5.1.3)
|
||||||
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
rainbow (2.2.2)
|
rainbow (2.2.2)
|
||||||
@ -356,7 +344,7 @@ GEM
|
|||||||
shoulda-context (1.2.2)
|
shoulda-context (1.2.2)
|
||||||
shoulda-matchers (2.8.0)
|
shoulda-matchers (2.8.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
sidekiq (5.0.3)
|
sidekiq (5.0.4)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
connection_pool (~> 2.2, >= 2.2.0)
|
connection_pool (~> 2.2, >= 2.2.0)
|
||||||
rack-protection (>= 1.5.0)
|
rack-protection (>= 1.5.0)
|
||||||
@ -371,8 +359,6 @@ GEM
|
|||||||
activesupport (>= 4.0)
|
activesupport (>= 4.0)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
stackprof (0.2.10)
|
stackprof (0.2.10)
|
||||||
test_after_commit (1.1.0)
|
|
||||||
activerecord (>= 3.2)
|
|
||||||
thor (0.19.4)
|
thor (0.19.4)
|
||||||
thread_safe (0.3.6)
|
thread_safe (0.3.6)
|
||||||
tilt (2.0.7)
|
tilt (2.0.7)
|
||||||
@ -398,7 +384,13 @@ PLATFORMS
|
|||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
actionmailer (~> 5.1)
|
||||||
|
actionpack (~> 5.1)
|
||||||
|
actionview (~> 5.1)
|
||||||
active_model_serializers (~> 0.8.3)
|
active_model_serializers (~> 0.8.3)
|
||||||
|
activemodel (~> 5.1)
|
||||||
|
activerecord (~> 5.1)
|
||||||
|
activesupport (~> 5.1)
|
||||||
annotate
|
annotate
|
||||||
aws-sdk
|
aws-sdk
|
||||||
barber
|
barber
|
||||||
@ -464,8 +456,8 @@ DEPENDENCIES
|
|||||||
r2 (~> 0.2.5)
|
r2 (~> 0.2.5)
|
||||||
rack-mini-profiler
|
rack-mini-profiler
|
||||||
rack-protection
|
rack-protection
|
||||||
rails (~> 4.2)
|
rails_multisite (~> 1.1.0.rc4)
|
||||||
rails_multisite
|
railties (~> 5.1)
|
||||||
rake
|
rake
|
||||||
rb-fsevent
|
rb-fsevent
|
||||||
rb-inotify (~> 0.9)
|
rb-inotify (~> 0.9)
|
||||||
@ -486,8 +478,8 @@ DEPENDENCIES
|
|||||||
shoulda
|
shoulda
|
||||||
sidekiq
|
sidekiq
|
||||||
simple-rss
|
simple-rss
|
||||||
|
sprockets-rails
|
||||||
stackprof
|
stackprof
|
||||||
test_after_commit
|
|
||||||
thor
|
thor
|
||||||
tilt
|
tilt
|
||||||
uglifier
|
uglifier
|
||||||
|
Loading…
Reference in New Issue
Block a user