fictium 0.3.5 → 0.3.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f0eace448621c4f1f18d5ca332b484971bc7c7e331072007ca42159c6fa7054
|
|
4
|
+
data.tar.gz: 8989a53b0173af50de555cce3a6df2402b687e8ca3b41a0f4b372da3ea1da17f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93b8f6e426710c635d9b8294d63ca93b7e4475fee4106f92018bf101c258cebf05662f6776cd2e51ea56f774d5d60d3b7ddc9bddc4dca777484d7ec9b7b339d8
|
|
7
|
+
data.tar.gz: a419afbf96427c24a898f2e1e469989ae2eebd6d7580adb74a4092e502d7e63d8c7801678222f2af41d957d033c96b81c91d18fa7e41dbfc7b3c08027df111ea
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -53,7 +53,7 @@ module Fictium
|
|
|
53
53
|
|
|
54
54
|
def format_query(example)
|
|
55
55
|
example.request[:query_parameters].map do |key, value|
|
|
56
|
-
result = { key: key, value: value }
|
|
56
|
+
result = { key: key, value: value.to_json }
|
|
57
57
|
description = example.action[:query][key] && example.action[:query][key][:description]
|
|
58
58
|
result[:description] = description if description.present?
|
|
59
59
|
result
|
|
@@ -37,6 +37,8 @@ module Fictium
|
|
|
37
37
|
mapped_controllers = transform_path(request)
|
|
38
38
|
full_path = CGI.unescape(url_for(**mapped_controllers.merge(only_path: true)))
|
|
39
39
|
action.path = full_path.sub(action.resource.base_path || '', '')
|
|
40
|
+
rescue ActionController::UrlGenerationError
|
|
41
|
+
action.path = ''
|
|
40
42
|
end
|
|
41
43
|
|
|
42
44
|
def transform_path(request)
|
data/lib/fictium/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fictium
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ramiro Rojo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-11-
|
|
11
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|