{"id":25135535,"url":"https://github.com/sharshenov/sweetalert-rails","last_synced_at":"2025-04-13T06:37:34.170Z","repository":{"id":21622529,"uuid":"24943007","full_name":"sharshenov/sweetalert-rails","owner":"sharshenov","description":"SweetAlert Rails integration","archived":false,"fork":false,"pushed_at":"2017-12-05T09:58:52.000Z","size":76,"stargazers_count":57,"open_issues_count":1,"forks_count":27,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T23:06:47.484Z","etag":null,"topics":[],"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/sharshenov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-08T13:54:39.000Z","updated_at":"2024-04-29T13:23:56.000Z","dependencies_parsed_at":"2022-08-21T21:40:47.125Z","dependency_job_id":null,"html_url":"https://github.com/sharshenov/sweetalert-rails","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharshenov%2Fsweetalert-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharshenov%2Fsweetalert-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharshenov%2Fsweetalert-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharshenov%2Fsweetalert-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharshenov","download_url":"https://codeload.github.com/sharshenov/sweetalert-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675352,"owners_count":21143763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-02-08T16:33:34.806Z","updated_at":"2025-04-13T06:37:34.140Z","avatar_url":"https://github.com/sharshenov.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SweetAlert RubyOnRails integration gem\n\n[![Gem Version](https://badge.fury.io/rb/sweetalert-rails.svg)](http://badge.fury.io/rb/sweetalert-rails)\n\nUse [SweetAlert](http://t4t5.github.io/sweetalert/) with Rails 3.1+\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'sweetalert-rails'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install sweetalert-rails\n\nNow you need to edit your app/assets/javascripts/application.js file and add the following line:\n``` javascript\n//= require sweetalert\n```\n\nAnd then edit your `app/assets/stylesheets/application.css` file to look something like:\n``` css\n/*\n *= require_self\n *= require sweetalert\n *= require_tree .\n */\n```\n\nThemes(facebook, twitter, google) are also available:\n``` css\n/*\n *= require_self\n *= require sweetalert\n *= require sweetalert/themes/twitter\n *= require_tree .\n */\n```\n\n## Usage\n\nWith the gem installed and included in your asset manifests, you can now use SweetAlert as you normally would.\n\n``` javascript\nsweetAlert(\"Awesome!\");\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/sharshenov/sweetalert-rails/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharshenov%2Fsweetalert-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharshenov%2Fsweetalert-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharshenov%2Fsweetalert-rails/lists"}