ryo.rb: update to v0.4.3
This commit is contained in:
parent
f4483b62e4
commit
57953cd819
3 changed files with 6 additions and 8 deletions
2
Gemfile
2
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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue