Sha256: 6c7e4e5a2ae37beaa6fe1608788d41b47d755db8cf86bfb7141b023744424f84

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

#! /usr/bin/env ruby

require 'yaml'
require 'itaiji/fetcher'

fetcher = Itaiji::Fetcher.new

itaiji_sets = fetcher.fetch.to_h.inject({}) do |itaiji_sets, itaiji_set|
  itaiji_sets[itaiji_set.seijitai] = itaiji_set.itaijis
  itaiji_sets
end

itaiji_file_path = File.expand_path('../../source/itaji_list.yml', __FILE__)
File.write(itaiji_file_path, itaiji_sets.to_yaml)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itaiji-0.3.0 bin/fetch