https://github.com/tcd/json_table_format
https://github.com/tcd/json_table_format
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tcd/json_table_format
- Owner: tcd
- License: mit
- Created: 2022-01-08T16:49:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-10T23:53:53.000Z (over 4 years ago)
- Last Synced: 2025-01-03T08:14:15.599Z (over 1 year ago)
- Language: Ruby
- Size: 150 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# JsonTableFormat
[][rubygems]
[][travis-ci]
[][coveralls]
[][license]
[][docs]
[rubygems]: https://rubygems.org/gems/eddy
[travis-ci]: https://travis-ci.org/tcd/eddy
[coveralls]: https://coveralls.io/github/tcd/eddy?branch=master
[license]: https://github.com/tcd/eddy/blob/master/LICENSE.txt
[docs]: https://www.rubydoc.info/gems/json_table_format/0.1.0
## given this input:
```json
{
"firstName": {
"type": "string",
"description": "The person's first name."
},
"lastName": {
"type": "string",
"description": "The person's last name."
},
"age": {
"description": "Age in years which must be equal to or greater than zero.",
"type": "integer",
"minimum": 0
}
}
```
## produce this output:
```json
{
"firstName": { "type": "string", "description": "The person's first name." },
"lastName": { "type": "string", "description": "The person's last name." },
"age": { "type": "integer", "description": "Age in years which must be equal to or greater than zero.", "minimum": 0 }
}
```
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'json_table_format'
```
And then execute:
$ bundle install
Or install it yourself as:
$ gem install json_table_format
## Usage
TODO: Write usage instructions here
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/tcd/json_table_format.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).