rmxp_extractor 1.9 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5522ce0108647d1ac9bd5f35e1c948a9ac38ef8865e6fee7866a4041d7a8fd7
4
- data.tar.gz: ff306e42d3e6965625deae7ed887fdc40fe99a6091e8fe882a795951293bc6dd
3
+ metadata.gz: aed16e5b7faa4074118ffb218c1ac41e3cb7185dc250d626b86d08975da03ee3
4
+ data.tar.gz: 5139e6cb843dd22a1b41ceadce1bd14140d6a8e9c33eb0cd63cc7eb5ce0dae49
5
5
  SHA512:
6
- metadata.gz: ddbeed6f31321882427c236a69d198b5c5d71879b5cce4b2831ad23f2e0b5695dd73a47ab17d0b727da06af020e1a787d45dd0dcbf634c7d8c480096602b618c
7
- data.tar.gz: 1e0257b3ea03a1a857c0996cf1c2e7bb392f31cdbaad90aeedb89fa3fa96cd38e3de72c85b0904e2cec174514e047726b6402b46c049e0e90b03b1771df900cf
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.exists? "./Data"
5
- exit 1 unless Dir.exists? "./Data"
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.exists? "./Data_#{format.upcase}"
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.exists? "./Data_#{format.upcase}"
4
- exit 1 unless Dir.exists? "./Data_#{format.upcase}"
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.exists? "./Data"
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.exists? scripts_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)
@@ -1,3 +1,3 @@
1
1
  module RMXPExtractor
2
- VERSION = "1.9"
2
+ VERSION = "2.0.0"
3
3
  end
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: '1.9'
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-03-19 00:00:00.000000000 Z
11
+ date: 2023-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj