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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c0dd09087124eaa66fffeb08428b7b076177852
4
- data.tar.gz: 14c3153746fa290afccc1816637f2c68827a40df
3
+ metadata.gz: 806f5a99e3108fbbd0b3ef09347fa151225614fd
4
+ data.tar.gz: 913f5ecd2523aa6b2990ace2ece5fff5a9ba56e1
5
5
  SHA512:
6
- metadata.gz: 0fe1235aa18f280205715d7565707b2037086fe5a6477c9ae3ff4abcccc8385fc2b55495085579c01eb0c2b1cab101881dadaa1f09b9d3038ea5076809e36c67
7
- data.tar.gz: dace415def09bb94d69adb8052e940c2a1d1381ddd986ef0bb82e64f5c08f89ceb06ba45c98b3d93502a02fe886165eff70b7c94725df1bb12ea40fdd1aea77a
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"
@@ -29,7 +29,9 @@ module GrapeDoc
29
29
  private
30
30
 
31
31
  def escape(str)
32
- str.gsub('_', '\_')
32
+ str.gsub('_', '\_').
33
+ gsub('[', '\[').
34
+ gsub(']', '\]')
33
35
  end
34
36
  end
35
37
  end
@@ -1,3 +1,3 @@
1
1
  module GrapeDoc
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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.0
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-04-17 00:00:00.000000000 Z
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: