{"id":19156286,"url":"https://github.com/ess/needful_things-ruby","last_synced_at":"2025-06-15T21:13:52.769Z","repository":{"id":56885249,"uuid":"324361731","full_name":"ess/needful_things-ruby","owner":"ess","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-25T13:03:59.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-06-06T03:04:35.912Z","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/ess.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-25T12:51:30.000Z","updated_at":"2020-12-25T13:03:49.000Z","dependencies_parsed_at":"2022-08-20T14:31:18.883Z","dependency_job_id":null,"html_url":"https://github.com/ess/needful_things-ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ess/needful_things-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fneedful_things-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fneedful_things-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fneedful_things-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fneedful_things-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ess","download_url":"https://codeload.github.com/ess/needful_things-ruby/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Fneedful_things-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260050934,"owners_count":22951558,"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-09T08:33:59.602Z","updated_at":"2025-06-15T21:13:52.718Z","avatar_url":"https://github.com/ess.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NeedfulThings #\n\nA required hash fields checker. At present, it rolls with the assumption that not only is the hash key present, but its associated value is also non-nil.\n\n## Installation ##\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'needful_things'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install needful_things\n\n## Usage ##\n\nIn lieu of real documentation, here's an example.\n\n```ruby\nrequire 'needful_things'\n\nclass SomeOperation\n  include NeedfulThings\n\n  needs name: :widget_id, otherwise: :widget_id_not_present\n\n  def call(input = {})\n    neediness(input) do |needs|\n      needs.fulfilled do\n        true\n      end\n\n      needs.unmet do |reason|\n        false\n      end\n    end\n  end\nend\n```\n\n## Development ##\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing ##\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ess/needful_things.\n\n\n## License ##\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fess%2Fneedful_things-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fess%2Fneedful_things-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fess%2Fneedful_things-ruby/lists"}