Update Ruby gems and Yarn packages.
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -31,7 +31,7 @@ gem 'puma'
|
|||||||
gem 'scenic'
|
gem 'scenic'
|
||||||
gem 'ipaddress_2'
|
gem 'ipaddress_2'
|
||||||
gem 'http'
|
gem 'http'
|
||||||
gem 'activerecord-hierarchical_query', git: "https://github.com/danbooru/activerecord-hierarchical_query"
|
gem 'activerecord-hierarchical_query'
|
||||||
gem 'http-cookie', git: "https://github.com/danbooru/http-cookie"
|
gem 'http-cookie', git: "https://github.com/danbooru/http-cookie"
|
||||||
gem 'pundit'
|
gem 'pundit'
|
||||||
gem 'mail'
|
gem 'mail'
|
||||||
|
|||||||
81
Gemfile.lock
81
Gemfile.lock
@@ -1,11 +1,3 @@
|
|||||||
GIT
|
|
||||||
remote: https://github.com/danbooru/activerecord-hierarchical_query
|
|
||||||
revision: ffc83a7153ed2e22330993d2fd8eff8426d2cff3
|
|
||||||
specs:
|
|
||||||
activerecord-hierarchical_query (1.3.0)
|
|
||||||
activerecord (>= 5.0, < 7.1)
|
|
||||||
pg (>= 0.21, < 1.3)
|
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: https://github.com/danbooru/dtext_rb.git
|
remote: https://github.com/danbooru/dtext_rb.git
|
||||||
revision: 954cd9aa52401108beed122fe93203b0beb8682a
|
revision: 954cd9aa52401108beed122fe93203b0beb8682a
|
||||||
@@ -80,6 +72,9 @@ GEM
|
|||||||
activerecord (7.0.2.2)
|
activerecord (7.0.2.2)
|
||||||
activemodel (= 7.0.2.2)
|
activemodel (= 7.0.2.2)
|
||||||
activesupport (= 7.0.2.2)
|
activesupport (= 7.0.2.2)
|
||||||
|
activerecord-hierarchical_query (1.4.1)
|
||||||
|
activerecord (>= 5.0, < 7.1)
|
||||||
|
pg (>= 0.21, < 1.4)
|
||||||
activestorage (7.0.2.2)
|
activestorage (7.0.2.2)
|
||||||
actionpack (= 7.0.2.2)
|
actionpack (= 7.0.2.2)
|
||||||
activejob (= 7.0.2.2)
|
activejob (= 7.0.2.2)
|
||||||
@@ -97,14 +92,14 @@ GEM
|
|||||||
ansi (1.5.0)
|
ansi (1.5.0)
|
||||||
ast (2.4.2)
|
ast (2.4.2)
|
||||||
aws-eventstream (1.2.0)
|
aws-eventstream (1.2.0)
|
||||||
aws-partitions (1.554.0)
|
aws-partitions (1.563.0)
|
||||||
aws-sdk-core (3.126.0)
|
aws-sdk-core (3.128.0)
|
||||||
aws-eventstream (~> 1, >= 1.0.2)
|
aws-eventstream (~> 1, >= 1.0.2)
|
||||||
aws-partitions (~> 1, >= 1.525.0)
|
aws-partitions (~> 1, >= 1.525.0)
|
||||||
aws-sigv4 (~> 1.1)
|
aws-sigv4 (~> 1.1)
|
||||||
jmespath (~> 1.0)
|
jmespath (~> 1.0)
|
||||||
aws-sdk-sqs (1.50.0)
|
aws-sdk-sqs (1.51.0)
|
||||||
aws-sdk-core (~> 3, >= 3.126.0)
|
aws-sdk-core (~> 3, >= 3.127.0)
|
||||||
aws-sigv4 (~> 1.1)
|
aws-sigv4 (~> 1.1)
|
||||||
aws-sigv4 (1.4.0)
|
aws-sigv4 (1.4.0)
|
||||||
aws-eventstream (~> 1, >= 1.0.2)
|
aws-eventstream (~> 1, >= 1.0.2)
|
||||||
@@ -112,7 +107,7 @@ GEM
|
|||||||
bcrypt (3.1.16)
|
bcrypt (3.1.16)
|
||||||
bcrypt_pbkdf (1.1.0)
|
bcrypt_pbkdf (1.1.0)
|
||||||
benchmark (0.2.0)
|
benchmark (0.2.0)
|
||||||
benchmark-ips (2.9.3)
|
benchmark-ips (2.10.0)
|
||||||
better_errors (2.9.1)
|
better_errors (2.9.1)
|
||||||
coderay (>= 1.0.0)
|
coderay (>= 1.0.0)
|
||||||
erubi (>= 1.0.0)
|
erubi (>= 1.0.0)
|
||||||
@@ -176,7 +171,7 @@ GEM
|
|||||||
tzinfo
|
tzinfo
|
||||||
factory_bot (6.2.0)
|
factory_bot (6.2.0)
|
||||||
activesupport (>= 5.0.0)
|
activesupport (>= 5.0.0)
|
||||||
faraday (1.9.3)
|
faraday (1.10.0)
|
||||||
faraday-em_http (~> 1.0)
|
faraday-em_http (~> 1.0)
|
||||||
faraday-em_synchrony (~> 1.0)
|
faraday-em_synchrony (~> 1.0)
|
||||||
faraday-excon (~> 1.1)
|
faraday-excon (~> 1.1)
|
||||||
@@ -212,7 +207,7 @@ GEM
|
|||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
globalid (1.0.0)
|
globalid (1.0.0)
|
||||||
activesupport (>= 5.0)
|
activesupport (>= 5.0)
|
||||||
good_job (2.9.6)
|
good_job (2.11.2)
|
||||||
activejob (>= 5.2.0)
|
activejob (>= 5.2.0)
|
||||||
activerecord (>= 5.2.0)
|
activerecord (>= 5.2.0)
|
||||||
concurrent-ruby (>= 1.0.2)
|
concurrent-ruby (>= 1.0.2)
|
||||||
@@ -221,7 +216,7 @@ GEM
|
|||||||
thor (>= 0.14.1)
|
thor (>= 0.14.1)
|
||||||
webrick (>= 1.3)
|
webrick (>= 1.3)
|
||||||
zeitwerk (>= 2.0)
|
zeitwerk (>= 2.0)
|
||||||
google-apis-bigquery_v2 (0.24.0)
|
google-apis-bigquery_v2 (0.25.0)
|
||||||
google-apis-core (>= 0.4, < 2.a)
|
google-apis-core (>= 0.4, < 2.a)
|
||||||
google-apis-core (0.4.2)
|
google-apis-core (0.4.2)
|
||||||
addressable (~> 2.5, >= 2.5.1)
|
addressable (~> 2.5, >= 2.5.1)
|
||||||
@@ -256,8 +251,8 @@ GEM
|
|||||||
google-cloud-core (~> 1.6)
|
google-cloud-core (~> 1.6)
|
||||||
googleauth (>= 0.16.2, < 2.a)
|
googleauth (>= 0.16.2, < 2.a)
|
||||||
mini_mime (~> 1.0)
|
mini_mime (~> 1.0)
|
||||||
googleauth (1.1.0)
|
googleauth (1.1.2)
|
||||||
faraday (>= 0.17.3, < 2.0)
|
faraday (>= 0.17.3, < 3.a)
|
||||||
jwt (>= 1.4, < 3.0)
|
jwt (>= 1.4, < 3.0)
|
||||||
memoist (~> 0.16)
|
memoist (~> 0.16)
|
||||||
multi_json (~> 1.11)
|
multi_json (~> 1.11)
|
||||||
@@ -273,12 +268,12 @@ GEM
|
|||||||
llhttp-ffi (~> 0.4.0)
|
llhttp-ffi (~> 0.4.0)
|
||||||
http-form_data (2.3.0)
|
http-form_data (2.3.0)
|
||||||
httpclient (2.8.3)
|
httpclient (2.8.3)
|
||||||
i18n (1.9.1)
|
i18n (1.10.0)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
io-wait (0.2.1)
|
io-wait (0.2.1)
|
||||||
ipaddress_2 (0.14.0)
|
ipaddress_2 (0.14.0)
|
||||||
jaro_winkler (1.5.4)
|
jaro_winkler (1.5.4)
|
||||||
jmespath (1.5.0)
|
jmespath (1.6.0)
|
||||||
json (2.6.1)
|
json (2.6.1)
|
||||||
jwt (2.3.0)
|
jwt (2.3.0)
|
||||||
kramdown (2.3.1)
|
kramdown (2.3.1)
|
||||||
@@ -303,7 +298,7 @@ GEM
|
|||||||
method_source (1.0.0)
|
method_source (1.0.0)
|
||||||
mini_histogram (0.3.1)
|
mini_histogram (0.3.1)
|
||||||
mini_mime (1.1.2)
|
mini_mime (1.1.2)
|
||||||
mini_portile2 (2.7.1)
|
mini_portile2 (2.8.0)
|
||||||
minitest (5.15.0)
|
minitest (5.15.0)
|
||||||
minitest-ci (3.4.0)
|
minitest-ci (3.4.0)
|
||||||
minitest (>= 5.0.6)
|
minitest (>= 5.0.6)
|
||||||
@@ -313,9 +308,9 @@ GEM
|
|||||||
minitest (>= 5.0)
|
minitest (>= 5.0)
|
||||||
ruby-progressbar
|
ruby-progressbar
|
||||||
mocha (1.13.0)
|
mocha (1.13.0)
|
||||||
mock_redis (0.29.0)
|
mock_redis (0.30.0)
|
||||||
ruby2_keywords
|
ruby2_keywords
|
||||||
msgpack (1.4.4)
|
msgpack (1.4.5)
|
||||||
multi_json (1.15.0)
|
multi_json (1.15.0)
|
||||||
multi_xml (0.6.0)
|
multi_xml (0.6.0)
|
||||||
multipart-post (2.1.1)
|
multipart-post (2.1.1)
|
||||||
@@ -334,13 +329,13 @@ GEM
|
|||||||
digest
|
digest
|
||||||
net-protocol
|
net-protocol
|
||||||
timeout
|
timeout
|
||||||
newrelic_rpm (8.4.0)
|
newrelic_rpm (8.5.0)
|
||||||
nio4r (2.5.8)
|
nio4r (2.5.8)
|
||||||
nokogiri (1.13.1)
|
nokogiri (1.13.3)
|
||||||
mini_portile2 (~> 2.7.0)
|
mini_portile2 (~> 2.8.0)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
oauth2 (1.4.7)
|
oauth2 (1.4.9)
|
||||||
faraday (>= 0.8, < 2.0)
|
faraday (>= 0.17.3, < 3.0)
|
||||||
jwt (>= 1.0, < 3.0)
|
jwt (>= 1.0, < 3.0)
|
||||||
multi_json (~> 1.3)
|
multi_json (~> 1.3)
|
||||||
multi_xml (~> 0.5)
|
multi_xml (~> 0.5)
|
||||||
@@ -348,9 +343,9 @@ GEM
|
|||||||
optimist (3.0.1)
|
optimist (3.0.1)
|
||||||
os (1.1.4)
|
os (1.1.4)
|
||||||
parallel (1.21.0)
|
parallel (1.21.0)
|
||||||
parser (3.1.0.0)
|
parser (3.1.1.0)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
pg (1.2.3)
|
pg (1.3.3)
|
||||||
prometheus-client (3.0.0)
|
prometheus-client (3.0.0)
|
||||||
pry (0.13.1)
|
pry (0.13.1)
|
||||||
coderay (~> 1.1)
|
coderay (~> 1.1)
|
||||||
@@ -363,18 +358,18 @@ GEM
|
|||||||
public_suffix (4.0.6)
|
public_suffix (4.0.6)
|
||||||
puma (5.6.2)
|
puma (5.6.2)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
puma-metrics (1.2.3)
|
puma-metrics (1.2.4)
|
||||||
prometheus-client (>= 0.10)
|
prometheus-client (>= 0.10)
|
||||||
puma (>= 3.0)
|
puma (>= 3.0)
|
||||||
puma_worker_killer (0.3.1)
|
puma_worker_killer (0.3.1)
|
||||||
get_process_mem (~> 0.2)
|
get_process_mem (~> 0.2)
|
||||||
puma (>= 2.7)
|
puma (>= 2.7)
|
||||||
pundit (2.1.1)
|
pundit (2.2.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
raabro (1.4.0)
|
raabro (1.4.0)
|
||||||
racc (1.6.0)
|
racc (1.6.0)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
rack-mini-profiler (2.3.3)
|
rack-mini-profiler (3.0.0)
|
||||||
rack (>= 1.2.0)
|
rack (>= 1.2.0)
|
||||||
rack-proxy (0.7.2)
|
rack-proxy (0.7.2)
|
||||||
rack
|
rack
|
||||||
@@ -441,8 +436,8 @@ GEM
|
|||||||
rubocop-ast (>= 1.15.1, < 2.0)
|
rubocop-ast (>= 1.15.1, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 1.4.0, < 3.0)
|
unicode-display_width (>= 1.4.0, < 3.0)
|
||||||
rubocop-ast (1.15.1)
|
rubocop-ast (1.16.0)
|
||||||
parser (>= 3.0.1.1)
|
parser (>= 3.1.1.0)
|
||||||
rubocop-rails (2.13.2)
|
rubocop-rails (2.13.2)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
@@ -456,7 +451,7 @@ GEM
|
|||||||
sanitize (6.0.0)
|
sanitize (6.0.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.12.0)
|
nokogiri (>= 1.12.0)
|
||||||
scenic (1.5.5)
|
scenic (1.6.0)
|
||||||
activerecord (>= 4.0.0)
|
activerecord (>= 4.0.0)
|
||||||
railties (>= 4.0.0)
|
railties (>= 4.0.0)
|
||||||
selenium-webdriver (4.1.0)
|
selenium-webdriver (4.1.0)
|
||||||
@@ -467,9 +462,9 @@ GEM
|
|||||||
shoulda-context (2.0.0)
|
shoulda-context (2.0.0)
|
||||||
shoulda-matchers (5.1.0)
|
shoulda-matchers (5.1.0)
|
||||||
activesupport (>= 5.2.0)
|
activesupport (>= 5.2.0)
|
||||||
signet (0.16.0)
|
signet (0.16.1)
|
||||||
addressable (~> 2.8)
|
addressable (~> 2.8)
|
||||||
faraday (>= 0.17.3, < 2.0)
|
faraday (>= 0.17.5, < 3.0)
|
||||||
jwt (>= 1.5, < 3.0)
|
jwt (>= 1.5, < 3.0)
|
||||||
multi_json (~> 1.10)
|
multi_json (~> 1.10)
|
||||||
simple_form (5.1.0)
|
simple_form (5.1.0)
|
||||||
@@ -480,7 +475,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.3)
|
simplecov_json_formatter (0.1.4)
|
||||||
solargraph (0.44.3)
|
solargraph (0.44.3)
|
||||||
backport (~> 1.2)
|
backport (~> 1.2)
|
||||||
benchmark
|
benchmark
|
||||||
@@ -496,8 +491,8 @@ GEM
|
|||||||
thor (~> 1.0)
|
thor (~> 1.0)
|
||||||
tilt (~> 2.0)
|
tilt (~> 2.0)
|
||||||
yard (~> 0.9, >= 0.9.24)
|
yard (~> 0.9, >= 0.9.24)
|
||||||
stackprof (0.2.17)
|
stackprof (0.2.19)
|
||||||
stripe (5.43.0)
|
stripe (5.45.0)
|
||||||
stripe-ruby-mock (3.0.1)
|
stripe-ruby-mock (3.0.1)
|
||||||
dante (>= 0.2.0)
|
dante (>= 0.2.0)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
@@ -518,7 +513,7 @@ GEM
|
|||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.8)
|
unf_ext (0.0.8)
|
||||||
unicode-display_width (2.1.0)
|
unicode-display_width (2.1.0)
|
||||||
view_component (2.49.0)
|
view_component (2.49.1)
|
||||||
activesupport (>= 5.0.0, < 8.0)
|
activesupport (>= 5.0.0, < 8.0)
|
||||||
method_source (~> 1.0)
|
method_source (~> 1.0)
|
||||||
webpacker (6.0.0.rc.6)
|
webpacker (6.0.0.rc.6)
|
||||||
@@ -541,7 +536,7 @@ PLATFORMS
|
|||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
activemodel-serializers-xml
|
activemodel-serializers-xml
|
||||||
activerecord-hierarchical_query!
|
activerecord-hierarchical_query
|
||||||
addressable
|
addressable
|
||||||
aws-sdk-sqs (~> 1)
|
aws-sdk-sqs (~> 1)
|
||||||
bcrypt
|
bcrypt
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
include Pundit
|
include Pundit::Authorization
|
||||||
helper_method :search_params, :permitted_attributes
|
helper_method :search_params, :permitted_attributes
|
||||||
|
|
||||||
self.responder = ApplicationResponder
|
self.responder = ApplicationResponder
|
||||||
@@ -207,7 +207,7 @@ class ApplicationController < ActionController::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def pundit_params_for(record)
|
def pundit_params_for(record)
|
||||||
params.fetch(PolicyFinder.new(record).param_key, {})
|
params.fetch(Pundit::PolicyFinder.new(record).param_key, {})
|
||||||
end
|
end
|
||||||
|
|
||||||
def requires_reauthentication
|
def requires_reauthentication
|
||||||
|
|||||||
Reference in New Issue
Block a user