{"id":16086136,"url":"https://github.com/zw963/only_blank","last_synced_at":"2025-04-05T14:11:56.921Z","repository":{"id":56886734,"uuid":"370248809","full_name":"zw963/only_blank","owner":"zw963","description":"The only blank? for ruby","archived":false,"fork":false,"pushed_at":"2022-04-23T15:51:00.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T06:36:29.680Z","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/zw963.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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":"2021-05-24T06:20:25.000Z","updated_at":"2022-04-23T15:29:14.000Z","dependencies_parsed_at":"2022-08-20T14:31:27.097Z","dependency_job_id":null,"html_url":"https://github.com/zw963/only_blank","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fonly_blank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fonly_blank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fonly_blank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fonly_blank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zw963","download_url":"https://codeload.github.com/zw963/only_blank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345856,"owners_count":20924102,"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-09T13:10:37.535Z","updated_at":"2025-04-05T14:11:56.896Z","avatar_url":"https://github.com/zw963.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# only_blank [![Build Status](https://travis-ci.com/zw963/only_blank.svg?branch=master)](https://app.travis-ci.com/github/zw963/only_blank)[![Gem Version](https://badge.fury.io/rb/only_blank.svg)](http://badge.fury.io/rb/only_blank)![](https://ruby-gem-downloads-badge.herokuapp.com/only_blank?type=total)\n\nA tiny library for bring the ruby on rails awesome `blank?` method and friends to ruby.\n\n## Getting Started\n\nAdd to your Gemfile\n\n```rb\ngem 'only_blank'\n```\n\nThen, you get three method `blank?`, `present?`, `presence` defined on following class free.\n\n`FalseClass`, `Object`, `NilClass`, `Numeric`, `String`, `TrueClass`.\n\n## Credits\n\nBasically, this gem just a tiny wrapper around two library.\n\n1. [The sequel blank extension](https://github.com/jeremyevans/sequel/blob/master/lib/sequel/extensions/blank.rb) which implement the same blank? logic as Ruby On Rails.\n\n2. [fast_blank gem](https://github.com/SamSaffron/fast_blank), which is a simple C extension which provides a very fast implementation of `String#blank?` method.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fonly_blank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzw963%2Fonly_blank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fonly_blank/lists"}