Skip to content

Commit

Permalink
chore(main) release 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed Sep 24, 2023
1 parent 9d4191b commit 8d0d7e5
Show file tree
Hide file tree
Showing 27 changed files with 6,042 additions and 9,084 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
lookbook (2.0.5)
lookbook (2.1.0)
activemodel
css_parser
htmlbeautifier (~> 1.3)
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lookbook-docs",
"version": "2.0.5",
"version": "2.1.0",
"private": true,
"scripts": {
"esbuild": "node esbuild.config.js --minify",
Expand Down
4 changes: 2 additions & 2 deletions lib/lookbook/cable/cable.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "action_cable/engine"
require_relative "./connection"
require_relative "./reload_channel"
require_relative "connection"
require_relative "reload_channel"

module Lookbook
class Cable
Expand Down
4 changes: 2 additions & 2 deletions lib/lookbook/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def hooks
@_hooks ||= HookStore.new
end

def run_hooks(event_name, *args)
def run_hooks(event_name, *)
hooks.for_event(event_name).each do |hook|
hook.call(Lookbook, *args)
hook.call(Lookbook, *)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/lookbook/file_watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def evented?

def file_watcher
@_file_watcher ||= begin
require_relative "./support/evented_file_update_checker"
require_relative "support/evented_file_update_checker"

EventedFileUpdateChecker
rescue LoadError
Expand Down
4 changes: 2 additions & 2 deletions lib/lookbook/helpers/class_names_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def build_tag_values(*args)
tag_values
end

def class_names(*args)
tokens = build_tag_values(*args).flat_map { |value| value.to_s.split(/\s+/) }.uniq
def class_names(*)
tokens = build_tag_values(*).flat_map { |value| value.to_s.split(/\s+/) }.uniq

safe_join(tokens, " ")
end
Expand Down
12 changes: 6 additions & 6 deletions lib/lookbook/helpers/ui_elements_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module UiElementsHelper
#
# @param name [Symbol, String] Name of the icon
# @param opts [Hash] Options hash
def icon(name, **opts)
lookbook_render :icon, name: name, **opts
def icon(name, **)
lookbook_render(:icon, name: name, **)
end

# Display a syntax-highlighted block of code.
Expand All @@ -35,13 +35,13 @@ def code(language = :html, **opts, &block)
end

# @api private
def prose(**opts, &block)
lookbook_render :prose, **opts, &block
def prose(**, &block)
lookbook_render(:prose, **, &block)
end

# @api private
def lookbook_tag(tag = :div, **attrs, &block)
lookbook_render :tag, tag: tag, **attrs, &block
def lookbook_tag(tag = :div, **, &block)
lookbook_render(:tag, tag: tag, **, &block)
end

# @api private
Expand Down
4 changes: 2 additions & 2 deletions lib/lookbook/stores/input_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def initialize(config = nil)
end
end

def add_input(input, *args)
store[normalize_name(input)] = build_config(input, *args)
def add_input(input, *)
store[normalize_name(input)] = build_config(input, *)
end

def get_input(input)
Expand Down
4 changes: 2 additions & 2 deletions lib/lookbook/stores/panel_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def initialize(config = nil)
load_config(config)
end

def add_panel(name, *args)
def add_panel(name, *)
if get_panel(name)
raise ConfigError.new("panel with name '#{name}' already exists", scope: "panels.config")
else
store[Utils.symbolize_name(name)] = build_config(name, *args)
store[Utils.symbolize_name(name)] = build_config(name, *)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/lookbook/support/service.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Lookbook
class Service
def self.call(*args, **kwargs, &block)
new(*args, **kwargs).call(&block)
def self.call(*, **, &block)
new(*, **).call(&block)
end
end
end
2 changes: 1 addition & 1 deletion lib/lookbook/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Lookbook
VERSION = "2.0.5"
VERSION = "2.1.0"
end
6 changes: 3 additions & 3 deletions lib/lookbook/websocket.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module Lookbook
class Websocket
class << self
def new(mount_path, **kwargs)
require_relative "./cable/cable"
def new(mount_path, **)
require_relative "cable/cable"

Cable.new(mount_path, **kwargs)
Cable.new(mount_path, **)
rescue LoadError
NullWebsocket.new
end
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lookbook",
"version": "2.0.5",
"version": "2.1.0",
"description": "A native development UI for ViewComponent",
"targets": {
"app": {
Expand Down
Loading

0 comments on commit 8d0d7e5

Please sign in to comment.