Project

mamajoke

0.0
The project is in a healthy, maintained state
Each developer need some laughter during coding .. so this gem provide a random joke for you :)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Project Readme

Mamajoke

We know that each developer need some laughter during code. So Gem is only for fun. This Gem provide give a simple method get_mamajoke() which you can use in any view file. And this function return a random joke . Also you can run command on command line to fetch random joke if you are getting bored during development : rails joke:random

Installation

Add follow lines in config/application.rb

require "net/http"

require "uri"

Add this line to your application's Gemfile:

gem 'mamajoke'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install mamajoke

Usage

After installation just call get_mamajoke() function in your view and enjoy coding.

<span class="alert alert-success">
   <%= get_mamajoke() %>
</span> 

Also you can run command on command line to fetch random joke if you are getting bored during development:

rails joke:random

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mamajoke. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

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

Code of Conduct

Everyone interacting in the Mamajoke project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.