{"id":17436146,"url":"https://github.com/felixding/japmag","last_synced_at":"2025-06-22T18:34:11.590Z","repository":{"id":4583583,"uuid":"5725562","full_name":"felixding/JapMag","owner":"felixding","description":"JapMag is a set of useful Ruby on Rails utilities created by me for my personal, and sometimes profressional, projects","archived":false,"fork":false,"pushed_at":"2024-03-04T13:44:46.000Z","size":77,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-23T19:37:37.622Z","etag":null,"topics":["javascript","rails","ruby","sass"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felixding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-09-08T04:39:57.000Z","updated_at":"2023-03-16T02:18:47.000Z","dependencies_parsed_at":"2024-10-19T08:53:46.511Z","dependency_job_id":null,"html_url":"https://github.com/felixding/JapMag","commit_stats":{"total_commits":75,"total_committers":2,"mean_commits":37.5,"dds":"0.040000000000000036","last_synced_commit":"a23faa6253743aab9a5f71f949eaaf22e966fe84"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixding%2FJapMag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixding%2FJapMag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixding%2FJapMag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixding%2FJapMag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felixding","download_url":"https://codeload.github.com/felixding/JapMag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241341375,"owners_count":19947097,"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":["javascript","rails","ruby","sass"],"created_at":"2024-10-17T10:03:57.998Z","updated_at":"2025-03-01T08:32:46.244Z","avatar_url":"https://github.com/felixding.png","language":"CSS","readme":"# Introduction\n\nJapMag is a collection of frequently-used Rails controller methods, helpers, Javascript functions and SASS mixins. It helps quickly bootstrap a Rails app.\n\nFor example, [current_controller_action_in?](https://github.com/felixding/JapMag/blob/master/lib/jap_mag.rb#L38) is a helper that checks if current request.controller and request.action match with a set of given rules. You can then for example show or hide certain things on your app depending if it matches or not.\n\nAnother example is [retina_image_tag](https://github.com/felixding/JapMag/blob/master/app/helpers/jap_mag_widgets_helper.rb#L164) which can easily generate HTML `img` tags for Retina/Non-retina screens. It also helps you deal with localized images.\n\nThis project was first created in 2012.\n\n## Installation \u0026 Usage\n\nPlease note JapMag only supports Rails 3+. And starting from v1.4.0, Ruby 3.0+ is required.\n\nAdd this line to your application's Gemfile:\n\n    gem 'jap_mag', git: \"git://github.com/felixding/JapMag.git\"\n\nAnd then execute:\n\n    $ bundle\n\nIn your CSS manifest (application.css in default):\n\n     *= require jap_mag\n\nIn your Javascript manifest (application.js in default):\n\n\t //= require jquery\n     //= require jquery_ujs\n     //= require jap_mag\n\nIn your app/controllers/application_controll.rb, add\n\n     include JapMag\n\nFor a new Rails app, delete app/views/layout/application.html.erb.\n\nDone! Now start your Rails app and you will see a JapMag-powered website!\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\nCode released under the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixding%2Fjapmag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixding%2Fjapmag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixding%2Fjapmag/lists"}