media_types-serialization 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2101630b0e9219ac970e8ce97c057f7f5281955219f6c3a4915979399190a0b5
4
- data.tar.gz: 692a15e3dfaff3e9d8d306825dc9ab7d3cd8f5fa051b1918b0110215beaf7d5c
3
+ metadata.gz: a7e886054d63df27dd6a7cd6deca3d00d9b0a58edcb4a3fa30ae45f369dc2c20
4
+ data.tar.gz: c601dca445a03064381dc387a3db4395e97bd8ef427710a591318df699380aa8
5
5
  SHA512:
6
- metadata.gz: 77ea1c954ad749250eb9ee393fef00730de767cec2b8cd0c9a9c05e3edd38bf7ba9491260f7d4998751aee55fb005636cd3dcdb8aa2f146e7140fc5279519871
7
- data.tar.gz: 1508f06953ce8611f7e6dd11983f0900a22ab7ee0a1e074250c58693210f6844822de7f34af564cd2b52c0dc383649e112f8737c6c411deca49764819ca28bca
6
+ metadata.gz: 5b23ee08585bbe29ca4caff191afd280745f5325082e9ba4b9f2f0a797ba0fc8368e2df8b21fcb8aa32d50d10740461503bdcfc1c669a5fc5615dac4f6508500
7
+ data.tar.gz: 8ae9a64b67d90619947fcf4d50629f2885786776996c070398b12a7b4753caebbb3523a7bce96d91b82a2f1f2c261b2c77490ada853f9b28e4bc49ef7596f2ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.1
4
+
5
+ - 🐛 Fix api viewer
6
+ - 🐛 Fix `output_raw` suffix (`+json` needs to be `''`)
7
+
3
8
  ## 1.3.0
4
9
 
5
10
  - ✨ Add `formats:` to `output_html` and default it to `[:html]`, so rails behaves
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- media_types-serialization (1.3.0)
4
+ media_types-serialization (1.3.1)
5
5
  actionpack (>= 4.0.0)
6
6
  activesupport (>= 4.0.0)
7
7
  media_types (>= 2.0.0, < 3.0.0)
@@ -618,7 +618,7 @@ module MediaTypes
618
618
  output: result,
619
619
  links: links,
620
620
  }
621
- wrapped = @serialization_wrapping_renderer.serialize input, '*/*', self
621
+ wrapped = @serialization_wrapping_renderer.serialize input, '*/*', context: self
622
622
  render body: wrapped
623
623
 
624
624
  response.content_type = 'text/html'
@@ -55,7 +55,7 @@ module MediaTypes
55
55
  raise ValidatorNotSpecifiedError, :output if serializer_validator.nil?
56
56
 
57
57
  versions.each do |v|
58
- validator = serializer_validator.view(view).version(v)
58
+ validator = serializer_validator.view(view).version(v).override_suffix('')
59
59
 
60
60
  serializer_output_registration.register_block(self, validator, v, block, true, wildcards: !self.serializer_disable_wildcards)
61
61
  end
@@ -1,5 +1,5 @@
1
1
  module MediaTypes
2
2
  module Serialization
3
- VERSION = '1.3.0'.freeze
3
+ VERSION = '1.3.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: media_types-serialization
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-08-05 00:00:00.000000000 Z
12
+ date: 2021-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack