lib/hanami/assets/bundler/manifest_entry.rb in hanami-assets-1.3.4 vs lib/hanami/assets/bundler/manifest_entry.rb in hanami-assets-1.3.5
- old
+ new
@@ -1,16 +1,18 @@
+# frozen_string_literal: true
+
module Hanami
module Assets
class Bundler
# Constructs a hash for a single asset's manifest file entry
#
# @since 0.3.0
# @api private
class ManifestEntry
# @since 0.3.0
# @api private
- SUBRESOURCE_INTEGRITY_SEPARATOR = '-'.freeze
+ SUBRESOURCE_INTEGRITY_SEPARATOR = "-"
# Return a new instance
#
# @since 0.3.0
# @api private
@@ -20,11 +22,11 @@
# A single entry for this asset, to go into manifest file
# @since 0.3.0
# @api private
def entry
- { name => values }
+ {name => values}
end
private
# @since 0.3.0
@@ -52,10 +54,10 @@
# @since 0.3.0
# @api private
def _convert_to_url(path)
path.sub(@asset.configuration.public_directory.to_s, URL_REPLACEMENT)
- .gsub(File::SEPARATOR, URL_SEPARATOR)
+ .gsub(File::SEPARATOR, URL_SEPARATOR)
end
end
end
end
end