rspec_api_docs 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec_api_docs/version.rb +1 -1
- data/lib/rspec_api_docs.rb +1 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ce20a3a723a208098abb0c4a8fa188281097892
|
4
|
+
data.tar.gz: 49a7abd2d8a068bad4557d17afce34f25e199d15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cf2776787063db78c086a0838b1826799f2d1c351ef4cb08ef1d4ef12ae5228a1271fb64aaf48fd2b47a98650f05291c354705038c819843e293fe458c62d1a
|
7
|
+
data.tar.gz: 61955f7a1aa76a0852050e48847b768bd8226f96f41aeeb42b868ddca1f7cd6c27e5e390c6d04fafb049276e2f00c91488e9ed5c3932672ffab7ead4f7caac54
|
data/lib/rspec_api_docs.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'rspec/core'
|
1
2
|
require "rspec_api_docs/version"
|
2
3
|
|
3
4
|
RSpec.configure do |config|
|
@@ -77,12 +78,6 @@ RSpec.configure do |config|
|
|
77
78
|
if request_body.present? || authorization_header.present?
|
78
79
|
f.write "+ Request #{request.content_type}\n\n"
|
79
80
|
|
80
|
-
# Request Headers
|
81
|
-
# if authorization_header.present?
|
82
|
-
# f.write "+ Headers\n\n".indent(4)
|
83
|
-
# f.write "Authorization: #{authorization_header}\n\n".indent(12)
|
84
|
-
# end
|
85
|
-
|
86
81
|
# Request Body
|
87
82
|
if request_body.present?# && request.content_type == 'application/json'
|
88
83
|
f.write "+ Body\n\n".indent(4)# if authorization_header
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_api_docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Kadwill
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|