0.0
No release in over 3 years
Low commit activity in last 3 years
This gem uses an existing logo generation API to generate a Metallica like logo for a given string
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 5.0
~> 10.0
~> 5.0
~> 3.0

Runtime

 Project Readme

MetallicaLogo

Metallica Logo

Get any provided text as a Metallica image logo.

Installation

Add this line to your application's Gemfile:

gem 'metallica_logo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install metallica_logo

Usage

You can initialize a new client for fetching logos as follows:

client = MetallicaLogo::Client.new

The client has 2 public methods depending on how you wish to use it. To fetch a logo result without downloading the image, use the following:

logo = client.generate_logo('some text to generate')
#=> #<MetallicaLogo::Result:0x0000000000000000 @file="<url to image>", @token="<token>", @result="<result>">

If you wish to also save the image locally, use the following:

logo = client.generate_and_download_logo('some text to generate', 'file.jpg')
#=> #<Pathname:file.jpg>

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also 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, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Note: This gem uses a 3rd party API. I do not own this 3rd party API.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/johnmfarrell1/metallica_logo.

License

The gem is available as open source under the terms of the MIT License.