├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug-report.md │ └── config.yml ├── SUPPORT.md └── workflows │ ├── ci.yml │ └── rubocop.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .yardopts ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Gemfile ├── Gemfile.devtools ├── LICENSE ├── README.md ├── Rakefile ├── bin ├── .gitkeep ├── console └── setup ├── docsite └── source │ ├── class-enhancement.html.md │ ├── index.html.md │ ├── maybe-matcher.html.md │ └── result-matcher.html.md ├── dry-matcher.gemspec ├── lib ├── dry-matcher.rb └── dry │ ├── matcher.rb │ └── matcher │ ├── case.rb │ ├── either_matcher.rb │ ├── evaluator.rb │ ├── match.rb │ ├── maybe_matcher.rb │ ├── result_matcher.rb │ └── version.rb ├── repo-sync.yml └── spec ├── integration ├── class_enhancement_spec.rb ├── dry_monads_do_spec.rb ├── matcher_spec.rb ├── maybe_matcher_spec.rb └── result_matcher_spec.rb ├── spec_helper.rb ├── support ├── coverage.rb ├── rspec.rb └── warnings.rb └── unit └── case_spec.rb /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: hanami 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.github/ISSUE_TEMPLATE/bug-report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/SUPPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.github/SUPPORT.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.github/workflows/rubocop.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.rspec -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/.yardopts -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.devtools: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/Gemfile.devtools -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/bin/setup -------------------------------------------------------------------------------- /docsite/source/class-enhancement.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/docsite/source/class-enhancement.html.md -------------------------------------------------------------------------------- /docsite/source/index.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/docsite/source/index.html.md -------------------------------------------------------------------------------- /docsite/source/maybe-matcher.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/docsite/source/maybe-matcher.html.md -------------------------------------------------------------------------------- /docsite/source/result-matcher.html.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/docsite/source/result-matcher.html.md -------------------------------------------------------------------------------- /dry-matcher.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/dry-matcher.gemspec -------------------------------------------------------------------------------- /lib/dry-matcher.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "dry/matcher" 4 | -------------------------------------------------------------------------------- /lib/dry/matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/lib/dry/matcher.rb -------------------------------------------------------------------------------- /lib/dry/matcher/case.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/lib/dry/matcher/case.rb -------------------------------------------------------------------------------- /lib/dry/matcher/either_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/lib/dry/matcher/either_matcher.rb -------------------------------------------------------------------------------- /lib/dry/matcher/evaluator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/lib/dry/matcher/evaluator.rb -------------------------------------------------------------------------------- /lib/dry/matcher/match.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/lib/dry/matcher/match.rb -------------------------------------------------------------------------------- /lib/dry/matcher/maybe_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/lib/dry/matcher/maybe_matcher.rb -------------------------------------------------------------------------------- /lib/dry/matcher/result_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/lib/dry/matcher/result_matcher.rb -------------------------------------------------------------------------------- /lib/dry/matcher/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/lib/dry/matcher/version.rb -------------------------------------------------------------------------------- /repo-sync.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/repo-sync.yml -------------------------------------------------------------------------------- /spec/integration/class_enhancement_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/integration/class_enhancement_spec.rb -------------------------------------------------------------------------------- /spec/integration/dry_monads_do_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/integration/dry_monads_do_spec.rb -------------------------------------------------------------------------------- /spec/integration/matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/integration/matcher_spec.rb -------------------------------------------------------------------------------- /spec/integration/maybe_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/integration/maybe_matcher_spec.rb -------------------------------------------------------------------------------- /spec/integration/result_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/integration/result_matcher_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/coverage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/support/coverage.rb -------------------------------------------------------------------------------- /spec/support/rspec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/support/rspec.rb -------------------------------------------------------------------------------- /spec/support/warnings.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/support/warnings.rb -------------------------------------------------------------------------------- /spec/unit/case_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dry-rb/dry-matcher/HEAD/spec/unit/case_spec.rb --------------------------------------------------------------------------------