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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d41e3b7113ec16d2179bd7a53a11df303a21abe0
4
- data.tar.gz: cadc27ef5996be8a1a349e5a2cefa0a0955d7126
3
+ metadata.gz: b2606e25004e89e75f265cdc81056e3582487e4a
4
+ data.tar.gz: 833a64f82fab903e45b15e95e0e66d66c2c47ea0
5
5
  SHA512:
6
- metadata.gz: 3a299f666560f1bcf1c6f966cec5d34188bd54e250252a5fe9ccc85f32dd48fba534b97d778adc8a5c56ee7ca12ea5aa32e62602a3e93d69c763b79e8478ca04
7
- data.tar.gz: cf28d6e25966fd6a8fbea3b3c53b5561afeaba60e24ba9401a61e827bf7d93aad5a4c35b06a0b3e42ff3e59b68cc1e87cd31de8f50314c25ee8750554229b716
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: spec.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
@@ -1,3 +1,3 @@
1
1
  module Avocado
2
- VERSION = '3.1.0'.freeze
2
+ VERSION = '3.1.1'.freeze
3
3
  end
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.0
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-10-30 00:00:00.000000000 Z
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.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