No commit activity in last 3 years
No release in over 3 years
An API and a CLI for Open Data Catalog of Tottori Prefecture.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10.6
>= 0
>= 0
>= 0

Runtime

~> 1.6.7
~> 0.19.1
 Project Readme

Version

TottoriOpenDataCatalog

This gem provides an API and a CLI for Open Data Catalog of Tottori Prefecture http://db.pref.tottori.jp/opendataResearch.nsf to generate a machine-readable catalog.

Installation

$ gem install tottori-opendata-catalog

Synopsis

API

Example1:

require 'tottori-opendata-catalog'
# TottoriOpenDataCatalog.get returns a nested ruby's object.
puts TottoriOpenDataCatalog.get

Example2: Without caching

require 'tottori-opendata-catalog'
# without caching which uses a local storage (/tmp).
puts TottoriOpenDataCatalog.get(cache:false)

CLI

$ tottori-opendata-catalog csv > catalog.csv
$ tottori-opendata-catalog json > catalog.json
$ tottori-opendata-catalog json --no-cache > catalog.json

Development

Specs

$ bundle install
$ bundle exec rake spec

Updating example/example.csv

$ bundle install
$ bundle exec ruby bin/tottori-opendata-catalog csv > example/example.csv

Author

Masayuki Higashino

License

The MIT License