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: c38324d43b58a177f9b7fbd43bfcd10d59c76cb48b87588e4e1a8976e564291a
4
- data.tar.gz: 66a1511bb0bded836db4dbf040f581480cec8418951b0a9aaab7bdbc80327a1a
3
+ metadata.gz: 2f0eace448621c4f1f18d5ca332b484971bc7c7e331072007ca42159c6fa7054
4
+ data.tar.gz: 8989a53b0173af50de555cce3a6df2402b687e8ca3b41a0f4b372da3ea1da17f
5
5
  SHA512:
6
- metadata.gz: 4accbb19a266aea5f1e032d79d6cdcf6e4c67d5645e9ef260363c5648c89dda9ff929c8cc7b07fe4cd28ba670e8e59860da9bd709a53e6cd065ec5ed12737a1c
7
- data.tar.gz: 8b402fd84084a74821b17cd99cead0dda0b8b1f106f8775d912452327405cdf1012d7f4bc667c704213af80a3d8d95fe4fea9926d06a4a7e5c735f58739e2506
6
+ metadata.gz: 93b8f6e426710c635d9b8294d63ca93b7e4475fee4106f92018bf101c258cebf05662f6776cd2e51ea56f774d5d60d3b7ddc9bddc4dca777484d7ec9b7b339d8
7
+ data.tar.gz: a419afbf96427c24a898f2e1e469989ae2eebd6d7580adb74a4092e502d7e63d8c7801678222f2af41d957d033c96b81c91d18fa7e41dbfc7b3c08027df111ea
data/CHANGELOG.md CHANGED
@@ -17,6 +17,14 @@
17
17
 
18
18
  ## LOG
19
19
 
20
+ ### 0.3.6 (2019-11-21)
21
+
22
+ Small fixes
23
+
24
+ #### Changes
25
+
26
+ - Fixes cases where parameters are not strings, it converts them into json.
27
+
20
28
  ### 0.3.5 (2019-11-20)
21
29
 
22
30
  Remove require rspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fictium (0.3.5)
4
+ fictium (0.3.6)
5
5
  activesupport (>= 5.1, < 6.2)
6
6
  json-schema (~> 2.8)
7
7
  verbs (~> 2.1.4)
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Fictium
2
- VERSION = '0.3.5'.freeze
2
+ VERSION = '0.3.6'.freeze
3
3
  RAILS_MIN_VERSION = '>= 5.1'.freeze
4
4
  RAILS_MAX_VERSION = '< 6.2'.freeze
5
5
  end
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.5
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-20 00:00:00.000000000 Z
11
+ date: 2019-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport