{"id":22169323,"url":"https://github.com/spangenberg/mootools-rails","last_synced_at":"2025-10-04T19:32:39.943Z","repository":{"id":1116515,"uuid":"986885","full_name":"spangenberg/mootools-rails","owner":"spangenberg","description":"Use MooTools with Rails 3","archived":false,"fork":false,"pushed_at":"2018-11-16T22:11:20.000Z","size":806,"stargazers_count":21,"open_issues_count":0,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-09T11:46:07.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/mootools-rails","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/spangenberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-14T12:52:46.000Z","updated_at":"2018-11-16T22:08:15.000Z","dependencies_parsed_at":"2022-08-16T12:05:15.623Z","dependency_job_id":null,"html_url":"https://github.com/spangenberg/mootools-rails","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fmootools-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fmootools-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fmootools-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fmootools-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spangenberg","download_url":"https://codeload.github.com/spangenberg/mootools-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227684962,"owners_count":17804111,"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":"2024-12-02T06:30:53.048Z","updated_at":"2025-10-04T19:32:34.899Z","avatar_url":"https://github.com/spangenberg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mootools-rails\n\nMooTools! For Rails! So great.\n\nThis gem provides:\n\n  * MooTools 1.5.0\n  * MooTools More 1.5.0\n  * the MooTools UJS adapter\n  * assert_select_mootools to test MooTools responses in Ruby tests\n\n## Installation\n\nApps generated with Rails 3.1 or later include jquery-rails in the\nGemfile by default. To use MooTools instead, you have to pass the `-j\nmootools` option. So just make a new app:\n\n```sh\nrails new myapp -j mootools\n```\n\nIf upgrading from an older version of rails, or for rails 3.0 apps,\nadd the mootools-rails gem to your Gemfile.\n\n```ruby\ngem 'mootools-rails'\n```\n\nAnd run `bundle install`. The rest of the installation depends on\nwhether the asset pipeline is being used.\n\n### Rails 3.1 or greater (with asset pipeline *enabled*)\n\nThe mootools and mootools-ujs files will be added to the asset pipeline and available for you to use. If they're not already in `app/assets/javascripts/application.js` by default, add these lines:\n\n```js\n//= require mootools\n//= require mootools_ujs\n```\n\nIf you wish to use MooTools More as well, you can add this line to\n`app/assets/javascripts/application.js`:\n\n```js\n//= require mootools-more\n```\n\n### Rails 3.0 (or greater with asset pipeline *disabled*)\n\nThis gem adds a single generator: `mootools:install`. Running the\ngenerator will remove any Prototype JS files you may happen to have, and\ncopy MooTools and the MooTools-ujs driver for Rails (and optionally,\nMooTools More) to the `public/javascripts` directory.\n\nThis gem will also hook into the Rails configuration process, removing\nPrototype and adding MooTools to the javascript files included by the\n`javascript_include_tag(:defaults)` call. While this gem contains the\nminified and un-minified versions of MooTools and MooTools More, only the minified versions will be included in the `:defaults` when Rails is run in `production` or `test` mode  (un-minified versions will be included when Rails is run in `development` mode).\n\nTo invoke the generator, run:\n\n```sh\nrails generate mootools:install #--more to enable MooTools More\n```\n\nYou're done!\n\n## Contributing\n\nFeel free to open an issue ticket if you find something that could be improved. A couple notes:\n\n* If it's an issue pertaining to the mootools-ujs javascript, please\n  report it to the [mootools-ujs\nproject](https://github.com/kevinvaldek/mootools-ujs).\n\n* If the mootools or mootools-more scripts are outdated (i.e. maybe a\n  new version of MooTools was released yesterday), feel free to open an\nissue and prod me to get that thing updated. However, for security\nreasons, I won't be accepting pull requests with updated mootools or\nmootools-more scripts.\n\n## Acknowledgements\n\nMany thanks to the [jquery-rails](https://github.com/rails/jquery-rails)\nguys.\n\nCopyright [Daniel Spangenberg](http://neonlex.com), released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspangenberg%2Fmootools-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspangenberg%2Fmootools-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspangenberg%2Fmootools-rails/lists"}