{"id":13747304,"url":"https://github.com/Invoca/magic_frozen_string_literal","last_synced_at":"2025-05-09T08:32:25.624Z","repository":{"id":2333731,"uuid":"41181770","full_name":"Invoca/magic_frozen_string_literal","owner":"Invoca","description":"easily add '# frozen_string_literal: true' comments to the top of all your project's Ruby files","archived":false,"fork":false,"pushed_at":"2024-02-11T13:12:57.000Z","size":63,"stargazers_count":157,"open_issues_count":4,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-14T16:08:20.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Invoca.png","metadata":{"files":{"readme":"README.rdoc","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":"2015-08-21T23:27:33.000Z","updated_at":"2024-06-18T18:41:44.509Z","dependencies_parsed_at":"2024-06-18T18:51:43.410Z","dependency_job_id":null,"html_url":"https://github.com/Invoca/magic_frozen_string_literal","commit_stats":{"total_commits":88,"total_committers":15,"mean_commits":5.866666666666666,"dds":"0.44318181818181823","last_synced_commit":"6ef8caf704cbbe13c62393fec0ce14d07ecfb086"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoca%2Fmagic_frozen_string_literal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoca%2Fmagic_frozen_string_literal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoca%2Fmagic_frozen_string_literal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoca%2Fmagic_frozen_string_literal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Invoca","download_url":"https://codeload.github.com/Invoca/magic_frozen_string_literal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224842671,"owners_count":17379010,"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-08-03T06:01:24.496Z","updated_at":"2024-11-15T20:31:32.510Z","avatar_url":"https://github.com/Invoca.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"= Magic_frozen_string_literal\n\nMagic_frozen_string_literal is a little tool that allows you to quickly \nadd the magic comment that indicates that the file\ncan safely have its string literals frozen, as will be {the default in Ruby 3.0}[https://bugs.ruby-lang.org/issues/8976].\n\nCloned from https://github.com/m-ryan/magic_encoding\n\n== Installation\n\n  gem install magic_frozen_string_literal\n  rbenv rehash\n  \n== Usage\n\nRun the tool from the command line:\n\n  magic_frozen_string_literal \u003cdirectory\u003e\n\nthis will prepend every \"*.rb\", \"*.ru\", \"Rakefile\", \"*.rake\", \"Gemfile\", \"*.gemspec\", \"*.rabl\", \"*.jbuilder\", \"*.haml\", \"*.slim\" file in the given \u003cdirectory\u003e (recursively)\nwith the following magic comment followed by a blank line:\n\n  # frozen_string_literal: true\n\n(\".haml\" and \".slim\" files will have a \"-\" prefix before the comment and no blank line after.)\n\nThe \u003cdirectory\u003e parameter is optional. It defaults to the current working directory.\n\n\nNotes: \n- existing +frozen_string_literal+ magic comments are replaced\n- the rest of the file remains unchanged\n- empty files are not touched\n- if the file starts with #! (shebang), that line is preserved and the magic comment is added just below it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInvoca%2Fmagic_frozen_string_literal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInvoca%2Fmagic_frozen_string_literal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInvoca%2Fmagic_frozen_string_literal/lists"}