betterdocs 0.12.4 → 0.12.5

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: 746d6266c0a5707b6ddfb4996fb9681b03a2884cb882ed25a0bcae0c06b13555
4
- data.tar.gz: 988cec2e0eaa6dd53a665b115ceca1f922dab009f01fd5064f9d0efc95a8f515
3
+ metadata.gz: 325ee2f151c3fe3b64248fe9dac07fa10ecbd5ebe499a4c6c811c1f714c4c863
4
+ data.tar.gz: 543a3f43138aaf8597e8d866d6dc7ae9b0722a97c5d2a375d7409792c8dc145b
5
5
  SHA512:
6
- metadata.gz: 10e8511696e26e6da499d2e96cb4214bd2260160deace428d6c389e6ad87b069b8b810431c71f7ff678e417377318a412baeb20c9a3cd85d786aa7a689baab52
7
- data.tar.gz: 7ac44e9444d02c4b6b3dc02fdac8bcfbc8f57251de17b96008502e6c7c0c72152c235cc512ca3465586b44ec34f5420da4ad2edbc718cf35e92d0e5a93751e3a
6
+ metadata.gz: dc1aaae1a2aa1bb580b351d93578a48ac20798abf9c35fc80994b601e9d983c8f850b6cc0a2c7c5410a7e4687dc39a17e96f6b63ff24238addc2e94bcb71912d
7
+ data.tar.gz: 78ddf9fc8116c9483c0b4f2fa7ba24190cc2ed639df05656088428ceb7ab2a9a8a978c89ca11adb4eac8a8da512f7d542c188f8e60688db63a937132fe71d8a9
data/.gitignore CHANGED
@@ -2,7 +2,6 @@
2
2
  .AppleDouble
3
3
  .DS_Store
4
4
  .bundle
5
- .byebug_history
6
5
  .history
7
6
  .ruby-version
8
7
  .rvmrc
data/.tool-versions CHANGED
@@ -1,2 +1 @@
1
- ruby 3.1.3
2
- bundler 2.3.17
1
+ ruby 3.2.5
data/Gemfile CHANGED
@@ -3,5 +3,3 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
-
7
- gem 'byebug', platform: 'mri'
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ GemHadar do
12
12
  test_dir 'spec'
13
13
  ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '.rvmrc',
14
14
  '.ruby-version', '.AppleDouble', 'tags', '.DS_Store', '.utilsrc',
15
- '.bundle', '.byebug_history', 'errors.lst', '.yardoc', '.history'
15
+ '.bundle', 'errors.lst', '.yardoc', '.history'
16
16
  readme 'README.md'
17
17
  title "#{name.camelize}"
18
18
 
@@ -25,6 +25,7 @@ GemHadar do
25
25
  development_dependency 'rake'
26
26
  development_dependency 'simplecov'
27
27
  development_dependency 'rspec'
28
+ development_dependency 'debug'
28
29
  end
29
30
 
30
31
  task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.4
1
+ 0.12.5
data/betterdocs.gemspec CHANGED
@@ -1,49 +1,35 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: betterdocs 0.12.4 ruby lib
2
+ # stub: betterdocs 0.12.5 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "betterdocs".freeze
6
- s.version = "0.12.4"
6
+ s.version = "0.12.5".freeze
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 = "2023-04-06"
11
+ s.date = "2024-09-17"
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]
15
15
  s.files = [".codeclimate.yml".freeze, ".gitignore".freeze, ".rspec".freeze, ".semaphore/semaphore.yml".freeze, ".tool-versions".freeze, ".vscode/settings.json".freeze, "COPYING".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "betterdocs.gemspec".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/markdown/templates/README.md.erb".freeze, "lib/betterdocs/generator/markdown/templates/section.md.erb".freeze, "lib/betterdocs/generator/swagger.rb".freeze, "lib/betterdocs/generator/swagger_static/index.html".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/tasks/doc.rake".freeze, "lib/betterdocs/version.rb".freeze, "spec/assets/app/assets/images/logos/logo.png".freeze, "spec/assets/app/controllers/api/foos_controller.rb".freeze, "spec/assets/app/views/api_v4/documentation/assets/CHANGELOG.md".freeze, "spec/assets/config/betterdocs.yml".freeze, "spec/betterdocs/dsl/controller/action/param_spec.rb".freeze, "spec/betterdocs/dsl/controller/action/response_spec.rb".freeze, "spec/betterdocs/dsl/json_type_mapper_spec.rb".freeze, "spec/betterdocs/dsl/result/collection_property_spec.rb".freeze, "spec/betterdocs/dsl/result/link_spec.rb".freeze, "spec/betterdocs/dsl/result/property_spec.rb".freeze, "spec/betterdocs/generator/markdown_spec.rb".freeze, "spec/betterdocs/global_spec.rb".freeze, "spec/betterdocs/json_params_representer_spec.rb".freeze, "spec/betterdocs/result_representer_spec.rb".freeze, "spec/betterdocs/sanitizer_spec.rb".freeze, "spec/controller_dsl_spec.rb".freeze, "spec/result_representer_dsl_spec.rb".freeze, "spec/spec_helper.rb".freeze]
16
16
  s.homepage = "https://github.com/betterplace/betterdocs".freeze
17
17
  s.rdoc_options = ["--title".freeze, "Betterdocs".freeze, "--main".freeze, "README.md".freeze]
18
- s.rubygems_version = "3.3.26".freeze
18
+ s.rubygems_version = "3.5.18".freeze
19
19
  s.summary = "Betterplace API documentation library".freeze
20
20
  s.test_files = ["spec/assets/app/controllers/api/foos_controller.rb".freeze, "spec/betterdocs/dsl/controller/action/param_spec.rb".freeze, "spec/betterdocs/dsl/controller/action/response_spec.rb".freeze, "spec/betterdocs/dsl/json_type_mapper_spec.rb".freeze, "spec/betterdocs/dsl/result/collection_property_spec.rb".freeze, "spec/betterdocs/dsl/result/link_spec.rb".freeze, "spec/betterdocs/dsl/result/property_spec.rb".freeze, "spec/betterdocs/generator/markdown_spec.rb".freeze, "spec/betterdocs/global_spec.rb".freeze, "spec/betterdocs/json_params_representer_spec.rb".freeze, "spec/betterdocs/result_representer_spec.rb".freeze, "spec/betterdocs/sanitizer_spec.rb".freeze, "spec/controller_dsl_spec.rb".freeze, "spec/result_representer_dsl_spec.rb".freeze, "spec/spec_helper.rb".freeze]
21
21
 
22
- if s.respond_to? :specification_version then
23
- s.specification_version = 4
24
- end
22
+ s.specification_version = 4
25
23
 
26
- if s.respond_to? :add_runtime_dependency then
27
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
28
- s.add_development_dependency(%q<rake>.freeze, [">= 0"])
29
- s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
30
- s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
31
- s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.3", ">= 1.3.5"])
32
- s.add_runtime_dependency(%q<rails>.freeze, [">= 3", "< 8"])
33
- s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
34
- s.add_runtime_dependency(%q<complex_config>.freeze, ["~> 0.5"])
35
- s.add_runtime_dependency(%q<infobar>.freeze, [">= 0"])
36
- s.add_runtime_dependency(%q<mize>.freeze, [">= 0"])
37
- else
38
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
39
- s.add_dependency(%q<rake>.freeze, [">= 0"])
40
- s.add_dependency(%q<simplecov>.freeze, [">= 0"])
41
- s.add_dependency(%q<rspec>.freeze, [">= 0"])
42
- s.add_dependency(%q<tins>.freeze, ["~> 1.3", ">= 1.3.5"])
43
- s.add_dependency(%q<rails>.freeze, [">= 3", "< 8"])
44
- s.add_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
45
- s.add_dependency(%q<complex_config>.freeze, ["~> 0.5"])
46
- s.add_dependency(%q<infobar>.freeze, [">= 0"])
47
- s.add_dependency(%q<mize>.freeze, [">= 0"])
48
- end
24
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.17.1".freeze])
25
+ s.add_development_dependency(%q<rake>.freeze, [">= 0".freeze])
26
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0".freeze])
27
+ s.add_development_dependency(%q<rspec>.freeze, [">= 0".freeze])
28
+ s.add_development_dependency(%q<debug>.freeze, [">= 0".freeze])
29
+ s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.3".freeze, ">= 1.3.5".freeze])
30
+ s.add_runtime_dependency(%q<rails>.freeze, [">= 3".freeze, "< 8".freeze])
31
+ s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3".freeze])
32
+ s.add_runtime_dependency(%q<complex_config>.freeze, ["~> 0.5".freeze])
33
+ s.add_runtime_dependency(%q<infobar>.freeze, [">= 0".freeze])
34
+ s.add_runtime_dependency(%q<mize>.freeze, [">= 0".freeze])
49
35
  end
@@ -154,7 +154,7 @@ are optional.
154
154
  ## Response Example
155
155
 
156
156
  ```json
157
- <%= JSON.pretty_generate(action.response, quirks_mode: true) %>
157
+ <%= JSON.pretty_generate(action.response.data.as_json, quirks_mode: true) %>
158
158
  ```
159
159
 
160
160
  <%- end -%>
@@ -1,6 +1,6 @@
1
1
  module Betterdocs
2
2
  # Betterdocs version
3
- VERSION = '0.12.4'
3
+ VERSION = '0.12.5'
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:
data/spec/spec_helper.rb CHANGED
@@ -5,7 +5,8 @@ if ENV['START_SIMPLECOV'].to_i == 1
5
5
  end
6
6
  end
7
7
  require 'rspec'
8
- require 'byebug'
8
+ require 'debug'
9
+ require 'ostruct'
9
10
  require 'betterdocs'
10
11
 
11
12
  RSpec.configure do |c|
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.4
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - betterplace Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-06 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.12.0
19
+ version: 1.17.1
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.12.0
26
+ version: 1.17.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: debug
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: tins
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -299,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
313
  - !ruby/object:Gem::Version
300
314
  version: '0'
301
315
  requirements: []
302
- rubygems_version: 3.3.26
316
+ rubygems_version: 3.5.18
303
317
  signing_key:
304
318
  specification_version: 4
305
319
  summary: Betterplace API documentation library