rvpacker-txt 1.9.3 → 1.9.4
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 +4 -4
- data/bin/rvpacker-txt +16 -9
- data/lib/write.rb +1 -1
- data/rvpacker-txt.gemspec +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: c57413528c8aa902963d9df851562c6dab33d8edbcdd8e19ef2c5dd0a3f5fbf0
|
|
4
|
+
data.tar.gz: 0aec862409028ee0f116a2ea98d08104c97bd3027969dd3ac830dbdbcf576c88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a31f9ba7db0bd30345637c7701282191d842d053ccf38355331e1375f270fb6558fbfae4b2378174655c8968f5edba97354c2cee05ff580760c260db149c8e9
|
|
7
|
+
data.tar.gz: 2af993afb94e8d29705014bba95f655c26eec161da56f5715f9e7a069231e57456cd37b01678bd8de1148ac5f2d5858ff6c5b759902916eeb151569c2de9cc41
|
data/bin/rvpacker-txt
CHANGED
|
@@ -21,9 +21,11 @@ def self.parse_options
|
|
|
21
21
|
logging: false,
|
|
22
22
|
force: false,
|
|
23
23
|
append: false,
|
|
24
|
-
shuffle_level: 0
|
|
24
|
+
shuffle_level: 0,
|
|
25
|
+
silent: false }
|
|
25
26
|
|
|
26
27
|
options[:action] = ARGV[0]
|
|
28
|
+
options[:silent] = true unless ARGV.delete('--silent').nil?
|
|
27
29
|
|
|
28
30
|
unless %w[read write].include?(options[:action])
|
|
29
31
|
if %w[-h --help].include?(options[:action])
|
|
@@ -124,11 +126,13 @@ def self.parse_options
|
|
|
124
126
|
end
|
|
125
127
|
end
|
|
126
128
|
|
|
127
|
-
cmd.on('-l', '--log',
|
|
129
|
+
cmd.on('-l', '--log',
|
|
130
|
+
'Enables logging.') do
|
|
128
131
|
options[:logging] = true
|
|
129
132
|
end
|
|
130
133
|
|
|
131
|
-
cmd.on('-h', '--help',
|
|
134
|
+
cmd.on('-h', '--help',
|
|
135
|
+
"Prints the program's help message or for the entered subcommand.") do
|
|
132
136
|
puts cmd
|
|
133
137
|
exit
|
|
134
138
|
end
|
|
@@ -166,6 +170,7 @@ force = options[:force]
|
|
|
166
170
|
append = options[:append]
|
|
167
171
|
# @type [Boolean]
|
|
168
172
|
romanize = options[:romanize]
|
|
173
|
+
silent = options[:silent]
|
|
169
174
|
|
|
170
175
|
extensions = { xp: 'rxdata', vx: 'rvdata', ace: 'rvdata2' }
|
|
171
176
|
|
|
@@ -215,14 +220,16 @@ if options[:action] == 'read'
|
|
|
215
220
|
require 'read'
|
|
216
221
|
|
|
217
222
|
processing_mode = if force
|
|
218
|
-
|
|
223
|
+
unless options[:silent]
|
|
224
|
+
wait_time_start = Time.now
|
|
219
225
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
226
|
+
puts "WARNING! You're about to forcefully rewrite all your translation files, including _trans files.",
|
|
227
|
+
"If you really want to do it, make sure you've made a backup of your _trans files, if you made some changes in them already.",
|
|
228
|
+
"Input 'Y' to continue."
|
|
229
|
+
exit unless $stdin.gets.chomp == 'Y'
|
|
224
230
|
|
|
225
|
-
|
|
231
|
+
$wait_time += Time.now - wait_time_start
|
|
232
|
+
end
|
|
226
233
|
:force
|
|
227
234
|
elsif append
|
|
228
235
|
:append
|
data/lib/write.rb
CHANGED
|
@@ -444,7 +444,7 @@ def self.write_ini_title(ini_file_path, translated)
|
|
|
444
444
|
title_line_index = file_lines.each_with_index { |line, i| break i if line.downcase.start_with?('title') }
|
|
445
445
|
return if title_line_index.is_a?(Array)
|
|
446
446
|
|
|
447
|
-
file_lines[title_line_index] = translated
|
|
447
|
+
file_lines[title_line_index] = "title =#{translated}"
|
|
448
448
|
File.binwrite(ini_file_path, file_lines.join("\n"))
|
|
449
449
|
end
|
|
450
450
|
|
data/rvpacker-txt.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = 'rvpacker-txt'
|
|
5
|
-
spec.version = '1.9.
|
|
5
|
+
spec.version = '1.9.4'
|
|
6
6
|
spec.authors = ['Howard Jeng', 'Andrew Kesterson', 'Solistra', 'Darkness9724', 'savannstm']
|
|
7
7
|
spec.email = ['savannstm@gmail.com']
|
|
8
8
|
spec.summary = 'Reads RPG Maker XP/VX/VXAce game text to .txt files and writes them to their initial form.'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rvpacker-txt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Howard Jeng
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2024-07-
|
|
15
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
|
16
16
|
dependencies: []
|
|
17
17
|
description:
|
|
18
18
|
email:
|