rails_api_documentation 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd3abb9fc0f71df8bb4203ee9b096f62d8928a15
4
- data.tar.gz: c648ecfd2e714eccd80c955f93f079e084d92cfe
3
+ metadata.gz: 1a49207950a93e5b5cd746c1e0c8b315dc7d6c94
4
+ data.tar.gz: e12f0dce8f906738103348b3b5b35c2ea433c8f8
5
5
  SHA512:
6
- metadata.gz: 86b861002f1c8e85365779bb399fab84e52f67c3dbe845c70298281c32a4302d8d3648ddeaf1d977db1010d8736d0e70e739ed77d800718fd4de41a0e9c6fdf4
7
- data.tar.gz: c428d4d5e9b4964d41f0e0e65b4e38630e9fd3166ad7f2bc3314e15b598abe7e0f6f6bd83a4cbb45dc5ba7180a37cb4e1ae4005330a64e65f9e8284e6079c2b6
6
+ metadata.gz: 28f06b3a3c6385f159ac95d4dcc49a5ba6eac1792a843d5801b8d8150c47c569ddb9e347c24c692f9c5a0b15d1e11819dedfb58016f49671feb005acce3931ff
7
+ data.tar.gz: 09ff6a7d0872042cc51ac2124b0af0c32fa18bc4132f6ab248d48006231263f49dbf23aab0ad9006b87dfe3584cf70a37c5b81bd1d4334b49762ebde7dd7950f
@@ -117,7 +117,7 @@ class RailsApiDoc::Controller::Response
117
117
  def child(name_or_data, options = {})
118
118
  data, name = extract_data_and_name(name_or_data)
119
119
 
120
- if options.empty? && new_options = name_or_data.to_a.second
120
+ if options.empty? && name_or_data.is_a?(Hash) && new_options = name_or_data.to_a.second
121
121
  options = [new_options].to_h
122
122
  end
123
123
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # author: Vadim Shaveiko <@vshaveyko>
3
3
  module RailsApiDoc
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_api_documentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vs