Run rubocop -A
This commit is contained in:
parent
3bbe8cf165
commit
145d5a4399
3 changed files with 6 additions and 2 deletions
1
Gemfile
1
Gemfile
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
##
|
||||
|
|
1
Rules
1
Rules
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "ryo"
|
||||
require "nanoc-gunzip"
|
||||
require "nanoc-webpack"
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Helper
|
||||
def inline_json(path)
|
||||
className = File.basename(path, File.extname(path))
|
||||
"<script class='json #{className}' type='application/json'>" \
|
||||
class_name = File.basename(path, File.extname(path))
|
||||
"<script class='json #{class_name}' type='application/json'>" \
|
||||
"#{items[path].compiled_content}" \
|
||||
"</script>"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue