rspec_generate_doc 0.2.9 → 0.2.10
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3935d0ef8fcd2ebdfc5870dc9703c2c9a832f03a
|
4
|
+
data.tar.gz: 51ea028f2fc3258c7bf51d095e8265c738543a96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a4bef080db378533c5fbfc2b59f1d825a7501985f5b0ed8281ebbd45e4206c908a2ab2c147e09de3bd643da447feec514062a450e68f720909bb22be0f54252
|
7
|
+
data.tar.gz: 73cd6954e4f7842085ac868ae061e61ee362ff5d532f7751dc36fb8c4970f17c79f048c5f57cd56b7bc0f355143348da1e62d58505afb273a826ed541ead38d2
|
@@ -24,16 +24,24 @@ module RspecGenerateDoc
|
|
24
24
|
end
|
25
25
|
|
26
26
|
api_params = try(:api_params) || @api_params || {}
|
27
|
-
|
27
|
+
options = try(:api_options) || @api_options || {}
|
28
28
|
new_action = RspecGenerateDoc.configuration.action_decorator
|
29
|
-
|
30
|
-
|
29
|
+
.new(name: name,
|
30
|
+
response: response,
|
31
|
+
api_params: api_params,
|
32
|
+
options: options)
|
33
|
+
unless @actions.index { |action| action.name == new_action.name }
|
34
|
+
@actions << new_action
|
35
|
+
end
|
31
36
|
end
|
32
37
|
|
33
38
|
config.after(:context) do
|
34
39
|
next if @is_incorrect_type
|
35
|
-
parent = self.class.metadata[:api_name] || self.class
|
36
|
-
|
40
|
+
parent = self.class.metadata[:api_name] || self.class
|
41
|
+
.top_level_description
|
42
|
+
RspecGenerateDoc::GenerateFIle
|
43
|
+
.new(parent: parent.to_s, actions: @actions)
|
44
|
+
.create_file_by_template
|
37
45
|
end
|
38
46
|
end
|
39
47
|
end
|