From 57953cd8190cbdee970c704fa7dae0c8deb4440b Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 17 Sep 2023 00:53:00 -0300 Subject: [PATCH] ryo.rb: update to v0.4.3 --- Gemfile | 2 +- Gemfile.lock | 8 ++++---- lib/quran-json/quran/json/cmd/pull.rb | 4 +--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index e3a6492..acb308f 100644 --- a/Gemfile +++ b/Gemfile @@ -5,4 +5,4 @@ gem "paint", "~> 2.2" gem "json", "~> 2.6" gem "standard", "~> 1.12" 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" diff --git a/Gemfile.lock b/Gemfile.lock index a6eb76a..fa36db6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,10 +8,10 @@ GIT GIT remote: https://github.com/0x1eef/ryo.rb.git - revision: 274a63d6ae55392ccac2c0fbe95c384e92de47b6 - tag: v0.4.0 + revision: 2ad2a5d3a29cf94ff3313687c78dd3986884a8f0 + tag: v0.4.3 specs: - ryo.rb (0.4.0) + ryo.rb (0.4.3) GEM remote: https://rubygems.org/ @@ -63,7 +63,7 @@ DEPENDENCIES json (~> 2.6) nokogiri (~> 1.13) paint (~> 2.2) - ryo.rb (~> 0.3)! + ryo.rb (~> 0.4)! standard (~> 1.12) BUNDLED WITH diff --git a/lib/quran-json/quran/json/cmd/pull.rb b/lib/quran-json/quran/json/cmd/pull.rb index ffe4657..5896245 100644 --- a/lib/quran-json/quran/json/cmd/pull.rb +++ b/lib/quran-json/quran/json/cmd/pull.rb @@ -52,9 +52,7 @@ module Quran::JSON::Cmd def write(surah_no, rows) mkdir_p(locale_dir) - rows[0] = Ryo.table_of(metadata[surah_no - 1]) - # FIXME: Add recursive support to table_of - rows[0]["name"] = Ryo.table_of(rows[0]["name"]) + rows[0] = Ryo.table_of(metadata[surah_no - 1], recursive: true) write_json File.join(locale_dir, "#{surah_no}.json"), rows end