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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/VERSION +1 -1
  3. data/lib/grape-dsl/doc.rb +5 -8
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjlhZjk1ZTg5NjY1MmRjMjBiZTkxNTJjNmMzOGFlNGY5MjllNTdiZg==
4
+ OTkyMjE1NWQwZThiMTI1MDQwYmVlN2YyNDM5ODlhMTdjMDdlNDBjMA==
5
5
  data.tar.gz: !binary |-
6
- MzRlM2RmNGFiNGM3MDlkMmIwYTMyZmMzOThjOWI2NGI0ZTczZGI3NA==
6
+ MzZhMmEwM2YxZWU1NmNjY2E1YjM1NGFkYzFkMmZhNWVkODA0OGZhMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDJjNmNlODg4NTM1ZmU0MTFhZjY5MWIxYTFiNjExODVjYzg0YmVhMDAyMmMx
10
- MGI4MjAwM2RiZTNjYWY3MDZmZTA3ZTkyNWEzYTM0ZDhlODNmMjY2NWYxM2Yx
11
- MmM5MDgyMDI3NDEwMGEzZTI3ODg3ZGNhZDAyOTdiNTcyZWU0Zjk=
9
+ MGVkNzU3MDg3YjIwNzdmZWZiYzc3MzM5N2Y0OTVkMGZjZDM5ODljZjcyMjI3
10
+ ODVjMTU3YzA5YjdhZTE2MzhjOTkxNWZiODliZDBiZjVmYjFlMjkyNzBkZWNm
11
+ Yzc5NDM0YjJmZTI1N2I2MzJkZDJmZDliMTQyNDk1YmE5MWU0N2I=
12
12
  data.tar.gz: !binary |-
13
- MTQ0MjE5OTkxMGZiNGI3ZGFmY2ZhZDcyNjliYzk1NzljOWQ4NWUzYTRhMDU4
14
- ZjM4YTk5NmZhOTZmNDAxYzZkZDI4ODliNTliYmU5YjMyYzY2ODc5MWZkZTgy
15
- NmQ3Yzk0OGFiMjBjZDhkZTBjMWU5YjFlMzRiMGNjMzkwMTRkZWU=
13
+ MGYxYzJhMDA0YzIwNGRhOTE0MWRmZDA4MjlhNWU5MjRiYTg4YWY0ZDBkZGFk
14
+ ZjQ3YjUxYTk2ZTBlZmIxZjVjM2JiNjIxMTNjNTlhMzQ5MDBjZGE0OTFmNzA2
15
+ MTFhNDY1YWQ1MjE3YmM3ZjY4MmFiMmNlMWM5ODZjMmE4OTczYTE=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -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
- unless args[one_key].nil?
252
- args[:desc_files].push args[one_key]
253
- args.delete one_key
254
- end
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].downcase.capitalize}\n"
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.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-06 00:00:00.000000000 Z
11
+ date: 2014-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: procemon