Typekitter
Allows you to interact with typekit APIs with a ruby client
Installation
Add this line to your application's Gemfile:
gem 'typekitter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install typekitter
Usage
typekitter commands:
typekitter display_token # Displays the current token in use
typekitter help [COMMAND] # Describe available commands or one specific command
typekitter kits_create --name=NAME # Creates a new draft kit, returns kit info. See help for options
typekitter kits_index # Display a list of all your typekits
typekitter save_token [value] # Saves the token to .typekitter-token
Use the help command to get more information about commands:
Usage:
typekitter kits_create --name=NAME
Options:
--name=NAME
[--domains=DOMAINS]
[--families=FAMILIES]
[--segmented-names=SEGMENTED_NAMES]
Creates a new draft kit, returns kit info. See help for options
Development
After checking out the repo, run bin/setup
to install dependencies. Then, 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
to create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
- Fork it ( https://github.com/[my-github-username]/typekitter/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