mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix rubocop offenses
This commit is contained in:
parent
b1f6be8f49
commit
0bc9c16ffc
1 changed files with 7 additions and 8 deletions
|
@ -60,16 +60,15 @@ module ActionText
|
|||
hook_for :test_framework
|
||||
|
||||
private
|
||||
GEM_ROOT = "#{__dir__}/../../../.."
|
||||
|
||||
GEM_ROOT = "#{__dir__}/../../../.."
|
||||
def js_dependencies
|
||||
package_contents = File.read(Pathname.new("#{GEM_ROOT}/package.json"))
|
||||
js_package = JSON.load(package_contents)
|
||||
|
||||
def js_dependencies
|
||||
package_contents = File.read(Pathname.new("#{GEM_ROOT}/package.json"))
|
||||
js_package = JSON.load(package_contents)
|
||||
|
||||
js_package["peerDependencies"].dup.merge \
|
||||
js_package["name"] => "^#{js_package["version"]}"
|
||||
end
|
||||
js_package["peerDependencies"].dup.merge \
|
||||
js_package["name"] => "^#{js_package["version"]}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue