From 2b1262066d10cacbf39b3738570c172e96719544 Mon Sep 17 00:00:00 2001 From: mr Date: Sat, 21 Sep 2024 10:57:45 -0700 Subject: [PATCH] add tocversion to node, update to TWW --- Gemfile | 1 + Gemfile.lock | 11 +++++++++++ public/node.rb | 5 ++++- public/weak_aura.rb | 1 - public/weak_aura/dynamic_group.rb | 1 - public/weak_aura/group.rb | 1 - public/weak_aura/icon.rb | 1 - 7 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index d5cc832..ab237af 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,7 @@ source 'https://rubygems.org' # gem 'ruby_wasm', github: 'ruby/ruby.wasm' +gem 'ruby-lsp' group :development do gem 'rubocop' diff --git a/Gemfile.lock b/Gemfile.lock index 12962f6..7de6d67 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -37,6 +37,7 @@ GEM listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) + logger (1.6.1) lumberjack (1.2.10) method_source (1.1.0) nenv (0.3.0) @@ -47,6 +48,7 @@ GEM parser (3.3.0.2) ast (~> 2.4.1) racc + prism (1.0.0) pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) @@ -57,6 +59,8 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) + rbs (3.5.3) + logger rdoc (6.7.0) psych (>= 4.0.0) regexp_parser (2.9.0) @@ -89,6 +93,11 @@ GEM unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.30.0) parser (>= 3.2.1.0) + ruby-lsp (0.18.1) + language_server-protocol (~> 3.17.0) + prism (~> 1.0) + rbs (>= 3, < 4) + sorbet-runtime (>= 0.5.10782) ruby-progressbar (1.13.0) shellany (0.0.1) simplecov (0.22.0) @@ -97,6 +106,7 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) + sorbet-runtime (0.5.11577) stringio (3.1.1) thor (1.3.1) unicode-display_width (2.5.0) @@ -114,6 +124,7 @@ DEPENDENCIES json_pure rspec rubocop + ruby-lsp simplecov BUNDLED WITH diff --git a/public/node.rb b/public/node.rb index 81195f3..ed5e818 100644 --- a/public/node.rb +++ b/public/node.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +TOC_VERSION = 110_002 + WOW_SPECS = { blood_deathknight: 250, frost_deathknight: 251, @@ -243,6 +245,7 @@ def hide_ooc! # rubocop:disable Metrics/MethodLength end def as_json - { load: load, triggers: triggers, actions: actions, conditions: conditions } + { load: load, triggers: triggers, actions: actions, conditions: conditions, + tocversion: TOC_VERSION } end end diff --git a/public/weak_aura.rb b/public/weak_aura.rb index ceea338..724cdb5 100644 --- a/public/weak_aura.rb +++ b/public/weak_aura.rb @@ -65,7 +65,6 @@ def as_json # rubocop:disable Metrics/MethodLength }, internalVersion: 70, yOffset: 99.999755859375, - tocversion: 100_200, id: id, borderOffset: 4, frameStrata: 1, diff --git a/public/weak_aura/dynamic_group.rb b/public/weak_aura/dynamic_group.rb index 131b710..2b1d746 100644 --- a/public/weak_aura/dynamic_group.rb +++ b/public/weak_aura/dynamic_group.rb @@ -118,7 +118,6 @@ def as_json # rubocop:disable Metrics/MethodLength uid: uid, constantFactor: 'RADIUS', borderOffset: 4, - tocversion: 100_200, id: id, rotation: 0, frameStrata: 1, diff --git a/public/weak_aura/group.rb b/public/weak_aura/group.rb index ef64d3a..5b862a9 100644 --- a/public/weak_aura/group.rb +++ b/public/weak_aura/group.rb @@ -64,7 +64,6 @@ def as_json # rubocop:disable Metrics/MethodLength }, internalVersion: 70, yOffset: 99.999755859375, - tocversion: 100_200, id: id, borderOffset: 4, frameStrata: 1, diff --git a/public/weak_aura/icon.rb b/public/weak_aura/icon.rb index 2f4c028..4e57d37 100644 --- a/public/weak_aura/icon.rb +++ b/public/weak_aura/icon.rb @@ -109,7 +109,6 @@ def as_json # rubocop:disable Metrics/MethodLength 1, 1 ], - tocversion: 100_200, id: id, config: [], alpha: 1,