{"id":19320406,"url":"https://github.com/jlyonsmith/code-tools","last_synced_at":"2025-06-18T22:40:09.879Z","repository":{"id":36081354,"uuid":"40381536","full_name":"jlyonsmith/code-tools","owner":"jlyonsmith","description":"A set of tools for maintaining source code","archived":false,"fork":false,"pushed_at":"2017-02-11T18:12:28.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T13:57:57.701Z","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/jlyonsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-07T21:26:16.000Z","updated_at":"2017-02-11T17:52:37.000Z","dependencies_parsed_at":"2022-09-01T03:40:46.230Z","dependency_job_id":null,"html_url":"https://github.com/jlyonsmith/code-tools","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jlyonsmith/code-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fcode-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fcode-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fcode-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fcode-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlyonsmith","download_url":"https://codeload.github.com/jlyonsmith/code-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fcode-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260647313,"owners_count":23041673,"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-11-10T01:28:45.828Z","updated_at":"2025-06-18T22:40:04.847Z","avatar_url":"https://github.com/jlyonsmith.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Source Code Tools\n\nA collection of useful command line development tools for general source code maintenance.  They are written in [Ruby](https://www.ruby-lang.org/en/) for maximum portability.  I use [RubyMine](https://www.jetbrains.com/ruby/) for writing and debugging them, but it's not required.\n\n- __vamper__ updates file and product version numbers across a variety of different file types\n- __ender__ reports on and fixes line endings in text files\n- __spacer__ reports on and fixes initial spaces and tabs in source code and other text files\n\nTo install the latest version of [code_tools](https://rubygems.org/gems/code_tools) simply run:\n\n```bash\ngem install code_tools\n```\n\n## Spacer\n\nSpacer will report on and normalize spaces and tabs in source code and text files.  Normalize the spaces of an entire directory of files _in-place_ with:\n\n```bash\nfind *.cs -exec spacer -m spaces -t 4 -r {} \\;\n```\n\n## Debugging\n\nBecause of the directory layout, running the tools from the command line requires a little more effort:\n\n```bash\nruby -e 'load($0=ARGV.shift);Vamper.new.execute' -- lib/vamper.rb --help\n```\n\n## Publishing\n\nHere's what you need to do to publish a Ruby gem.  First time only:\n\n```bash\ncurl -u \u003cyourname\u003e https://rubygems.org/api/v1/api_key.yaml \u003e ~/.gem/credentials; chmod 0600 ~/.gem/credentials\n```\n\nThen:\n\n```bash\ngem build code_tools.gemspec\ngem push code_tools-\u003cversion\u003e.gem\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlyonsmith%2Fcode-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlyonsmith%2Fcode-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlyonsmith%2Fcode-tools/lists"}