grape-dsl 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/grape-dsl/doc.rb +5 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTkyMjE1NWQwZThiMTI1MDQwYmVlN2YyNDM5ODlhMTdjMDdlNDBjMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzZhMmEwM2YxZWU1NmNjY2E1YjM1NGFkYzFkMmZhNWVkODA0OGZhMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGVkNzU3MDg3YjIwNzdmZWZiYzc3MzM5N2Y0OTVkMGZjZDM5ODljZjcyMjI3
|
10
|
+
ODVjMTU3YzA5YjdhZTE2MzhjOTkxNWZiODliZDBiZjVmYjFlMjkyNzBkZWNm
|
11
|
+
Yzc5NDM0YjJmZTI1N2I2MzJkZDJmZDliMTQyNDk1YmE5MWU0N2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGYxYzJhMDA0YzIwNGRhOTE0MWRmZDA4MjlhNWU5MjRiYTg4YWY0ZDBkZGFk
|
14
|
+
ZjQ3YjUxYTk2ZTBlZmIxZjVjM2JiNjIxMTNjNTlhMzQ5MDBjZGE0OTFmNzA2
|
15
|
+
MTFhNDY1YWQ1MjE3YmM3ZjY4MmFiMmNlMWM5ODZjMmE4OTczYTE=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/lib/grape-dsl/doc.rb
CHANGED
@@ -243,15 +243,12 @@ module Grape
|
|
243
243
|
end
|
244
244
|
|
245
245
|
args[:desc_files] ||= Array.new
|
246
|
-
if !args[:desc_files].nil? && args[:desc_files].class != Array
|
247
|
-
args[:desc_files]= Array.new.push(args[:desc_files])
|
248
|
-
end
|
249
246
|
|
250
247
|
[:desc,:desc_file,:extra_desc_file].each do |one_key|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
248
|
+
|
249
|
+
args[:desc_files] += args[(one_key.to_s+"s").to_sym] if args[(one_key.to_s+"s").to_sym].class == Array
|
250
|
+
args[:desc_files].push(args[one_key]) if args[one_key].class == String
|
251
|
+
|
255
252
|
end
|
256
253
|
|
257
254
|
args[:type] ||= args[:doc_type]
|
@@ -334,7 +331,7 @@ module Grape
|
|
334
331
|
# description
|
335
332
|
begin
|
336
333
|
args[:desc_files].each do |extra_desc_file_path|
|
337
|
-
write_out_array.push "#{sheader}#{extra_desc_file_path.split(File::Separator).last.split('.')[0].
|
334
|
+
write_out_array.push "#{sheader}#{extra_desc_file_path.split(File::Separator).last.split('.')[0].camelcase}\n"
|
338
335
|
write_out_array.push " "+File.open(extra_desc_file_path,"r").read
|
339
336
|
end
|
340
337
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: procemon
|