ryo.rb: update to v0.4.3

This commit is contained in:
0x1eef 2023-09-17 00:53:00 -03:00
parent f4483b62e4
commit 57953cd819
3 changed files with 6 additions and 8 deletions

View file

@ -5,4 +5,4 @@ gem "paint", "~> 2.2"
gem "json", "~> 2.6" gem "json", "~> 2.6"
gem "standard", "~> 1.12" gem "standard", "~> 1.12"
gem "io-line.rb", "~> 0.1", github: "0x1eef/io-line.rb", tag: "v0.1.0" gem "io-line.rb", "~> 0.1", github: "0x1eef/io-line.rb", tag: "v0.1.0"
gem "ryo.rb", "~> 0.3", github: "0x1eef/ryo.rb", tag: "v0.4.0" gem "ryo.rb", "~> 0.4", github: "0x1eef/ryo.rb", tag: "v0.4.3"

View file

@ -8,10 +8,10 @@ GIT
GIT GIT
remote: https://github.com/0x1eef/ryo.rb.git remote: https://github.com/0x1eef/ryo.rb.git
revision: 274a63d6ae55392ccac2c0fbe95c384e92de47b6 revision: 2ad2a5d3a29cf94ff3313687c78dd3986884a8f0
tag: v0.4.0 tag: v0.4.3
specs: specs:
ryo.rb (0.4.0) ryo.rb (0.4.3)
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
@ -63,7 +63,7 @@ DEPENDENCIES
json (~> 2.6) json (~> 2.6)
nokogiri (~> 1.13) nokogiri (~> 1.13)
paint (~> 2.2) paint (~> 2.2)
ryo.rb (~> 0.3)! ryo.rb (~> 0.4)!
standard (~> 1.12) standard (~> 1.12)
BUNDLED WITH BUNDLED WITH

View file

@ -52,9 +52,7 @@ module Quran::JSON::Cmd
def write(surah_no, rows) def write(surah_no, rows)
mkdir_p(locale_dir) mkdir_p(locale_dir)
rows[0] = Ryo.table_of(metadata[surah_no - 1]) rows[0] = Ryo.table_of(metadata[surah_no - 1], recursive: true)
# FIXME: Add recursive support to table_of
rows[0]["name"] = Ryo.table_of(rows[0]["name"])
write_json File.join(locale_dir, "#{surah_no}.json"), rows write_json File.join(locale_dir, "#{surah_no}.json"), rows
end end