jsonapi_responses 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9f6ed5b04014e832e884a2425118c2d4d1e54e14d61f4d21050d35b5f6ef152
4
- data.tar.gz: bf9f7e6ea7fcc880ff5771578d9f35a996bc3122404740a7a7bd3ddb8a712d05
3
+ metadata.gz: e8256def5121e250502f8b4f87eda723d2ca3cd5e6305a5c3f2b527872e8505f
4
+ data.tar.gz: 895c83c370a4c228b177353b019e727e6c3d7f54b290fbfcd9be28cae5ebc059
5
5
  SHA512:
6
- metadata.gz: dfa25f35fd6297541bf8ff12e8453e3434b600156f2f1a266cc0516c0ce055fb4677a2463de9cbeb03217f0c60b32870a3a2e35c9562e4166e638607dfc1b9db
7
- data.tar.gz: 968e736d4b13ab8f2e8b1903667d7131e396e3ba6b0eca66d9084ae822cd95d02569b6a5976a9e1563642d9326cd3eb20f726dad9efcc0a7f46091facc67b031
6
+ metadata.gz: a1816b8e59ebe6f0a3d9b0d89571efe4d61df193ca904113633e3977337fc33cecb2433b3a89947d9c140e79f84c12e79290be2ede8dbf06d273462ee541e918
7
+ data.tar.gz: b0c0f5e06668e8b0593d5ab9c511378ff969dce40e45afd017a1c073030f8a9580bd6f361814ec25f3670e3841f24107d1c07781375b0a6ffc50f92edcfbcdbc
data/CODE_OF_CONDUCT.md CHANGED
@@ -59,8 +59,7 @@ representative at an online or offline event.
59
59
  ## Enforcement
60
60
 
61
61
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- [INSERT CONTACT METHOD].
62
+ reported to the community leaders responsible for enforcement by opening an issue at https://github.com/oortega14/jsonapi_responses/issues.
64
63
  All complaints will be reviewed and investigated promptly and fairly.
65
64
 
66
65
  All community leaders are obligated to respect the privacy and security of the
@@ -14,7 +14,7 @@ module JsonapiResponses
14
14
  def render_with(record, options = {})
15
15
  action = options[:action] || action_name.to_sym
16
16
  context = (options[:context] || {}).merge(serialization_user)
17
- context = context.merge(view: params[:view]&.to_sym) unless context.key?(:view)
17
+ context = context.merge(view: params[:view]&.to_sym) if context.key?(:view)
18
18
  serializer_class = "#{controller_name.singularize.camelize}Serializer".constantize
19
19
  send("respond_for_#{action}", record, serializer_class, context)
20
20
  rescue NoMethodError
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonapiResponses
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.5'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_responses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Ortega
@@ -10,8 +10,9 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2025-05-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: My first gem which tries to get simplier the way you responde in your
14
- API
13
+ description: JsonapiResponses simplifies API response handling by allowing multiple
14
+ response formats from a single endpoint, improving performance and reducing endpoint
15
+ duplication
15
16
  email:
16
17
  - ortegaoscar14@gmail.com
17
18
  executables: []
@@ -38,9 +39,12 @@ homepage: https://www.oortega.dev/gems
38
39
  licenses:
39
40
  - MIT
40
41
  metadata:
42
+ allowed_push_host: https://rubygems.org
41
43
  homepage_uri: https://www.oortega.dev/gems
42
44
  source_code_uri: https://github.com/oortega14/jsonapi_responses
45
+ documentation_uri: https://github.com/oortega14/jsonapi_responses#readme
43
46
  changelog_uri: https://github.com/oortega14/jsonapi_responses/blob/main/CHANGELOG.md
47
+ rubygems_mfa_required: 'true'
44
48
  post_install_message:
45
49
  rdoc_options: []
46
50
  require_paths:
@@ -59,5 +63,5 @@ requirements: []
59
63
  rubygems_version: 3.5.22
60
64
  signing_key:
61
65
  specification_version: 4
62
- summary: A simple way to respond with JSON in an API
66
+ summary: A simple way to handle multiple JSON response formats in Rails APIs
63
67
  test_files: []