praxis 2.0.pre.37 → 2.0.pre.38

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: 39d8a10f82b2ea044527e35af0bc2844c17999395207a3694b2a585ed5894b74
4
- data.tar.gz: 17d1a29e900aa9522514090b49241e07c020f2116ad26354349d4c1da5cd6df1
3
+ metadata.gz: b2f139dbbe5f48ceddf013eb18a84dc43fcdf41af033b19a40f565f8606b961f
4
+ data.tar.gz: 69b0200fd2ead2d713af52b7a0c56ca60a19bc4cb118ff0284017e7f1d19cda2
5
5
  SHA512:
6
- metadata.gz: 8f5d05fcb1753d8a8147900533b837ae0e822572b94351c2eab017cb41f2a6be6823b01911a35d5fbc2c781d0113f45a65be1b361e9e812cb57d8aa9722cfb02
7
- data.tar.gz: cea6ed63af2625228b5c8c6c69e2b99d5036ee8a070828bf961adfad325cb39d6b667d56918884213c8c23d272819837f90cf90fecd5a4addd55ab5c46493dac
6
+ metadata.gz: cdcaed25ce9a8735f76a77e8f805432579eb4afa8893d0abf39b8054cd09053dc9a0103c1ea64d2330baa4280dc9d8b9a522022afce009c90814f367e3295920
7
+ data.tar.gz: 6a146584703308be70f70a54e3ebb53b10ff038578a5851e333cad95392729576e133c5079a85052487f3af023c831888e7cc2a8dd075b93b7aa8c7c30b5dc24
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Praxis Changelog
2
2
 
3
+ ## 2.0.pre.38
4
+
5
+ - Stoped calling ::Oj.mimic_JSON in Praxis::Handlers::JSON. It breaks ActiveSupport::JSON's html escaping when called.
6
+
3
7
  ## 2.0.pre.37
4
8
 
5
9
  - OpenAPI generation enhancement:
@@ -8,12 +8,6 @@ module Praxis
8
8
  # @raise [Praxis::Exceptions::InvalidConfiguration] if the handler is unsupported
9
9
  def initialize
10
10
  require 'oj'
11
- begin
12
- require 'json'
13
- rescue LoadError # rubocop:disable Lint/SuppressedException
14
- end
15
- # Enable mimicing needs to be done after loading the JSON gem (if there)
16
- ::Oj.mimic_JSON
17
11
  rescue LoadError
18
12
  # Should never happen since JSON is a default gem; might as well be cautious!
19
13
  raise Praxis::Exceptions::InvalidConfiguration,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Praxis
4
- VERSION = '2.0.pre.37'
4
+ VERSION = '2.0.pre.38'
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -25,6 +25,10 @@ require 'rack/test'
25
25
  require 'rspec/its'
26
26
  require 'rspec/collection_matchers'
27
27
 
28
+ require 'oj'
29
+ require 'json'
30
+ Oj.mimic_JSON
31
+
28
32
  Dir["#{File.dirname(__FILE__)}/../lib/praxis/plugins/*.rb"].sort.each do |file|
29
33
  require file
30
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: praxis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.pre.37
4
+ version: 2.0.pre.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep M. Blanquer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-30 00:00:00.000000000 Z
12
+ date: 2023-09-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport