fictium 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +1 -1
- data/lib/fictium/rspec/autocomplete/params.rb +6 -4
- data/lib/fictium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5934206031e83692052ec6d5184d6c0ea7a040f5a7c859d274eb9101daa664f4
|
4
|
+
data.tar.gz: feaf049eee613925b0b3c14dcbaadb3a6a3c4f3e051b265853db873729e8ce37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ecc05097ef9652469e114db2fbb484a957afbb49b80feedbbb00dac03b0e47db441dac08a8694de1b0cc6cafa25ccfa00d90d6f375343bcec4d48f91e74a9bc
|
7
|
+
data.tar.gz: bf81849ffcafd6bc42c94b3ed06fedf1f2959c74a333ee2268e7cc02c8379f564512f4d0e2e8bf845f9aeb89d69ba6ce7a4c3d21373a3b26eaa360196f8fceb0
|
data/CHANGELOG.md
CHANGED
@@ -17,6 +17,22 @@
|
|
17
17
|
|
18
18
|
## LOG
|
19
19
|
|
20
|
+
### 0.3.2 (2019-11-12)
|
21
|
+
|
22
|
+
Use path parameters instead of formatting path.
|
23
|
+
|
24
|
+
#### Changes
|
25
|
+
|
26
|
+
- Use path parameters instead of formatting path.
|
27
|
+
|
28
|
+
### 0.3.1 (2019-11-12)
|
29
|
+
|
30
|
+
Added support for rails 5.1
|
31
|
+
|
32
|
+
#### Changes
|
33
|
+
|
34
|
+
- Add support for older Rails versions.
|
35
|
+
|
20
36
|
### 0.3.0 (2019-11-12)
|
21
37
|
|
22
38
|
New exporter: Postman.
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ module Fictium
|
|
3
3
|
module Autocomplete
|
4
4
|
module Params
|
5
5
|
REQUEST_SECTIONS = %i[query header path cookie].freeze
|
6
|
-
|
6
|
+
IGNORED_PATH_PARAMETERS = %i[action controller].freeze
|
7
7
|
|
8
8
|
class << self
|
9
9
|
def extract_from_request(action, request)
|
@@ -47,10 +47,12 @@ module Fictium
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
def parse_request_path(params,
|
51
|
-
|
50
|
+
def parse_request_path(params, _action, request)
|
51
|
+
request.path_parameters.except(*IGNORED_PATH_PARAMETERS).each do |name, value|
|
52
52
|
params[name] ||= {}
|
53
|
-
|
53
|
+
params[name].merge!(
|
54
|
+
example: value
|
55
|
+
)
|
54
56
|
end
|
55
57
|
end
|
56
58
|
|
data/lib/fictium/version.rb
CHANGED