Skip to content

Releases

v0.5.0

Choose a tag to compare

@carltonsmith carltonsmith released this 12 Mar 21:04
Immutable release. Only release title and notes can be modified.
2f94060

What's Changed

Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@carltonsmith carltonsmith released this 12 Mar 14:02
Immutable release. Only release title and notes can be modified.
302f02e

What's Changed

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@carltonsmith carltonsmith released this 10 Mar 20:26
Immutable release. Only release title and notes can be modified.
ddddde5

Added

  • contract(:name) lookup helper for matcher composition in examples.
  • Internal deprecation utility: RSpec::Rest::Deprecation.warn(key:, message:) with once-per-key emission.
  • Keyword request description support on verbs: get(path, description: "...") { ... } (and same for other verbs).

Changed

  • Failure-time curl output now uses $API_AUTH_TOKEN placeholders for redacted auth-like headers.
  • Authorization and Proxy-Authorization scheme prefixes are preserved in redacted curl output (for example Basic, Digest).
  • README examples now prefer contract(:name) and keyword request descriptions.
  • Added README RuboCop compatibility guidance for Rails/HttpPositionalArguments and RSpec/EmptyExampleGroup.

Deprecated (removal target: 1.0)

  • expect_json_contract(name) -> use contract(:name).
  • Positional verb descriptions (for example get(path, "description")) -> use description: keyword.

v0.2.0

Choose a tag to compare

@carltonsmith carltonsmith released this 08 Mar 20:20
Immutable release. Only release title and notes can be modified.
8da0464

Added

  • JSON array item expectation helpers:
    • expect_json_first(expected = nil, &block)
    • expect_json_item(index, expected = nil, &block)
    • expect_json_last(expected = nil, &block)
  • Optional behavior descriptions on verb DSL calls:
    • get(path, description = nil) { ... } (and same for other verbs)
  • Full-route example naming support in DSL output (composed from base_path + resource path + endpoint path).
  • Shared path composition utility used by both request execution and example naming.

Changed

  • README examples and expectation helper docs updated for:
    • Ruby-style JSON item helpers
    • Optional verb descriptions and full-route example names

Fixed

  • expect_json_item now validates index type and reports non-integer indexes via actionable expectation failures.
  • JSON value assertion semantics are centralized across expect_json, expect_json_at, and JSON item helpers to reduce drift.
  • Unknown/invalid JSON item and contract expectation failures continue to include enriched request/response/curl diagnostics.