Skip to content

Conversation

@beauby
Copy link
Member

@beauby beauby commented Jul 12, 2017

  • Make JSONAPI::Renderer an actual class.

end

describe JSONAPI, '#render' do
describe JSONAPI::Renderer, '#render' do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block has too many lines. [270/25]

# @option errors [Array<#jsonapi_id>] Errors to be rendered.
# @option include Relationships to be included. See
# JSONAPI::IncludeDirective.
# @option fields [Hash{Symbol, Array<Symbol>}, Hash{String, Array<String>}]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [81/80]

# Render a JSON API document.
#
# @param params [Hash]
# @option data [(#jsonapi_id, #jsonapi_type, #jsonapi_related, #as_jsonapi),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [82/80]

require 'jsonapi/renderer/document'

module JSONAPI
class Renderer

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing top-level class documentation comment.

@beauby beauby merged commit fc35d16 into master Jul 12, 2017
@beauby beauby deleted the refactor-renderer branch July 12, 2017 15:44
@codecov
Copy link

codecov bot commented Jul 12, 2017

Codecov Report

Merging #21 into master will decrease coverage by 0.64%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
- Coverage   99.33%   98.69%   -0.65%     
==========================================
  Files           5        5              
  Lines         150      153       +3     
==========================================
+ Hits          149      151       +2     
- Misses          1        2       +1
Impacted Files Coverage Δ
lib/jsonapi/renderer/resources_processor.rb 98.11% <100%> (ø) ⬆️
lib/jsonapi/renderer/document.rb 100% <100%> (ø) ⬆️
lib/jsonapi/renderer.rb 87.5% <75%> (-12.5%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df8965f...e7f7b97. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants