grape_doc 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/grape_doc.gemspec +4 -2
- data/lib/grape_doc/formatters/markdown_formatter.rb +3 -1
- data/lib/grape_doc/version.rb +1 -1
- data/spec/markdown_formatter_spec.rb +4 -4
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 806f5a99e3108fbbd0b3ef09347fa151225614fd
|
|
4
|
+
data.tar.gz: 913f5ecd2523aa6b2990ace2ece5fff5a9ba56e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85de6875e7267a9b87395f8048ecfaf219740d8914997f5ef1ee574323d72291c7385edf81b92e25be3f36e5b1d820da278ca1c2824fe2b3b283c6c9d7d2caba
|
|
7
|
+
data.tar.gz: 87fb15186106b298ce2204e9cd76641f5f583ffedfbaf054d167422e79bc85c2630cb92f24a4802c8cffcddac4dffdcde2de8860f4fc5862635fa57d0823f27c
|
data/grape_doc.gemspec
CHANGED
|
@@ -5,11 +5,13 @@ Gem::Specification.new do |gem|
|
|
|
5
5
|
gem.authors = ["Alex Denisov",
|
|
6
6
|
"rayko",
|
|
7
7
|
"Jack Forrest",
|
|
8
|
-
"Chelsea Robb"
|
|
8
|
+
"Chelsea Robb",
|
|
9
|
+
"Karloku Sang"]
|
|
9
10
|
gem.email = ["1101.debian@gmail.com",
|
|
10
11
|
"rayko.drg@gmail.com",
|
|
11
12
|
"jack@jrforrest.net",
|
|
12
|
-
"chelsea.robb@gmail.com"
|
|
13
|
+
"chelsea.robb@gmail.com",
|
|
14
|
+
""]
|
|
13
15
|
gem.description = %q{Documentation generator for Grape API}
|
|
14
16
|
gem.summary = %q{Documentation generator for Grape API}
|
|
15
17
|
gem.homepage = "https://github.com/AlexDenisov/grape_doc"
|
data/lib/grape_doc/version.rb
CHANGED
|
@@ -11,7 +11,7 @@ describe 'GrapeDoc::MarkdownFormatter' do
|
|
|
11
11
|
|
|
12
12
|
let(:param) do
|
|
13
13
|
instance_double('GrapeDoc::APIParameter',
|
|
14
|
-
field: 'radical_value',
|
|
14
|
+
field: 'radical_value[radical_nested]',
|
|
15
15
|
field_type: 'String',
|
|
16
16
|
required: true,
|
|
17
17
|
description: 'This value is so very rad. I bet you wish you were too.',
|
|
@@ -34,8 +34,8 @@ describe 'GrapeDoc::MarkdownFormatter' do
|
|
|
34
34
|
expect(markdown).to match /\/a\\_twisty\\_path/
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
it 'escapes underscores in param names' do
|
|
38
|
-
expect(markdown).not_to match /radical_value/
|
|
39
|
-
expect(markdown).to match /radical\\_value/
|
|
37
|
+
it 'escapes underscores anb square bracket in param names' do
|
|
38
|
+
expect(markdown).not_to match /radical_value\[radical_nested\]/
|
|
39
|
+
expect(markdown).to match /radical\\_value\\\[radical\\_nested\\\]/
|
|
40
40
|
end
|
|
41
41
|
end
|
metadata
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape_doc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Denisov
|
|
8
8
|
- rayko
|
|
9
9
|
- Jack Forrest
|
|
10
10
|
- Chelsea Robb
|
|
11
|
+
- Karloku Sang
|
|
11
12
|
autorequire:
|
|
12
13
|
bindir: bin
|
|
13
14
|
cert_chain: []
|
|
14
|
-
date: 2015-
|
|
15
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
|
15
16
|
dependencies:
|
|
16
17
|
- !ruby/object:Gem::Dependency
|
|
17
18
|
name: grape
|
|
@@ -87,6 +88,7 @@ email:
|
|
|
87
88
|
- rayko.drg@gmail.com
|
|
88
89
|
- jack@jrforrest.net
|
|
89
90
|
- chelsea.robb@gmail.com
|
|
91
|
+
- ''
|
|
90
92
|
executables:
|
|
91
93
|
- grape_doc
|
|
92
94
|
extensions: []
|
|
@@ -156,3 +158,4 @@ test_files:
|
|
|
156
158
|
- spec/test_classes/api.rb
|
|
157
159
|
- spec/test_classes/projects.rb
|
|
158
160
|
- spec/test_classes/users.rb
|
|
161
|
+
has_rdoc:
|