{"id":15240470,"url":"https://github.com/nanki/rspec_compose_context","last_synced_at":"2026-01-02T22:48:21.955Z","repository":{"id":56892891,"uuid":"93525774","full_name":"nanki/rspec_compose_context","owner":"nanki","description":"Composable context for RSpec.","archived":false,"fork":false,"pushed_at":"2017-06-06T14:27:05.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T15:18:50.128Z","etag":null,"topics":["rails","rspec","ruby"],"latest_commit_sha":null,"homepage":"","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/nanki.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":"2017-06-06T14:10:03.000Z","updated_at":"2018-07-13T11:30:15.000Z","dependencies_parsed_at":"2022-08-21T01:20:48.791Z","dependency_job_id":null,"html_url":"https://github.com/nanki/rspec_compose_context","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/nanki%2Frspec_compose_context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanki%2Frspec_compose_context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanki%2Frspec_compose_context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanki%2Frspec_compose_context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanki","download_url":"https://codeload.github.com/nanki/rspec_compose_context/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814893,"owners_count":20352038,"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":["rails","rspec","ruby"],"created_at":"2024-09-29T11:05:08.922Z","updated_at":"2026-01-02T22:48:21.903Z","avatar_url":"https://github.com/nanki.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RspecComposeContext\n\nWelcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rspec_compose_context`. To experiment with that code, run `bin/console` for an interactive prompt.\n\nTODO: Delete this and the text above, and describe your gem\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rspec_compose_context'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rspec_compose_context\n\n## Usage\n\n    require 'rspec_compose_context'\n\n    RSpec.describe \"sum\" do\n      shared_context 'a' do |value|\n        let :a do\n          value\n        end\n      end\n\n      shared_context 'b' do |value|\n        let :b do\n          value\n        end\n      end\n\n      shared_examples_for 'e' do\n        it { is_expected.to eq 3 }\n      end\n\n      compose_context [:a, 1], [:b, 2], :e do\n        subject do\n          a + b\n        end\n      end\n    end\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/nanki/rspec_compose_context.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanki%2Frspec_compose_context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanki%2Frspec_compose_context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanki%2Frspec_compose_context/lists"}