Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Update media_types: 0.6.2 → 2.0.0 (major) #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Mar 29, 2020

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ media_types (0.6.2 → 2.0.0) · Repo · Changelog

Release Notes

2.0.0

2.0.0

  • Removed ability to set default suffix. All suffixes now default to +json.
  • Suffixes are now set for a given view and version instead of as a block.
  • Added suffix :yoursuffix command to override the default :json suffix.
  • Removed defaults block.
  • Removed registrations block.

1.0.0 (from changelog)

  • Added the ability to do inline tests when defining validations using assert_pass '<json>' and assert_fail '<json>'.
  • media_type has been replaced with use_name.
  • It is no longer possible to set a default version. Please use version <x> do instead.
  • You no longer need to specify a custom format string. If you set an organisation with def self.organisation or set a module wide organisation with MediaTypes::set_organisation <module>, '<organisation>' the library will generate identifiers for you.
  • self.base_format has been replaced by identifier_format do |type:, view:, version:, suffix:|.
  • Added the empty validation to mark an empty object as valid.
  • Added the identifier function to get the Media Type Identifier for the validator.
  • Added version(x) and view(x) functions.
  • Added an available_validations functions that returns all defined validations.
  • Fixed an issue where validations could accidentally merge if defined with a bad base_format.
  • Fixed an issue where undefined validations would accept an empty object.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 47 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Mar 29, 2020
@codeclimate
Copy link

codeclimate bot commented Mar 29, 2020

Code Climate has analyzed commit ea0cab2 and detected 0 issues on this pull request.

View more on Code Climate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants