1
0
Fork 0
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:
Vinicius Stock 2019-10-10 12:19:59 -04:00
parent b1f6be8f49
commit 0bc9c16ffc
No known key found for this signature in database
GPG key ID: 1A3EC85374C0969A

View file

@ -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