lib/hanami/assets.rb in hanami-assets-1.3.4 vs lib/hanami/assets.rb in hanami-assets-1.3.5
- old
+ new
@@ -1,7 +1,9 @@
-require 'hanami/utils/class_attribute'
+# frozen_string_literal: true
+require "hanami/utils/class_attribute"
+
# Hanami
#
# @since 0.1.0
module Hanami
# Assets management for Ruby web applications
@@ -14,14 +16,14 @@
#
# @since 0.1.0
class Error < ::StandardError
end
- require 'hanami/assets/version'
- require 'hanami/assets/configuration'
- require 'hanami/assets/config/global_sources'
- require 'hanami/assets/helpers'
+ require "hanami/assets/version"
+ require "hanami/assets/configuration"
+ require "hanami/assets/config/global_sources"
+ require "hanami/assets/helpers"
include Utils::ClassAttribute
# Configuration
#
@@ -46,22 +48,22 @@
# Prepare assets for deploys
#
# @since 0.1.0
def self.deploy
- require 'hanami/assets/precompiler'
- require 'hanami/assets/bundler'
+ require "hanami/assets/precompiler"
+ require "hanami/assets/bundler"
Precompiler.new(configuration, duplicates).run
Bundler.new(configuration, duplicates).run
end
# Precompile assets
#
# @since 0.4.0
def self.precompile(configurations)
- require 'hanami/assets/precompiler'
- require 'hanami/assets/bundler'
+ require "hanami/assets/precompiler"
+ require "hanami/assets/bundler"
Precompiler.new(configuration, configurations).run
Bundler.new(configuration, configurations).run
end