{"id":22169316,"url":"https://github.com/spangenberg/is_alias","last_synced_at":"2025-10-07T23:01:40.404Z","repository":{"id":56878037,"uuid":"956826","full_name":"spangenberg/is_alias","owner":"spangenberg","description":"This gem makes it easy to add simple active record attribute check methods.","archived":false,"fork":false,"pushed_at":"2010-10-02T17:32:57.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T07:23:11.584Z","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/spangenberg.png","metadata":{"files":{"readme":"README.rdoc","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-02T16:58:00.000Z","updated_at":"2014-03-24T17:34:58.000Z","dependencies_parsed_at":"2022-08-20T11:40:32.992Z","dependency_job_id":null,"html_url":"https://github.com/spangenberg/is_alias","commit_stats":null,"previous_names":["neonlex/is_alias"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/spangenberg/is_alias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fis_alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fis_alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fis_alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fis_alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spangenberg","download_url":"https://codeload.github.com/spangenberg/is_alias/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spangenberg%2Fis_alias/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278850295,"owners_count":26056889,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:46.917Z","updated_at":"2025-10-07T23:01:40.388Z","avatar_url":"https://github.com/spangenberg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"=IsAlias\n\nThis gem makes it easy to add simple active record attribute check methods.\n\nhttp://github.com/neonlex/is_alias\n\n\n==Installation\n\nYou can use the latest IsAlias gem:\n\n  gem install is_alias\n\nAfter you install IsAlias, add it to your Gemfile.\n\n==Usage\n\n===Defining the aliases\n\n  class User \u003c ActiveRecord::Base\n    is_alias :staff =\u003e true, :hireable =\u003e :profile_hireable\n  end\n\n+is_alias+ takes a hash. The keys are the method names which, would be generated. The values are the active record fields.\n\u003cb\u003eUse symbols.\u003c/b\u003e\nIf the value is true, than the system uses the key as value.\n\n\n===Generated instance methods\n\nCalling +is_alias+ as shown above creates the following instance methods\non Spaceship:\n\n  User#is_staff?\n  User#is_hireable?\n\n\n==Authors\n\n{Daniel Spangenberg}[http://github.com/neonlex]\n\nPlease find out more about my work in my\n{blog}[http://thewayofthinking.com].\n\n\n==License\n\nThe MIT License\n\nCopyright (c) 2009 {Daniel Spangenberg}[http://thewayofthinking.com]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspangenberg%2Fis_alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspangenberg%2Fis_alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspangenberg%2Fis_alias/lists"}