{"id":28727069,"url":"https://github.com/nulogy/screengem","last_synced_at":"2025-06-15T13:11:10.777Z","repository":{"id":52607327,"uuid":"161725498","full_name":"nulogy/screengem","owner":"nulogy","description":"A simple Ruby implementation of the Screenplay Pattern.","archived":false,"fork":false,"pushed_at":"2024-10-03T23:59:53.000Z","size":161,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-05-31T02:45:01.829Z","etag":null,"topics":["ruby","screenplay-pattern"],"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/nulogy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-12-14T03:15:00.000Z","updated_at":"2024-10-03T23:59:57.000Z","dependencies_parsed_at":"2023-10-17T00:11:31.430Z","dependency_job_id":null,"html_url":"https://github.com/nulogy/screengem","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nulogy/screengem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulogy%2Fscreengem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulogy%2Fscreengem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulogy%2Fscreengem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulogy%2Fscreengem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nulogy","download_url":"https://codeload.github.com/nulogy/screengem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulogy%2Fscreengem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259981896,"owners_count":22941151,"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":["ruby","screenplay-pattern"],"created_at":"2025-06-15T13:11:09.228Z","updated_at":"2025-06-15T13:11:10.766Z","avatar_url":"https://github.com/nulogy.png","language":"Ruby","readme":"# Screengem\n\nA simple Ruby implementation of the [Screenplay Pattern](https://ideas.riverglide.com/page-objects-refactored-12ec3541990). \n\nScreengem promotes writing step definitions in terms of actors, the tasks that the actor performs, \nand the questions that the actor asks. \n\n## Example Step Definitions\n\n```ruby\nGiven(\"that they are signed in and viewing the {section_name}\") do |section_name|\n  actor.performs(task.sign_in, task.remember_signature_counter(section_name))\nend\n\nThen(\"their signature is captured\") do\n  actor.asks(question.signature_captured)\nend\n```\n\n## Core Domain Model\n\nAn Actor asks questions and performs tasks.\nAn Actor is able to remember and recall key-value pairs.\n\nA Question responds to answer.\n\nA Task responds to perform.\n\n![Core Domain Model](/images/ScreengemCore.png)\n\n## Actor Memory\n\nActors are able to remember and recall facts. This is the recommended way to pass state\nbetween steps. To clear every actor's memory before each scenario add a hook:\n\n```\nBefore do\n  Screengem::ActorMemory.instance.clear\nend\n```\n\n## Performing Tasks\n\nActors are able to perform tasks. A task may be implemented by interacting with domain services,\ndomain models, application databases, and the application via screen elements.\n\nCapybara is available to all screen elements and is the recommended way to interact with a browser.\n\n## Answering Questions\n\nActors are able to answer questions. A question is considered to be answered affirmatively\nwhen no exception is thrown and negatively when an exception is thrown.\n\n[RSpec expectations](https://github.com/rspec/rspec-expectations) are available in all questions and are the recommended way to implement a question.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'screengem'\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. 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/nulogy/screengem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Screengem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/nulogy/screengem/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulogy%2Fscreengem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnulogy%2Fscreengem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulogy%2Fscreengem/lists"}