Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 17 additions & 21 deletions scripts/jinx.lic
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@

author: elanthia-online
tags: utility, util, repository, repo, update, upgrade, meta, ruby, development
version: 0.8.0
version: 0.8.1

Changelog:
0.8.1 (2026-02-07)
fix constant redefinition on subsequent launches
0.8.0 (2026-01-08)
add GUI code from Nisugi's jinxgui script

0.7.3 (2025-12-14)
require pathname gem explicitly incase not loaded as part of Ruby std library

0.7.2 (2025-12-05)
prevent script running when load called on file
add new GS/DR mapdb-backup repositories

0.7.1 (2025-08-15)
Add auto-update command for bulk updates:
- New ;jinx auto-update command to check and update all installed assets
Expand All @@ -34,7 +33,6 @@
- Add --dry-run flag to preview updates without installing
- Excludes engine assets from auto-update for safety
- Detailed reporting of successful and failed updates

0.7.0 (2025-08-14)
Major ergonomic improvements:
- Add smart asset type detection - no need to specify script/data/engine
Expand All @@ -43,7 +41,6 @@
- Better error messages with helpful suggestions
- Backward compatibility maintained for all existing commands
- Add --type flag to force specific asset type when needed

0.6.4 (2024-05-05)
Fix helper text if file exists to append --force to command
0.6.3 (2023-05-17)
Expand All @@ -53,7 +50,6 @@
Update for Ruby v3 compatibility
0.6.1 (2022-04-07)
Fix to prevent downloading data files as script and script files as data.

0.6.0 (2021-12-12)
Added pruning for deprecated repos

Expand All @@ -67,7 +63,7 @@ require 'net/https'
require 'net/http'
require 'open-uri'
require 'cgi'
require 'pathname'
require 'pathname' # rubocop:disable Lint/RedundantRequireStatement

module ::Lich
module Common
Expand Down Expand Up @@ -148,7 +144,7 @@ module ::Lich
module Common
module Jinx
module Opts
FLAG_PREFIX = "--"
FLAG_PREFIX = "--" unless defined?(FLAG_PREFIX)

def self.parse_command(h, c)
h[c.to_sym] = true
Expand Down Expand Up @@ -242,33 +238,33 @@ module ::Lich
ElanthiaOnlineCore = {
name: "core",
url: %[https://repo.elanthia.online]
}
} unless defined?(ElanthiaOnlineCore)

ElanthiaOnlineExtras = {
name: "elanthia-online",
url: %[https://extras.repo.elanthia.online]
}
} unless defined?(ElanthiaOnlineExtras)

FFNGLichRepoArchiveMirror = {
name: "mirror",
url: %[https://ffnglichrepoarchive.netlify.app]
}
} unless defined?(FFNGLichRepoArchiveMirror)

# deprecated
Gtk3ScriptUpdates = {
name: "gtk3",
url: %[https://gtk3.elanthia.online]
}
} unless defined?(Gtk3ScriptUpdates)

MapdbBackupGS = {
name: "mapdb-backup-gs",
url: %[https://elanthia-online.github.io/mapdb-backup-gs]
}
} unless defined?(MapdbBackupGS)

MapdbBackupDR = {
name: "mapdb-backup-dr",
url: %[https://elanthia-online.github.io/mapdb-backup-dr]
}
} unless defined?(MapdbBackupDR)
end
end
end
Expand All @@ -278,7 +274,7 @@ module ::Lich
module Common
module Jinx
module Folder
LOCK = Mutex.new
LOCK = Mutex.new unless defined?(LOCK)
# dynamic reference to the $data_dir/_jinx folder
# this will be useful for testing
def self.jinx_data_dir()
Expand Down Expand Up @@ -350,11 +346,11 @@ module ::Lich
module Common
module Jinx
module Repo
FILE = "repos.yaml" unless defined?(FILE)

class << self
include Enumerable

FILE = "repos.yaml"

def atomic()
Folder.atomic(FILE) { |repos| yield(repos) }
end
Expand Down Expand Up @@ -1084,7 +1080,7 @@ module ::Lich
end
}.freeze,
urnon: {}.freeze,
}.freeze
}.freeze unless defined?(HOOKS)

def self.run(repo, asset, local_asset)
if (h = hook_for(asset))
Expand Down Expand Up @@ -1132,7 +1128,7 @@ module ::Lich
module Common
module Jinx
module LichEngine
DEFAULT_ENGINE = "lich.rb"
DEFAULT_ENGINE = "lich.rb" unless defined?(DEFAULT_ENGINE)

def self.install(engine, sources, overwrite: false, force: false)
LichInstaller.install(
Expand Down Expand Up @@ -2564,7 +2560,7 @@ module ::Lich
# =====================
# Log Tab with size limit
# =====================
MAX_LOG_LINES = 10000
MAX_LOG_LINES = 10000 unless defined?(MAX_LOG_LINES)

def build_log_tab
@log_view = Gtk::TextView.new
Expand Down