avocado-docs 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avocado/adapters/base_adapter.rb +5 -1
- data/lib/avocado/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2606e25004e89e75f265cdc81056e3582487e4a
|
4
|
+
data.tar.gz: 833a64f82fab903e45b15e95e0e66d66c2c47ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ae44a01acd0f1aeaf366e68ceb5bbe6f54650eadc75820fc32327ee4a9ba1421009facd23e9464c4ac6ac022f2d88d91af41c2428503b1051d9534603f80feb
|
7
|
+
data.tar.gz: 54e761616371949831787fd5a6538e364980101b4522780533634ebb0fd66cd55af5e9f826fc2089e6c775607dab6c21161b1cd54b9bcfdfc39bb9327210faf9
|
@@ -9,6 +9,10 @@ module Avocado
|
|
9
9
|
@response = response
|
10
10
|
end
|
11
11
|
|
12
|
+
def description
|
13
|
+
raise NotImplementedError, 'Adapter must implement #description!'
|
14
|
+
end
|
15
|
+
|
12
16
|
def upload?(&block)
|
13
17
|
block ||= proc { true }
|
14
18
|
request && response && !ajax? && document_if? && block.call
|
@@ -16,7 +20,7 @@ module Avocado
|
|
16
20
|
|
17
21
|
def to_h
|
18
22
|
{
|
19
|
-
description:
|
23
|
+
description: description,
|
20
24
|
resource: Avocado::Serializers::ResourceSerializer.new(request).to_h,
|
21
25
|
request: Avocado::Serializers::RequestSerializer.new(request).to_h,
|
22
26
|
response: Avocado::Serializers::ResponseSerializer.new(response).to_h
|
data/lib/avocado/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avocado-docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.6.
|
174
|
+
rubygems_version: 2.6.8
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Automatic API documentation from RSpec tests
|