rmxp_extractor 1.9 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +40 -40
- data/README.md +2 -0
- data/lib/rmxp_extractor/data_export.rb +3 -3
- data/lib/rmxp_extractor/data_import.rb +3 -3
- data/lib/rmxp_extractor/script_handler.rb +1 -1
- data/lib/rmxp_extractor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aed16e5b7faa4074118ffb218c1ac41e3cb7185dc250d626b86d08975da03ee3
|
4
|
+
data.tar.gz: 5139e6cb843dd22a1b41ceadce1bd14140d6a8e9c33eb0cd63cc7eb5ce0dae49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db84fb72028a65bb5182e58c403ba04348e65ed0ef64ff812c7e53154fce0f4f0b01542b7ae687e60a1496ddbbbbd230a03911c40d1acdcab2962d2e1ab7737f
|
7
|
+
data.tar.gz: 878dbe5759ec37f5453737bbd877f3273fcb97f1d9c89fe1ff118bf7c19f9b61c50f7e0a4e02ea008f80125d1e2c7dc18560cd7794d82ad1fe524df354b75c93
|
data/Gemfile.lock
CHANGED
@@ -1,40 +1,40 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
rmxp_extractor (1.9)
|
5
|
-
fileutils
|
6
|
-
json
|
7
|
-
oj
|
8
|
-
pathname
|
9
|
-
ruby-progressbar
|
10
|
-
zlib
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: https://rubygems.org/
|
14
|
-
specs:
|
15
|
-
amazing_print (1.4.0)
|
16
|
-
fileutils (1.6.0)
|
17
|
-
json (2.6.1)
|
18
|
-
oj (3.13.11)
|
19
|
-
pathname (0.2.0)
|
20
|
-
ruby-progressbar (1.11.0)
|
21
|
-
yaml (0.1.1)
|
22
|
-
zlib (2.1.1)
|
23
|
-
|
24
|
-
PLATFORMS
|
25
|
-
x64-mingw-ucrt
|
26
|
-
x86_64-linux
|
27
|
-
|
28
|
-
DEPENDENCIES
|
29
|
-
amazing_print
|
30
|
-
fileutils
|
31
|
-
json
|
32
|
-
oj
|
33
|
-
pathname
|
34
|
-
rmxp_extractor!
|
35
|
-
ruby-progressbar
|
36
|
-
yaml
|
37
|
-
zlib
|
38
|
-
|
39
|
-
BUNDLED WITH
|
40
|
-
2.2.32
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rmxp_extractor (1.9.1)
|
5
|
+
fileutils
|
6
|
+
json
|
7
|
+
oj
|
8
|
+
pathname
|
9
|
+
ruby-progressbar
|
10
|
+
zlib
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: https://rubygems.org/
|
14
|
+
specs:
|
15
|
+
amazing_print (1.4.0)
|
16
|
+
fileutils (1.6.0)
|
17
|
+
json (2.6.1)
|
18
|
+
oj (3.13.11)
|
19
|
+
pathname (0.2.0)
|
20
|
+
ruby-progressbar (1.11.0)
|
21
|
+
yaml (0.1.1)
|
22
|
+
zlib (2.1.1)
|
23
|
+
|
24
|
+
PLATFORMS
|
25
|
+
x64-mingw-ucrt
|
26
|
+
x86_64-linux
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
amazing_print
|
30
|
+
fileutils
|
31
|
+
json
|
32
|
+
oj
|
33
|
+
pathname
|
34
|
+
rmxp_extractor!
|
35
|
+
ruby-progressbar
|
36
|
+
yaml
|
37
|
+
zlib
|
38
|
+
|
39
|
+
BUNDLED WITH
|
40
|
+
2.2.32
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# RMXP-Extractor
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/rmxp_extractor.svg)](https://badge.fury.io/rb/rmxp_extractor)![Gem](https://img.shields.io/gem/dt/rmxp_extractor)
|
3
|
+
---
|
2
4
|
|
3
5
|
A tool designed to dump rxdata to various git compatible formats. Some work better than others, though.
|
4
6
|
YAML is slow in comparison to JSON. I'd suggest sticking to JSON generally.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module RMXPExtractor
|
2
2
|
def self.export(format)
|
3
3
|
format ||= "json"
|
4
|
-
STDERR.puts "No Data Directory!" unless Dir.
|
5
|
-
exit 1 unless Dir.
|
4
|
+
STDERR.puts "No Data Directory!" unless Dir.exist? "./Data"
|
5
|
+
exit 1 unless Dir.exist? "./Data"
|
6
6
|
|
7
7
|
require "json"
|
8
8
|
require "yaml"
|
@@ -31,7 +31,7 @@ module RMXPExtractor
|
|
31
31
|
progress_mark: "█",
|
32
32
|
unknown_progress_animation_steps: ["==>", ">==", "=>="],
|
33
33
|
)
|
34
|
-
Dir.mkdir "./Data_#{format.upcase}" unless Dir.
|
34
|
+
Dir.mkdir "./Data_#{format.upcase}" unless Dir.exist? "./Data_#{format.upcase}"
|
35
35
|
paths = Pathname.glob(("./Data/" + ("*" + ".rxdata")))
|
36
36
|
count = paths.size
|
37
37
|
progress.total = count
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module RMXPExtractor
|
2
2
|
def self.import(format)
|
3
|
-
STDERR.puts "No Data_JSON Directory!" unless Dir.
|
4
|
-
exit 1 unless Dir.
|
3
|
+
STDERR.puts "No Data_JSON Directory!" unless Dir.exist? "./Data_#{format.upcase}"
|
4
|
+
exit 1 unless Dir.exist? "./Data_#{format.upcase}"
|
5
5
|
|
6
6
|
require "oj"
|
7
7
|
require "yaml"
|
@@ -30,7 +30,7 @@ module RMXPExtractor
|
|
30
30
|
progress_mark: "█",
|
31
31
|
unknown_progress_animation_steps: ["==>", ">==", "=>="],
|
32
32
|
)
|
33
|
-
Dir.mkdir "./Data" unless Dir.
|
33
|
+
Dir.mkdir "./Data" unless Dir.exist? "./Data"
|
34
34
|
paths = Pathname.glob(("./Data_#{format.upcase}/" + ("*" + ".#{format}")))
|
35
35
|
count = paths.size
|
36
36
|
progress.total = count
|
@@ -17,7 +17,7 @@ module RMXPExtractor
|
|
17
17
|
|
18
18
|
if extract
|
19
19
|
# Make sure the script directory exists
|
20
|
-
Dir.mkdir(scripts_dir) unless Dir.
|
20
|
+
Dir.mkdir(scripts_dir) unless Dir.exist? scripts_dir
|
21
21
|
|
22
22
|
# Keep track of names of scripts extracted so we can warn about duplicates
|
23
23
|
names = Hash.new(0)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmxp_extractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speak2Erase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|