Jsonnet processor library. Wraps the official C++ implementation with a Ruby extension library.
Add this line to your application's Gemfile:
And then execute:
$ bundle install
Or install it yourself as:
$ gem install jsonnet
By default this gem will compile and install Jsonnet (v0.9.4) as part of installation. However you can use the system version of Jsonnet if you prefer. This would be the recommended route if you want to use a different version of Jsonnet or are having problems installing this.
To install libjsonnet:
$ git clone https://github.com/google/jsonnet.git $ cd jsonnet $ make libjsonnet.so $ sudo cp libjsonnet.so /usr/local/lib/libjsonnet.so $ sudo cp include/libjsonnet.h /usr/local/include/libjsonnet.h
Note: /usr/local/lib and /usr/local/include are used as they are library lookup locations. You may need to adjust these for your system if you have errors running this gem saying it can't open libjsonnet.so - on Ubuntu for instance I found /lib worked when /usr/local/lib did not.
To install this gem without jsonnet:
JSONNET_USE_SYSTEM_LIBRARIES ENV var:
$ JSONNET_USE_SYSTEM_LIBRARIES=1 bundle install
gem install jsonnet -- --use-system-libraries
TODO: Write usage instructions here
- Fork it ( https://github.com/yugui/ruby-jsonnet/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request