Project

vagalume

0.01
No commit activity in last 3 years
No release in over 3 years
Ruby interface for the Vagalume API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 2.14
~> 2.9
~> 1.17

Runtime

 Project Readme

vagalume-logo

A simple ruby interface to the Vagalume API. Also a command line utility to search song lyrics.

Install

If you are using bundler, add it to your Gemfile:

gem 'vagalume'

or you can just install it with

gem install vagalume

Usage

The usage is pretty simple:

require "vagalume"

result = Vagalume.find("Metallica", "The Unforgiven")

result.status # => Can be "exact", "aprox", "song_notfound" or "notfound"

song = result.song
song.id
song.name
song.language
song.url
song.lyric

artist = result.artist
artist.id
artist.name
artist.url

result.translations.with_language(Vagalume::Language::PORTUGUESE) # return a Song object

You can also use it from the command line:

vagalume Metallica - The Unforgiven

or passing the [-t] flag, to show the portuguese translation:

vagalume -t Metallica - The Unforgiven

It's also pretty good at finding approximations, so you can try something like that:

vagalume metalica - unforgiven

And everything should work fine.

Requirements

Ruby >= 1.8.7

License

Copyright (c) 2012 Brian Thomas Storti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Bitdeli Badge