You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

imgurruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgurruby

1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Imgur Ruby

Based on Cubee's imgur-ruby script.

Installation

Add this line to your application's Gemfile

gem "imgurruby", "~> 0.0.3"

For the latest version:

gem "imgurruby", :git => 'https://github.com/asithade/imgur-ruby'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install imgurruby

Usage

@image = Imgurruby::Imgur.new('YOUR_API_KEY')
@image.upload(params[:file])

You can then access the url/error by calling

@image.url

Contributing

I'm quite a newbie with Ruby, so feel free to add your own insight!

  • Fork it ( http://github.com//imgurruby/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 new Pull Request

FAQs

Package last updated on 10 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts