{"id":17774004,"url":"https://github.com/svenfuchs/pathname_local","last_synced_at":"2025-04-01T16:17:39.387Z","repository":{"id":56887562,"uuid":"780541","full_name":"svenfuchs/pathname_local","owner":"svenfuchs","description":null,"archived":false,"fork":false,"pushed_at":"2010-07-17T15:27:35.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T01:20:50.542Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svenfuchs.png","metadata":{"files":{"readme":"README.textile","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}},"created_at":"2010-07-17T15:17:14.000Z","updated_at":"2016-09-22T18:47:39.000Z","dependencies_parsed_at":"2022-08-21T00:50:45.841Z","dependency_job_id":null,"html_url":"https://github.com/svenfuchs/pathname_local","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/svenfuchs%2Fpathname_local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenfuchs%2Fpathname_local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenfuchs%2Fpathname_local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenfuchs%2Fpathname_local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svenfuchs","download_url":"https://codeload.github.com/svenfuchs/pathname_local/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246668904,"owners_count":20814744,"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-10-26T21:47:45.946Z","updated_at":"2025-04-01T16:17:39.366Z","avatar_url":"https://github.com/svenfuchs.png","language":"Ruby","readme":"h1. Pathname.local(path)\n\nSuper-tiny gem that adds Pathname.local(path):\n\n  Pathname.module_eval do\n    def self.local(path)\n      new(File.expand_path(File.join('..', path), caller.last))\n    end\n  end\n\nSo, e.g. in a test_helper.rb file one could do:\n\n  fixtures_path = Pathname.local('fixtures')\n  \nInstead of the much more verbose:\n\n  fixtures_path = Pathname.new(File.expand_path('../fixtures', __FILE__))\n  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenfuchs%2Fpathname_local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvenfuchs%2Fpathname_local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenfuchs%2Fpathname_local/lists"}