summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gemfile11
-rw-r--r--Gemfile.lock312
-rw-r--r--app/controllers/api/salmon_controller.rb2
-rw-r--r--app/controllers/api/subscriptions_controller.rb8
-rw-r--r--app/controllers/api_controller.rb2
-rw-r--r--app/controllers/auth/registrations_controller.rb4
-rw-r--r--app/controllers/oauth/applications_controller.rb2
-rw-r--r--app/controllers/xrd_controller.rb4
-rw-r--r--app/models/account.rb6
-rw-r--r--app/models/application_record.rb3
-rw-r--r--app/models/favourite.rb2
-rw-r--r--app/models/follow.rb2
-rw-r--r--app/models/mention.rb2
-rw-r--r--app/models/status.rb2
-rw-r--r--app/models/stream_entry.rb2
-rw-r--r--app/models/user.rb2
-rwxr-xr-xbin/rails2
-rwxr-xr-xbin/setup29
-rwxr-xr-xbin/update29
-rw-r--r--config/application.rb5
-rw-r--r--config/boot.rb2
-rw-r--r--config/cable.yml9
-rw-r--r--config/environment.rb2
-rw-r--r--config/environments/development.rb29
-rw-r--r--config/environments/production.rb16
-rw-r--r--config/environments/test.rb10
-rw-r--r--config/initializers/application_controller_renderer.rb6
-rw-r--r--config/initializers/cookies_serializer.rb2
-rw-r--r--config/initializers/new_framework_defaults.rb23
-rw-r--r--config/initializers/wrap_parameters.rb4
-rw-r--r--config/puma.rb52
-rw-r--r--config/secrets.yml2
-rw-r--r--db/schema.rb49
-rw-r--r--spec/controllers/accounts_controller_spec.rb8
-rw-r--r--spec/controllers/api/accounts/lookup_controller_spec.rb2
-rw-r--r--spec/controllers/api/accounts_controller_spec.rb12
-rw-r--r--spec/controllers/api/follows_controller_spec.rb2
-rw-r--r--spec/controllers/api/salmon_controller_spec.rb2
-rw-r--r--spec/controllers/api/statuses_controller_spec.rb2
-rw-r--r--spec/controllers/api/subscriptions_controller_spec.rb4
-rw-r--r--spec/controllers/auth/sessions_controller_spec.rb2
-rw-r--r--spec/controllers/settings_controller_spec.rb2
-rw-r--r--spec/controllers/statuses_controller_spec.rb4
-rw-r--r--spec/controllers/stream_entries_controller_spec.rb4
-rw-r--r--spec/controllers/xrd_controller_spec.rb4
-rw-r--r--spec/fabricators/account_fabricator.rb2
-rw-r--r--spec/rails_helper.rb2
47 files changed, 398 insertions, 291 deletions
diff --git a/Gemfile b/Gemfile
index 4fb7b2a730f..a0c8de164f3 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,6 @@
source 'https://rubygems.org'
-gem 'rails', '4.2.5.2'
+gem 'rails', '5.0.0.1'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
@@ -15,7 +15,6 @@ gem 'pg'
gem 'dotenv-rails'
gem 'font-awesome-rails'
-gem 'paranoia', '~> 2.0'
gem 'paperclip', '~> 4.3'
gem 'http'
@@ -34,15 +33,14 @@ gem 'fast_blank'
gem 'htmlentities'
gem 'onebox'
gem 'simple_form'
-gem 'will_paginate', '~> 3.0.6'
+gem 'will_paginate'
gem 'rack-attack'
-gem 'turbolinks', '~> 5.0.0.beta'
+gem 'turbolinks'
gem 'sidekiq'
-gem 'sinatra', :require => nil
+gem 'sinatra', require: nil, github: 'sinatra'
group :development, :test do
gem 'rspec-rails'
- gem 'quiet_assets'
gem 'pry-rails'
gem 'fuubar'
gem 'fabrication'
@@ -55,7 +53,6 @@ group :test do
end
group :development do
- gem 'web-console', '~> 2.0'
gem 'rubocop', require: false
gem 'better_errors'
gem 'binding_of_caller'
diff --git a/Gemfile.lock b/Gemfile.lock
index 37ec40b4849..93ff50b6c93 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,44 +1,58 @@
+GIT
+ remote: git://github.com/sinatra/sinatra.git
+ revision: 6b5a0ef3a4598366138fefe3f2b696ddeb371f3c
+ specs:
+ rack-protection (2.0.0)
+ rack
+ sinatra (2.0.0.pre.alpha)
+ mustermann (~> 0.4)
+ rack (~> 2.0)
+ rack-protection (~> 2.0)
+ tilt (~> 2.0)
+
GEM
remote: https://rubygems.org/
specs:
- actionmailer (4.2.5.2)
- actionpack (= 4.2.5.2)
- actionview (= 4.2.5.2)
- activejob (= 4.2.5.2)
+ actioncable (5.0.0.1)
+ actionpack (= 5.0.0.1)
+ nio4r (~> 1.2)
+ websocket-driver (~> 0.6.1)
+ actionmailer (5.0.0.1)
+ actionpack (= 5.0.0.1)
+ actionview (= 5.0.0.1)
+ activejob (= 5.0.0.1)
mail (~> 2.5, >= 2.5.4)
- rails-dom-testing (~> 1.0, >= 1.0.5)
- actionpack (4.2.5.2)
- actionview (= 4.2.5.2)
- activesupport (= 4.2.5.2)
- rack (~> 1.6)
- rack-test (~> 0.6.2)
- rails-dom-testing (~> 1.0, >= 1.0.5)
+ rails-dom-testing (~> 2.0)
+ actionpack (5.0.0.1)
+ actionview (= 5.0.0.1)
+ activesupport (= 5.0.0.1)
+ rack (~> 2.0)
+ rack-test (~> 0.6.3)
+ rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
- actionview (4.2.5.2)
- activesupport (= 4.2.5.2)
+ actionview (5.0.0.1)
+ activesupport (= 5.0.0.1)
builder (~> 3.1)
erubis (~> 2.7.0)
- rails-dom-testing (~> 1.0, >= 1.0.5)
+ rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
- activejob (4.2.5.2)
- activesupport (= 4.2.5.2)
- globalid (>= 0.3.0)
- activemodel (4.2.5.2)
- activesupport (= 4.2.5.2)
- builder (~> 3.1)
- activerecord (4.2.5.2)
- activemodel (= 4.2.5.2)
- activesupport (= 4.2.5.2)
- arel (~> 6.0)
- activesupport (4.2.5.2)
+ activejob (5.0.0.1)
+ activesupport (= 5.0.0.1)
+ globalid (>= 0.3.6)
+ activemodel (5.0.0.1)
+ activesupport (= 5.0.0.1)
+ activerecord (5.0.0.1)
+ activemodel (= 5.0.0.1)
+ activesupport (= 5.0.0.1)
+ arel (~> 7.0)
+ activesupport (5.0.0.1)
+ concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
- json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
- thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.4.0)
- arel (6.0.3)
- ast (2.2.0)
+ arel (7.1.1)
+ ast (2.3.0)
bcrypt (3.1.11)
better_errors (2.1.1)
coderay (>= 1.0.0)
@@ -47,9 +61,9 @@ GEM
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.2.2)
- bullet (5.0.0)
+ bullet (5.3.0)
activesupport (>= 3.0.0)
- uniform_notifier (~> 1.9.0)
+ uniform_notifier (~> 1.10.0)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.8)
@@ -62,38 +76,37 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.10.0)
- concurrent-ruby (1.0.1)
+ concurrent-ruby (1.0.2)
connection_pool (2.2.0)
crack (0.4.3)
safe_yaml (~> 1.0.0)
debug_inspector (0.0.2)
- devise (3.5.6)
+ devise (4.2.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
- railties (>= 3.2.6, < 5)
+ railties (>= 4.1.0, < 5.1)
responders
- thread_safe (~> 0.1)
warden (~> 1.2.3)
diff-lcs (1.2.5)
docile (1.1.5)
- domain_name (0.5.20160310)
+ domain_name (0.5.20160615)
unf (>= 0.0.5, < 1.0.0)
- doorkeeper (3.1.0)
- railties (>= 3.2)
- dotenv (2.1.0)
- dotenv-rails (2.1.0)
- dotenv (= 2.1.0)
+ doorkeeper (4.1.0)
+ railties (>= 4.2)
+ dotenv (2.1.1)
+ dotenv-rails (2.1.1)
+ dotenv (= 2.1.1)
railties (>= 4.0, < 5.1)
erubis (2.7.0)
- execjs (2.6.0)
- fabrication (2.15.0)
+ execjs (2.7.0)
+ fabrication (2.15.2)
fast_blank (1.0.0)
- font-awesome-rails (4.5.0.1)
+ font-awesome-rails (4.6.3.1)
railties (>= 3.2, < 5.1)
- fuubar (2.0.0)
+ fuubar (2.1.1)
rspec (~> 3.0)
ruby-progressbar (~> 1.4)
- globalid (0.3.6)
+ globalid (0.3.7)
activesupport (>= 4.1.0)
goldfinger (1.0.2)
addressable (~> 2.4)
@@ -125,7 +138,7 @@ GEM
http-form_data (1.0.1)
http_parser.rb (0.6.0)
i18n (0.7.0)
- jbuilder (2.4.1)
+ jbuilder (2.6.0)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
jquery-rails (4.1.1)
@@ -137,24 +150,30 @@ GEM
addressable (~> 2.3)
letter_opener (1.4.1)
launchy (~> 2.2)
- libv8 (3.16.14.13)
+ libv8 (3.16.14.15)
loofah (2.0.3)
nokogiri (>= 1.5.9)
- mail (2.6.3)
- mime-types (>= 1.16, < 3)
+ mail (2.6.4)
+ mime-types (>= 1.16, < 4)
memory_profiler (0.9.6)
method_source (0.8.2)
- mime-types (2.99.1)
+ mime-types (3.1)
+ mime-types-data (~> 3.2015)
+ mime-types-data (3.2016.0521)
mimemagic (0.3.0)
- mini_portile2 (2.0.0)
- minitest (5.8.4)
+ mini_portile2 (2.1.0)
+ minitest (5.9.0)
moneta (0.8.0)
- multi_json (1.11.2)
- mustache (1.0.2)
- nokogiri (1.6.7.2)
- mini_portile2 (~> 2.0.0.rc2)
- oj (2.14.6)
- onebox (1.5.35)
+ multi_json (1.12.1)
+ mustache (1.0.3)
+ mustermann (0.4.0)
+ tool (~> 0.2)
+ nio4r (1.2.1)
+ nokogiri (1.6.8)
+ mini_portile2 (~> 2.1.0)
+ pkg-config (~> 1.1.7)
+ oj (2.17.3)
+ onebox (1.5.48)
htmlentities (~> 4.3.4)
moneta (~> 0.8)
multi_json (~> 1.11)
@@ -165,55 +184,48 @@ GEM
addressable (~> 2.4)
http (~> 1.0)
nokogiri (~> 1.6)
- paperclip (4.3.6)
+ paperclip (4.3.7)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (= 0.3.0)
- paranoia (2.1.5)
- activerecord (~> 4.0)
- parser (2.3.0.6)
+ parser (2.3.1.2)
ast (~> 2.2)
pg (0.18.4)
+ pkg-config (1.1.7)
powerpack (0.1.1)
- pry (0.10.3)
+ pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-rails (0.3.4)
pry (>= 0.9.10)
- puma (3.2.0)
- quiet_assets (1.1.0)
- railties (>= 3.1, < 5.0)
- rabl (0.12.0)
+ puma (3.6.0)
+ rabl (0.13.0)
activesupport (>= 2.3.14)
- rack (1.6.4)
- rack-attack (4.4.1)
+ rack (2.0.1)
+ rack-attack (5.0.1)
rack
- rack-mini-profiler (0.9.9.2)
+ rack-mini-profiler (0.10.1)
rack (>= 1.2.0)
- rack-protection (1.5.3)
- rack
rack-test (0.6.3)
rack (>= 1.0)
- rails (4.2.5.2)
- actionmailer (= 4.2.5.2)
- actionpack (= 4.2.5.2)
- actionview (= 4.2.5.2)
- activejob (= 4.2.5.2)
- activemodel (= 4.2.5.2)
- activerecord (= 4.2.5.2)
- activesupport (= 4.2.5.2)
+ rails (5.0.0.1)
+ actioncable (= 5.0.0.1)
+ actionmailer (= 5.0.0.1)
+ actionpack (= 5.0.0.1)
+ actionview (= 5.0.0.1)
+ activejob (= 5.0.0.1)
+ activemodel (= 5.0.0.1)
+ activerecord (= 5.0.0.1)
+ activesupport (= 5.0.0.1)
bundler (>= 1.3.0, < 2.0)
- railties (= 4.2.5.2)
- sprockets-rails
- rails-deprecated_sanitizer (1.0.3)
- activesupport (>= 4.2.0.alpha)
- rails-dom-testing (1.0.7)
- activesupport (>= 4.2.0.beta, < 5.0)
+ railties (= 5.0.0.1)
+ sprockets-rails (>= 2.0.0)
+ rails-dom-testing (2.0.1)
+ activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6.0)
- rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rails_12factor (0.0.3)
@@ -222,57 +234,58 @@ GEM
rails_autolink (1.1.6)
rails (> 3.1)
rails_serve_static_assets (0.0.5)
- rails_stdout_logging (0.0.4)
- railties (4.2.5.2)
- actionpack (= 4.2.5.2)
- activesupport (= 4.2.5.2)
+ rails_stdout_logging (0.0.5)
+ railties (5.0.0.1)
+ actionpack (= 5.0.0.1)
+ activesupport (= 5.0.0.1)
+ method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (2.1.0)
- rake (11.1.1)
+ rake (11.2.2)
rdoc (4.2.2)
json (~> 1.4)
- redis (3.2.2)
+ redis (3.3.1)
ref (2.0.0)
- responders (2.1.1)
+ responders (2.3.0)
railties (>= 4.2.0, < 5.1)
- rspec (3.4.0)
- rspec-core (~> 3.4.0)
- rspec-expectations (~> 3.4.0)
- rspec-mocks (~> 3.4.0)
- rspec-core (3.4.4)
- rspec-support (~> 3.4.0)
- rspec-expectations (3.4.0)
+ rspec (3.5.0)
+ rspec-core (~> 3.5.0)
+ rspec-expectations (~> 3.5.0)
+ rspec-mocks (~> 3.5.0)
+ rspec-core (3.5.2)
+ rspec-support (~> 3.5.0)
+ rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
- rspec-support (~> 3.4.0)
- rspec-mocks (3.4.1)
+ rspec-support (~> 3.5.0)
+ rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
- rspec-support (~> 3.4.0)
- rspec-rails (3.4.2)
- actionpack (>= 3.0, < 4.3)
- activesupport (>= 3.0, < 4.3)
- railties (>= 3.0, < 4.3)
- rspec-core (~> 3.4.0)
- rspec-expectations (~> 3.4.0)
- rspec-mocks (~> 3.4.0)
- rspec-support (~> 3.4.0)
+ rspec-support (~> 3.5.0)
+ rspec-rails (3.5.1)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec-core (~> 3.5.0)
+ rspec-expectations (~> 3.5.0)
+ rspec-mocks (~> 3.5.0)
+ rspec-support (~> 3.5.0)
rspec-sidekiq (2.2.0)
rspec (~> 3.0, >= 3.0.0)
sidekiq (>= 2.4.0)
- rspec-support (3.4.1)
- rubocop (0.38.0)
- parser (>= 2.3.0.6, < 3.0)
+ rspec-support (3.5.0)
+ rubocop (0.42.0)
+ parser (>= 2.3.1.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
- ruby-progressbar (1.7.5)
- ruby_parser (3.8.1)
+ ruby-progressbar (1.8.1)
+ ruby_parser (3.8.2)
sexp_processor (~> 4.1)
safe_yaml (1.0.4)
- sass (3.4.21)
- sass-rails (5.0.4)
- railties (>= 4.0.0, < 5.0)
+ sass (3.4.22)
+ sass-rails (5.0.6)
+ railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
@@ -281,27 +294,23 @@ GEM
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
sexp_processor (4.7.0)
- sidekiq (4.1.1)
+ sidekiq (4.1.2)
concurrent-ruby (~> 1.0)
connection_pool (~> 2.2, >= 2.2.0)
redis (~> 3.2, >= 3.2.1)
simple_form (3.2.1)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
- simplecov (0.11.2)
+ simplecov (0.12.0)
docile (~> 1.1.0)
- json (~> 1.8)
+ json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
- sinatra (1.4.7)
- rack (~> 1.5)
- rack-protection (~> 1.4)
- tilt (>= 1.3, < 3)
slop (3.6.0)
- sprockets (3.5.2)
+ sprockets (3.7.0)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
- sprockets-rails (3.0.4)
+ sprockets-rails (3.1.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
@@ -310,32 +319,30 @@ GEM
ref
thor (0.19.1)
thread_safe (0.3.5)
- tilt (2.0.2)
- turbolinks (5.0.0.beta2)
- turbolinks-source
- turbolinks-source (5.0.0.beta3)
+ tilt (2.0.5)
+ tool (0.2.3)
+ turbolinks (5.0.1)
+ turbolinks-source (~> 5)
+ turbolinks-source (5.0.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
- uglifier (2.7.2)
- execjs (&