devroom.io/content/posts/2010-06-06-firefly-043-and-firefly-client-040-released.md

38 lines
1.1 KiB
Markdown
Raw Normal View History

2015-03-26 11:28:08 +00:00
+++
date = "2010-06-06"
title = "Firefly 0.4.3 and Firefly Client 0.4.0 released"
tags = ["Ruby", "gems", "urls", "firefly", "shortener"]
slug = "firefly-043-and-firefly-client-040-released"
+++
Today version 0.4.3 of Firefly was released with some minor updates. To complete the package, a new gem [firefly-client][1] has been released.
The client library allows your Ruby application to easily shorten URLs with a remote Firefly server. It's very easy to use and lightweight.
[1]: http://github.com/ariejan/firefly-client
2017-03-20 15:35:19 +00:00
## Firefly 0.4.3 Changelog
2015-03-26 11:28:08 +00:00
* Handle invalid API keys correctly.
* Added a fix for MySQL users to update the `code` column to use the correct collation. Fixes [issue #9][2]
[2]: github.com/ariejan/firefly/issues/9
2017-03-20 15:35:19 +00:00
## Firefly Client
2015-03-26 11:28:08 +00:00
Using the Firefly Client is very easy, read the following snippet from the [README][3]:
2017-03-20 15:36:27 +00:00
``` ruby
2017-03-20 15:35:19 +00:00
require 'rubygems'
require 'firefly-client'
2015-03-26 11:28:08 +00:00
2017-03-20 15:35:19 +00:00
firefly = Firefly::Client.new("http://aj.gs", "my_api_key")
firefly.shorten("http://google.com")
=> "http://aj.gs/8ds"
```
2015-03-26 11:28:08 +00:00
Nice, huh? Get more info over at [github][1]
[3]: http://github.com/ariejan/firefly-client#readme