hephaestus 0.6.3 → 0.6.4

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: 44ea48d1eb2074031506e9029eb3650657c2af45a4a0dc69d64297bcb3d1ce46
4
- data.tar.gz: 83098f6cc522540642f8607ddfc98816d47a1f68981a5414572800a3151ecaff
3
+ metadata.gz: 2d7d756704650efcb7d0eea9e659c7a0001c8734753f1cbea499ca7bb1a50126
4
+ data.tar.gz: 9b514a9719ded67a3f00f8aa94ba84923effa9a99bc1cb4c071a953035907898
5
5
  SHA512:
6
- metadata.gz: 7ff481188d3525a3b232099cd902db74cf2fa29bb368dc4e62fc6b4525bdbe9b978e08666a490fca443bbc76e7cbe73af65894e50d85e51f3ef9d4d3c144c66d
7
- data.tar.gz: 4fdc8e71109d913965923239ff10b00b185ee1289b34f503c196f25308b7aef8a5bf385b064c6931403b7bbcb1144057a297c0f4573c184fe7dcd200118bef34
6
+ metadata.gz: ca22f649c758b8b66ccf6e088dc2200023501f03bf08e9623054aac5469eed5f49f42b8214290f243e52df01f3f63ba2da17fb953aec3b1d8079c5320a509f8f
7
+ data.tar.gz: 707e1dcafec434dcea74880164f28a0095cca745beda6658bf38c13a30b98a36a9ba6a5b29ead4ab09b8f58557174a9b02757b1564f359c278ca9bbdf842affa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [v0.6.4] - 09-07-2024
2
+ ## What's Changed
3
+ * Updates for OpenAPI dependency by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/23
4
+
5
+
6
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.6.3...v0.6.4
1
7
  # [v0.6.3] - 05-07-2024
2
8
  ## What's Changed
3
9
  * Changes to support Rack 3 param parsing by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/21
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.6.3"
5
+ VERSION = "0.6.4"
6
6
  RAILS_VERSION = "~> 7.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
@@ -29,16 +29,16 @@ module PlugApp
29
29
 
30
30
  case validated_request.error
31
31
  when OpenapiFirst::Schema::ValidationError
32
- error_arr = format_arr(validated_request.error.errors.map(&:error))
32
+ error_arr = format_arr(validated_request.error.errors.map(&:message))
33
33
  Rails.logger.error(error_arr) if print_user_api_errors?
34
34
  [PlugApp::HTTP::BAD_REQUEST_I, { "Content-Type" => "application/json" }, [error_arr]]
35
35
  else
36
- case validated_request.error.error_type
36
+ case validated_request.error.type
37
37
  when :not_found
38
38
  [PlugApp::HTTP::NOT_FOUND_I, { "Content-Type" => "application/json" }, [format_str("Not Found")]]
39
39
  else
40
40
  error_message = if validated_request.error.errors.present?
41
- format_arr(validated_request.error.errors.map(&:error))
41
+ format_arr(validated_request.error.errors.map(&:message))
42
42
  else
43
43
  format_str(validated_request.error.message)
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-05 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler