grape_serializer 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/grape_response.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2ecd6b18adf50c54e6d60b4b3ff921cc33a5af0232905de271b1be34e03e35b
4
- data.tar.gz: b066c3dc899b6d98ca2bbf55286a0436dd32957a5ece0474280c7f6cce544f1e
3
+ metadata.gz: aa8488958662b5f7a08ea527c3ccc3e46965c725fe0def297c6b029917cc8226
4
+ data.tar.gz: fc7cbb5b2b1de86b1cb2bbb41c46c7490bb79db2d892074bf7aa363e4137b470
5
5
  SHA512:
6
- metadata.gz: 51e5b84a476a6474470c61dcdb19e32c21e5fd7f1da016c5624bf5284ee0fcf6396745cb365adb3a9ea96c0e624206e9356872136e6b360575bafab0bfe76e9d
7
- data.tar.gz: 97163bc840a35b30051392eb047dec71c5b292191ca8608908899d67865741f4718f606307de465c7585a41083db7c84c56898f32783011f8308c0ea7a95981b
6
+ metadata.gz: 5ceea8761f5ec5a285aa3d360ad5366f8b3648805d26dfc4268835310bb0798a9bbff6f939276c6ff3d48bb1f34b5d1569748d0dfacd6f7ea0ae75147289e3b8
7
+ data.tar.gz: 55368cc861a5abb318954b8785f5dabb288734372f44861d70ed696565d0bd85cc54d4a9ef8b2e83e0e1fec18a62e5ca3e98d0d59eaa18989746445e149235dc
@@ -1,7 +1,7 @@
1
1
  module GrapeResponse
2
2
 
3
3
  def serialize_response(serializer_name, resource, **options)
4
- set_serializer_class(serializer_name)
4
+ set_serializer_class(serializer_name) if serializer_class.nil?
5
5
  serializer = serializer_class.new(current_member: current_member)
6
6
  render status: 200, json: {data: serializer.represent(resource, options)}
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape-entity