betterdocs 0.12.2 → 0.12.4

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
  SHA256:
3
- metadata.gz: 7c41e8bef0ec8aa58b73c1c86d9233c8a7d2ca74951ef7d8a75aeb00f48c4f71
4
- data.tar.gz: 2038e6b7269a66207e929651210b5a02d6f1f5ab4cbe725d64c1efaa833042c5
3
+ metadata.gz: 746d6266c0a5707b6ddfb4996fb9681b03a2884cb882ed25a0bcae0c06b13555
4
+ data.tar.gz: 988cec2e0eaa6dd53a665b115ceca1f922dab009f01fd5064f9d0efc95a8f515
5
5
  SHA512:
6
- metadata.gz: 02174520b69dc795550a516833b51bca7d3910b4fce705ae58401fad2676d21e88629738d698ee4f11ee313ca3512f2710b93da8057fcfda583a95713bcc2ab8
7
- data.tar.gz: ea7b023b448defbaf3effa6edfa3db1291a9ea441028772db4b83b70ad322246a662592fa712d5e915bb15a2ba96d64faacd5f26259b218676e78ea92d504b4e
6
+ metadata.gz: 10e8511696e26e6da499d2e96cb4214bd2260160deace428d6c389e6ad87b069b8b810431c71f7ff678e417377318a412baeb20c9a3cd85d786aa7a689baab52
7
+ data.tar.gz: 7ac44e9444d02c4b6b3dc02fdac8bcfbc8f57251de17b96008502e6c7c0c72152c235cc512ca3465586b44ec34f5420da4ad2edbc718cf35e92d0e5a93751e3a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.2
1
+ 0.12.4
data/betterdocs.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: betterdocs 0.12.2 ruby lib
2
+ # stub: betterdocs 0.12.4 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "betterdocs".freeze
6
- s.version = "0.12.2"
6
+ s.version = "0.12.4"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["betterplace Developers".freeze]
11
- s.date = "2022-12-09"
11
+ s.date = "2023-04-06"
12
12
  s.description = "This library provides tools to generate API documention for a web site's REST-ful JSON API.".freeze
13
13
  s.email = "developers@betterplace.org".freeze
14
14
  s.extra_rdoc_files = ["README.md".freeze, "lib/betterdocs.rb".freeze, "lib/betterdocs/controller_collector.rb".freeze, "lib/betterdocs/dsl.rb".freeze, "lib/betterdocs/dsl/common.rb".freeze, "lib/betterdocs/dsl/controller.rb".freeze, "lib/betterdocs/dsl/controller/action.rb".freeze, "lib/betterdocs/dsl/controller/action/param.rb".freeze, "lib/betterdocs/dsl/controller/action/response.rb".freeze, "lib/betterdocs/dsl/controller/controller.rb".freeze, "lib/betterdocs/dsl/controller/controller_base.rb".freeze, "lib/betterdocs/dsl/json_params.rb".freeze, "lib/betterdocs/dsl/json_params/param.rb".freeze, "lib/betterdocs/dsl/json_type_mapper.rb".freeze, "lib/betterdocs/dsl/naming.rb".freeze, "lib/betterdocs/dsl/representer.rb".freeze, "lib/betterdocs/dsl/result.rb".freeze, "lib/betterdocs/dsl/result/collection_property.rb".freeze, "lib/betterdocs/dsl/result/link.rb".freeze, "lib/betterdocs/dsl/result/property.rb".freeze, "lib/betterdocs/generator/config_shortcuts.rb".freeze, "lib/betterdocs/generator/markdown.rb".freeze, "lib/betterdocs/generator/swagger.rb".freeze, "lib/betterdocs/global.rb".freeze, "lib/betterdocs/json_params_representer.rb".freeze, "lib/betterdocs/json_params_representer_collector.rb".freeze, "lib/betterdocs/json_time_with_zone.rb".freeze, "lib/betterdocs/mix_into_controller.rb".freeze, "lib/betterdocs/railtie.rb".freeze, "lib/betterdocs/rake_tasks.rb".freeze, "lib/betterdocs/representer.rb".freeze, "lib/betterdocs/responding.rb".freeze, "lib/betterdocs/result_representer.rb".freeze, "lib/betterdocs/result_representer_collector.rb".freeze, "lib/betterdocs/sanitizer.rb".freeze, "lib/betterdocs/section.rb".freeze, "lib/betterdocs/version.rb".freeze]
@@ -176,7 +176,7 @@ module Betterdocs
176
176
  (?<host>[a-z.]+)/
177
177
  (?<lang>[a-z]{2})/api_
178
178
  (?<ver>v[0-9]+)/
179
- (?<path>[\w/]+\.json?)
179
+ (?<path>[\w/-]+\.json?)
180
180
  }x.match(request).named_captures.transform_keys(&:to_sym)
181
181
  slugs[:params] = []
182
182
  split = slugs[:path].split('/')
@@ -367,7 +367,7 @@ module Betterdocs
367
367
  end
368
368
  ok = { schema: schema }
369
369
  unless action.response.nil?
370
- add_example(ok, 'example', JSON.parse(JSON.pretty_generate(action.response, quirks_mode: true)))
370
+ add_example(ok, 'example', JSON.parse(JSON.pretty_generate(action.response.to_json, quirks_mode: true)))
371
371
  end
372
372
  p[:responses] =
373
373
  { "200": wrap_content_object(ok, 'OK'),
@@ -1,6 +1,6 @@
1
1
  module Betterdocs
2
2
  # Betterdocs version
3
- VERSION = '0.12.2'
3
+ VERSION = '0.12.4'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betterdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - betterplace Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-09 00:00:00.000000000 Z
11
+ date: 2023-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar