{"id":21966435,"url":"https://github.com/dreamingechoes/random_giphy_image_rails","last_synced_at":"2026-04-19T14:02:50.219Z","repository":{"id":56890886,"uuid":"44491111","full_name":"dreamingechoes/random_giphy_image_rails","owner":"dreamingechoes","description":"Rails gem to add random Giphy images into your HTML. A silly gem with no specific purpose.","archived":false,"fork":false,"pushed_at":"2015-11-15T15:01:37.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-04T18:32:46.739Z","etag":null,"topics":["gem","giphy","rails","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dreamingechoes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-18T18:41:58.000Z","updated_at":"2017-04-07T12:42:07.000Z","dependencies_parsed_at":"2022-08-20T15:20:45.600Z","dependency_job_id":null,"html_url":"https://github.com/dreamingechoes/random_giphy_image_rails","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dreamingechoes/random_giphy_image_rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamingechoes%2Frandom_giphy_image_rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamingechoes%2Frandom_giphy_image_rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamingechoes%2Frandom_giphy_image_rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamingechoes%2Frandom_giphy_image_rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreamingechoes","download_url":"https://codeload.github.com/dreamingechoes/random_giphy_image_rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamingechoes%2Frandom_giphy_image_rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","giphy","rails","ruby"],"created_at":"2024-11-29T13:16:09.461Z","updated_at":"2026-04-19T14:02:50.181Z","avatar_url":"https://github.com/dreamingechoes.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/random_giphy_image_rails.svg)](https://badge.fury.io/rb/random_giphy_image_rails)\n\n## About\n\nRandomGiphyImageRails is an absolute silly gem with the only purpose of put some random Giphy images on your HTML.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'random_giphy_image_rails'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install random_giphy_image_rails\n\n## Usage\n\nAfter install the gem, the only thing you should do in your Rails application is add some lines into your assets files. Add this into your `application.js` file:\n\n```ruby\n  //= require random_giphy_image_rails\n```\n\nand this line into you `application.css` file:\n\n```ruby\n  *= require random_giphy_image_rails\n```\n\nNow you're ready to put Giphy images on your site. You only have to do something like this on your JS:\n\n```javascript\n$(document).ready(function(){\n  // Set debug mode (for console logs)\n  RandomGiphyImageRails.debug = true;\n\n  // Testing api key by default if you don't specify one\n  RandomGiphyImageRails.data.api_key = 'YOUR_GIPHY_API_KEY';\n\n  // Class of the HTML element where you want to put the gif\n  RandomGiphyImageRails.data.element_class = 'giphyme';\n\n  // Query or tag of your random gif\n  RandomGiphyImageRails.data.query = 'nintendo';\n\n  // Executes the random gif thing\n  RandomGiphyImageRails.giphyme();\n});\n```\nAnd then put one or more HTML elements in your view:\n\n```html\n\u003cbody\u003e\n  \u003cdiv class=\"giphyme\"\u003e \u003c/div\u003e\n\u003c/body\u003e\n```\n\nRefresh you page and... voila! :)\n\n**Important: this gem uses jQuery to work.**\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/dreamingechoes/random_giphy_image_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamingechoes%2Frandom_giphy_image_rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreamingechoes%2Frandom_giphy_image_rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamingechoes%2Frandom_giphy_image_rails/lists"}