Fix ruby 2.7 deprecation warnings with ** (#443)
* Fix ruby 2.7 deprecation warnings with ** * dev in 2.6, test in 2.7 Co-authored-by: Neil Matatall <oreoshake@users.noreply.github.com>
This commit is contained in:
Родитель
8d2c23c63d
Коммит
3815ab4da0
|
@ -1,5 +1,5 @@
|
|||
name: Build + Test
|
||||
on: [pull_request, push]
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -7,7 +7,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ruby: [ '2.4', '2.5', '2.6' ]
|
||||
ruby: [ '2.4', '2.5', '2.6', '2.7' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
|
@ -1 +1 @@
|
|||
2.6.5
|
||||
2.6.6
|
||||
|
|
|
@ -21,7 +21,7 @@ module SecureHeaders
|
|||
def nonced_stylesheet_link_tag(*args, &block)
|
||||
opts = extract_options(args).merge(nonce: _content_security_policy_nonce(:style))
|
||||
|
||||
stylesheet_link_tag(*args, opts, &block)
|
||||
stylesheet_link_tag(*args, **opts, &block)
|
||||
end
|
||||
|
||||
# Public: create a script tag using the content security policy nonce.
|
||||
|
@ -39,7 +39,7 @@ module SecureHeaders
|
|||
def nonced_javascript_include_tag(*args, &block)
|
||||
opts = extract_options(args).merge(nonce: _content_security_policy_nonce(:script))
|
||||
|
||||
javascript_include_tag(*args, opts, &block)
|
||||
javascript_include_tag(*args, **opts, &block)
|
||||
end
|
||||
|
||||
# Public: create a script Webpacker pack tag using the content security policy nonce.
|
||||
|
@ -49,7 +49,7 @@ module SecureHeaders
|
|||
def nonced_javascript_pack_tag(*args, &block)
|
||||
opts = extract_options(args).merge(nonce: _content_security_policy_nonce(:script))
|
||||
|
||||
javascript_pack_tag(*args, opts, &block)
|
||||
javascript_pack_tag(*args, **opts, &block)
|
||||
end
|
||||
|
||||
# Public: create a stylesheet Webpacker link tag using the content security policy nonce.
|
||||
|
@ -59,7 +59,7 @@ module SecureHeaders
|
|||
def nonced_stylesheet_pack_tag(*args, &block)
|
||||
opts = extract_options(args).merge(nonce: _content_security_policy_nonce(:style))
|
||||
|
||||
stylesheet_pack_tag(*args, opts, &block)
|
||||
stylesheet_pack_tag(*args, **opts, &block)
|
||||
end
|
||||
|
||||
# Public: use the content security policy nonce for this request directly.
|
||||
|
|
Загрузка…
Ссылка в новой задаче