TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'opic'
And then execute:
$ bundle
Or install it yourself as:
$ gem install opic
# Getting an existing opic
Opic.get 'decot.7', width: 200 # "https://opic.osu.edu/decot.7?width=200&aspect=s"
# Uploading a new opic
Opic.api_key = "xxxx"
file = File.new(some_kind_of_path)
Opic.post('decot.7', file) # true
- Fork it
- 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 new Pull Request