zero-rails_openapi 1.6.1 → 1.7.0

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
- SHA256:
3
- metadata.gz: 66b3b5f0baadb63bbc86eee3a1fcfbaf7aae4e6c99accace8d67822416cedef9
4
- data.tar.gz: 8352e7bd3a917060a60b080ad02f9104ae808c5e78d793cd6daa928fca9eb3b8
2
+ SHA1:
3
+ metadata.gz: 2c36d4739cd18b900e08cfa519027be7708db2c0
4
+ data.tar.gz: 190d31752d67ef9d7604b13dff821babd0028021
5
5
  SHA512:
6
- metadata.gz: 54d9f088e61a36f5f7c838a0d4dedffb77d97dabf11fba8077b80af25cf7250ecaf0dd5ff494ab82ba2fdfd59dd3a7b2f4a8356ecbf33e773a6e24c5729d837e
7
- data.tar.gz: 4674013106338919992c8d03ee59db6ff7158eaaec7f0aa8c4ee0ec97cbd47c41432aeda33bc7205edd27cb47e7a4554ef5eb4fcf5fb1e7f405dd4a79574c614
6
+ metadata.gz: 8b2b5384e8232e85f68859142d503377c8dea9a4688f51af9813e50bc7121c9f217878b388881a28026b689f651d06bc14ab096f283948aad3d7f8e7c25954bd
7
+ data.tar.gz: 6ccd82ee0b02dfaf6c3c2df7b026cc515ca63471db87b4610eaead41c55b3b59d60198c2fa4ae15c0013db2616252e0c08f04e8d98e41b022d7c994fd5de3383
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  coverage
13
13
 
14
14
  .idea/*
15
+ Gemfile.lock
data/CHANGELOG.md CHANGED
@@ -2,56 +2,74 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.7.0] - 2018/12/17 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.6.1...v1.7.0)
6
+
7
+ ### Added
8
+
9
+ 1. Declare Ruby & Rails version requirement in Gemspec
10
+
11
+ ### Fixed
12
+
13
+ 1. `match?` => `'string'[matcher].present?`, for compatibility with ruby < 2.4
14
+
15
+ ### Changed
16
+
17
+ 1. Config option `base_doc_class: ApiDoc` changed to `base_doc_classes: [ApiDoc]`
18
+
5
19
  ## [1.6.1] - 2018/8/21 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.6.0...v1.6.1)
6
20
 
7
- ## Fixed
21
+ ### Added
22
+
23
+ `tag` is allowed to pass to `api`
24
+
25
+ ### Fixed
8
26
 
9
27
  1. camelize action tag
10
28
  2. update gems cause sprockets vulnerability
11
29
 
12
30
  ## [1.6.0] - 2018/6/26 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.9...v1.6.0)
13
31
 
14
- ## Changed
32
+ ### Changed
15
33
 
16
34
  1. issue [#21](https://github.com/zhandao/zero-rails_openapi/issues/21) support additionalProperties. Thanks @barnaclebarnes
17
35
  2. issue [#23](https://github.com/zhandao/zero-rails_openapi/issues/23) Uniqueness of operationId. Thanks @barnaclebarnes
18
36
 
19
- ## Fixed
37
+ ### Fixed
20
38
 
21
39
  1. issue [#22](https://github.com/zhandao/zero-rails_openapi/issues/22) missing `/` in reference. Thanks @barnaclebarnes
22
40
 
23
41
  ## [1.5.8 & 1.5.9] - 2018/6/19 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.7...v1.5.9)
24
42
 
25
- ## Changed
43
+ ### Changed
26
44
 
27
45
  1. issue [#17](https://github.com/zhandao/zero-rails_openapi/issues/17) singular example in schema. Thanks @williamdias
28
46
  1. issue [#18](https://github.com/zhandao/zero-rails_openapi/issues/18) define multiple components blocks in one class. Thanks @Amnesthesia
29
47
 
30
48
  ## [1.5.7] - 2018/4/6 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.6...v1.5.7)
31
49
 
32
- ## Changed
50
+ ### Changed
33
51
 
34
52
  1. issue [#16](https://github.com/zhandao/zero-rails_openapi/issues/16) DSL in `base_doc_class` can not be generated. Thanks @jonathantribouharet
35
53
 
36
- ## Fixed
54
+ ### Fixed
37
55
 
38
56
  1. issue [#15](https://github.com/zhandao/zero-rails_openapi/issues/15) colorize was not required. Thanks @jonathantribouharet
39
57
  2. securitySchemes defined by config DSL was not be generated.
40
58
 
41
59
  ## [1.5.6] - 2018/3/23 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.5...v1.5.6)
42
60
 
43
- ## Changed
61
+ ### Changed
44
62
 
45
63
  1. Upgrade `loofah` and `rails-html-sanitizer` cause XSS vulnerability.
46
64
  2. Refactor and document DSL for Rspec (spec_dsl.rb).
47
65
 
48
66
  ## [1.5.5] - 2018/2/21 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.4...v1.5.5)
49
67
 
50
- ## Added
68
+ ### Added
51
69
 
52
70
  1. Callback Object has been supported. (issue [#12](#https://github.com/zhandao/zero-rails_openapi/issues/12) @austbot)
53
71
 
54
- ## Changed
72
+ ### Changed
55
73
 
56
74
  1. `mk`'s parameter `eq` is changed to `get`. (dssl.rb)
57
75
 
@@ -61,29 +79,29 @@ Thanks to @austbot, fix - colorize fails at runtime.
61
79
 
62
80
  ## [1.5.3] - 2018/1/25 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.2...v1.5.3)
63
81
 
64
- ## Added
82
+ ### Added
65
83
 
66
84
  1. Colorize output.
67
85
 
68
- ## Changed
86
+ ### Changed
69
87
 
70
88
  1. Refactoring SchemaObj and remove `preprocess`.
71
89
  2. `schema_hash` => `schema_info`.
72
90
  3. Refactoring `process_objs` .. dsl/ files.
73
91
 
74
- ## Fixed
92
+ ### Fixed
75
93
 
76
94
  1. max lth and min lth is reversed.
77
95
 
78
96
  ## [1.5.2] - 2018/1/2 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.1...v1.5.2)
79
97
 
80
- ## Added
98
+ ### Added
81
99
 
82
100
  1. `do_*` can be passed common schema after (or before) `by:`.
83
101
  2. when this action can be accessed through multiple HTTP methods (but not set through `match`),
84
102
  it also matches and generate both HTTP methods.
85
103
 
86
- ## Changed
104
+ ### Changed
87
105
 
88
106
  1. `root_controller` => `base_doc_class`.
89
107
  2. `ctrl_path` => `ctrl_base`.
data/README.md CHANGED
@@ -107,8 +107,8 @@
107
107
  c.open_api_docs = {
108
108
  # The definition of the document `homepage`.
109
109
  homepage: {
110
- # [REQUIRED] ZRO will scan all the descendants of base_doc_class, then generate their docs.
111
- base_doc_class: Api::V1::BaseController,
110
+ # [REQUIRED] ZRO will scan all the descendants of base_doc_classes, then generate their docs.
111
+ base_doc_classes: [Api::V1::BaseController],
112
112
 
113
113
  # [REQUIRED] OAS Info Object: The section contains API information.
114
114
  info: {
@@ -138,7 +138,7 @@
138
138
  c.file_output_path = 'public/open_api'
139
139
 
140
140
  c.instance_eval do
141
- open_api :homepage_api, base_doc_class: ApiDoc
141
+ open_api :homepage_api, base_doc_classes: [ApiDoc]
142
142
  info version: '1.0.0', title: 'Homepage APIs'
143
143
  end
144
144
  end
@@ -703,7 +703,7 @@
703
703
  ```ruby
704
704
  # config/initializers/open_api.rb
705
705
  # in your configuration
706
- base_doc_class: ApiDoc
706
+ base_doc_classes: [ApiDoc]
707
707
 
708
708
  # app/api_doc/api_doc.rb
709
709
  require 'open_api/dsl'
@@ -724,8 +724,8 @@
724
724
 
725
725
  Explain: These four steps are necessary:
726
726
  1. create a class, like ApiDoc, and make it include OpenApi::DSL (then it could be the base class for writing Api spec).
727
- 2. set the specified Api spec's base_doc_class to ApiDoc.
728
- 3. let your doc class (like V1::ExamplesDoc) inherit the base_doc_class (ApiDoc).
727
+ 2. set the specified Api spec's base_doc_classes to ApiDoc.
728
+ 3. let your doc class (like V1::ExamplesDoc) inherit the base_doc_classes (ApiDoc).
729
729
  4. set the route_base (to route path api/v1/examples of that controller Api::V1::ExamplesController) inside V1::ExamplesDoc.
730
730
 
731
731
  Notes: file name ends in `_doc.rb` by default, but you can change it by setting `Config.doc_location`
@@ -805,13 +805,7 @@
805
805
 
806
806
  - **You wrote document of the current API, but not find in the generated json file?**
807
807
  Check your routing settings.
808
- - **Undefine method `match?`**
809
- Monkey patches for `String` and `Symbol`:
810
- ```ruby
811
- class String # Symbol
812
- def match?(pattern); !match(pattern).nil? end
813
- end
814
- ```
808
+
815
809
  - **Report error when require `routes.rb`?***
816
810
  1. Run `rails routes`.
817
811
  2. Copy the output to a file, for example `config/routes.txt`.
data/README_zh.md CHANGED
@@ -94,8 +94,8 @@
94
94
  c.open_api_docs = {
95
95
  # 对文档 `homepage` 进行定义
96
96
  homepage: {
97
- # [REQUIRED] ZRO will scan all the descendants of base_doc_class, then generate their docs.
98
- base_doc_class: Api::V1::BaseController,
97
+ # [REQUIRED] ZRO will scan all the descendants of base_doc_classes, then generate their docs.
98
+ base_doc_classes: [Api::V1::BaseController],
99
99
 
100
100
  # [REQUIRED] OAS Info Object: The section contains API information.
101
101
  info: {
@@ -124,7 +124,7 @@
124
124
  c.file_output_path = 'public/open_api'
125
125
 
126
126
  c.instance_eval do
127
- open_api :homepage_api, base_doc_class: ApiDoc
127
+ open_api :homepage_api, base_doc_classes: [ApiDoc]
128
128
  info version: '1.0.0', title: 'Homepage APIs'
129
129
  end
130
130
  end
@@ -649,7 +649,7 @@
649
649
  ```ruby
650
650
  # config/initializers/open_api.rb
651
651
  # in your configuration
652
- base_doc_class: ApiDoc
652
+ base_doc_classes: [ApiDoc]
653
653
 
654
654
  # app/api_doc/api_doc.rb
655
655
  require 'open_api/dsl'
@@ -745,13 +745,7 @@
745
745
 
746
746
  - **You wrote document of the current API, but not find in the generated json file?**
747
747
  Check your routing settings.
748
- - **Undefine method `match?`**
749
- Monkey patches for `String` and `Symbol`:
750
- ```ruby
751
- class String # Symbol
752
- def match?(pattern); !match(pattern).nil? end
753
- end
754
- ```
748
+
755
749
  - **Report error when require `routes.rb`?***
756
750
  1. Run `rails routes`.
757
751
  2. Copy the output to a file, for example `config/routes.txt`.
@@ -10,8 +10,8 @@ module AutoGenDoc
10
10
  def inherited(subclass)
11
11
  super
12
12
  subclass.class_eval do
13
- break unless self.name.match?(/sController|sDoc/)
14
- route_base self.name.sub('Doc', '').downcase.gsub('::', '/') if self.name.match?(/sDoc/)
13
+ break unless self.name[/sController|sDoc/]
14
+ route_base self.name.sub('Doc', '').downcase.gsub('::', '/') if self.name[/sDoc/]
15
15
  open_api_dry
16
16
  end
17
17
  end
@@ -3,7 +3,7 @@ require 'open_api'
3
3
  OpenApi::Config.tap do |c|
4
4
  # Config DSL
5
5
  c.instance_eval do
6
- open_api :zero_rails, base_doc_class: ApiDoc
6
+ open_api :zero_rails, base_doc_classes: [ApiDoc]
7
7
  info version: '0.0.1', title: 'Zero Rails APIs', description: 'API documentation of Zero-Rails Application.'
8
8
  server 'http://localhost:3000', desc: 'Main (production) server'
9
9
  server 'http://localhost:3000', desc: 'Internal staging server for testing'
@@ -21,8 +21,8 @@ OpenApi::Config.tap do |c|
21
21
  # Getting started: https://swagger.io/docs/specification/basic-structure/
22
22
  c.open_api_docs = {
23
23
  blog_api: {
24
- # [REQUIRED] ZRO will scan all the descendants of the base_doc_class, then generate their docs.
25
- base_doc_class: ApiController,
24
+ # [REQUIRED] ZRO will scan all the descendants of the base_doc_classes, then generate their docs.
25
+ base_doc_classes: [ApiController],
26
26
 
27
27
  # [REQUIRED] Info Object: The info section contains API information
28
28
  info: {
@@ -12,7 +12,7 @@ module OpenApi
12
12
  self.processed = {
13
13
  name: name,
14
14
  in: param_type,
15
- required: required.to_s.match?(/req/)
15
+ required: required.to_s[/req/].present?
16
16
  }
17
17
  self.schema = schema.is_a?(CombinedSchema) ? schema : SchemaObj.new(type, schema)
18
18
  merge! schema
@@ -11,7 +11,7 @@ module OpenApi
11
11
  attr_accessor :processed, :media_types
12
12
  def initialize(required, desc)
13
13
  self.media_types = [ ]
14
- self.processed = { required: required.match?('req'), description: desc }
14
+ self.processed = { required: required['req'].present?, description: desc }
15
15
  end
16
16
 
17
17
  def add_or_fusion(media_type, hash)
@@ -40,14 +40,14 @@ module OpenApi
40
40
  elsif t.is_a? Symbol
41
41
  RefObj.new(:schema, t).process
42
42
  elsif t.in? %w[ float double int32 int64 ]
43
- { type: t.match?('int') ? 'integer' : 'number', format: t }
43
+ { type: t['int'] ? 'integer' : 'number', format: t }
44
44
  elsif t.in? %w[ binary base64 uri ]
45
45
  { type: 'string', format: t }
46
- elsif t == 'file'
46
+ elsif t == 'file' # TODO
47
47
  { type: 'string', format: Config.file_format }
48
48
  elsif t == 'datetime'
49
49
  { type: 'string', format: 'date-time' }
50
- elsif t.match?(/\{=>.*\}/)
50
+ elsif t[/\{=>.*\}/]
51
51
  self[:values_type] = t[3..-2]
52
52
  { type: 'object' }
53
53
  else # other string
@@ -32,8 +32,8 @@ module OpenApi
32
32
  {
33
33
  # # [REQUIRED] At least one doc.
34
34
  # zero_rails: {
35
- # # [REQUIRED] ZRO will scan all the descendants of the base_doc_class, and then generate their docs.
36
- # base_doc_class: ApplicationController,
35
+ # # [REQUIRED] ZRO will scan all the descendants of the base_doc_classes, and then generate their docs.
36
+ # base_doc_classes: [ApplicationController],
37
37
  #
38
38
  # # [REQUIRED] Info Object: The info section contains API information
39
39
  # info: {
@@ -4,9 +4,9 @@ module OpenApi
4
4
  base.class_eval do
5
5
  module_function
6
6
 
7
- def open_api name, base_doc_class:
7
+ def open_api name, base_doc_classes:
8
8
  @api = name
9
- open_api_docs[name] = { base_doc_class: base_doc_class }
9
+ open_api_docs[name] = { base_doc_classes: base_doc_classes }
10
10
  end
11
11
 
12
12
  def info version:, title:, desc: '', **addition
data/lib/open_api/dsl.rb CHANGED
@@ -34,16 +34,16 @@ module OpenApi
34
34
  (@doc_info[:components] ||= { }).deep_merge!(current_doc)
35
35
  end
36
36
 
37
- def api action, summary = '', id: nil, http: http_method = nil, skip: [ ], use: [ ], &block
37
+ def api action, summary = '', id: nil, tag: nil, http: http_method = nil, skip: [ ], use: [ ], &block
38
38
  doc_tag if @doc_info.nil?
39
39
  # select the routing info (corresponding to the current method) from routing list.
40
40
  action_path = "#{@route_base ||= controller_path}##{action}"
41
- routes = ctrl_routes_list&.select { |api| api[:action_path].match?(/^#{action_path}$/) }
41
+ routes = ctrl_routes_list&.select { |api| api[:action_path][/^#{action_path}$/].present? }
42
42
  return puts ' ZRO'.red + " Route mapping failed: #{action_path}" if routes.blank?
43
43
 
44
44
  api = Api.new(action_path, skip: Array(skip), use: Array(use))
45
- .merge! description: '', summary: summary, operationId: id || "#{@doc_info[:tag][:name]}#{action.capitalize}",
46
- tags: [@doc_tag], parameters: [ ], requestBody: '', responses: { }, callbacks: { },
45
+ .merge! description: '', summary: summary, operationId: id || "#{@doc_info[:tag][:name]}_#{action.to_s.camelize}",
46
+ tags: [tag || @doc_tag], parameters: [ ], requestBody: '', responses: { }, callbacks: { },
47
47
  links: { }, security: [ ], servers: [ ]
48
48
  [action, :all].each { |blk_key| @zro_dry_blocks&.[](blk_key)&.each { |blk| api.instance_eval(&blk) } }
49
49
  api.param_use = api.param_skip = [ ] # `skip` and `use` only affect `api_dry`'s blocks
@@ -31,7 +31,7 @@ module OpenApi
31
31
  if columns.include?(attr)
32
32
  index = columns.index(attr)
33
33
  _type_mapping(model.columns[index])
34
- elsif attr.match?(/_info/)
34
+ elsif attr[/_info/]
35
35
  # TODO: 如何获知关系是 many?因为不能只判断结尾是否 ‘s’
36
36
  assoc_model = Object.const_get(attr.to_s.split('_').first.singularize.camelize)
37
37
  { attr => load_schema(assoc_model) }
@@ -1,4 +1,3 @@
1
- require 'active_support/hash_with_indifferent_access'
2
1
  require 'open_api/config'
3
2
  require 'colorize'
4
3
 
@@ -14,6 +13,7 @@ module OpenApi
14
13
  def generate_docs(doc_name = nil)
15
14
  return puts ' ZRO'.red + ' No documents have been configured!' if Config.docs.keys.blank?
16
15
 
16
+ # TODO
17
17
  # :nocov:
18
18
  Dir['./app/controllers/**/*_controller.rb'].each do |file|
19
19
  file.sub('./app/controllers/', '').sub('.rb', '').camelize.constantize
@@ -33,7 +33,7 @@ module OpenApi
33
33
  }
34
34
  )
35
35
 
36
- [(bdc = settings[:base_doc_class]), *bdc.descendants].each do |ctrl|
36
+ [*(bdc = settings[:base_doc_classes]), *bdc.flat_map(&:descendants)].each do |ctrl|
37
37
  doc_info = ctrl.instance_variable_get('@doc_info')
38
38
  next if doc_info.nil?
39
39
 
@@ -47,7 +47,7 @@ module OpenApi
47
47
  doc[:tags] = doc[:tags].sort { |a, b| a[:name] <=> b[:name] }
48
48
  doc[:paths] = doc[:paths].sort.to_h
49
49
 
50
- OpenApi.docs[doc_name] = HashWithIndifferentAccess.new(doc.delete_if { |_, v| v.blank? })
50
+ OpenApi.docs[doc_name] = doc#.delete_if { |_, v| v.blank? }
51
51
  end
52
52
 
53
53
  def write_docs(generate_files: true)
@@ -85,7 +85,7 @@ module OpenApi
85
85
 
86
86
  def routes_list
87
87
  @routes_list ||= routes.split("\n").drop(1).map do |line|
88
- next unless line.match?('#')
88
+ next unless line['#']
89
89
  infos = line.match(/[A-Z|].*/).to_s.split(' ') # => [GET, /api/v1/examples/:id, api/v1/examples#index]
90
90
 
91
91
  {
@@ -1,3 +1,3 @@
1
1
  module OpenApi
2
- VERSION = '1.6.1'
2
+ VERSION = '1.7.0'
3
3
  end
@@ -21,16 +21,17 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- # spec.required_ruby_version = ">= 2.2.2"
24
+ spec.required_ruby_version = '>= 2.3.0'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.16.a'
27
27
  spec.add_development_dependency 'rake', '~> 10.0'
28
28
  spec.add_development_dependency 'rspec', '~> 3.0'
29
29
  spec.add_development_dependency 'simplecov'
30
+ spec.add_development_dependency 'pry'
30
31
 
31
32
  spec.add_runtime_dependency 'colorize'
32
- spec.add_runtime_dependency 'activesupport', '>= 3'
33
- spec.add_runtime_dependency 'rails', '>= 3'
33
+ spec.add_runtime_dependency 'activesupport', '>= 4.1'
34
+ spec.add_runtime_dependency 'rails', '>= 4.1'
34
35
 
35
36
  # spec.post_install_message = ""
36
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zero-rails_openapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhandao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-21 00:00:00.000000000 Z
11
+ date: 2018-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
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: colorize
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +100,28 @@ dependencies:
86
100
  requirements:
87
101
  - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: '3'
103
+ version: '4.1'
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '3'
110
+ version: '4.1'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rails
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ">="
102
116
  - !ruby/object:Gem::Version
103
- version: '3'
117
+ version: '4.1'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: '3'
124
+ version: '4.1'
111
125
  description: Concise DSL for generating OpenAPI Specification 3 (OAS3) JSON documentation
112
126
  for Rails application.
113
127
  email:
@@ -123,7 +137,6 @@ files:
123
137
  - CHANGELOG.md
124
138
  - CODE_OF_CONDUCT.md
125
139
  - Gemfile
126
- - Gemfile.lock
127
140
  - LICENSE.txt
128
141
  - README.md
129
142
  - README_zh.md
@@ -171,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
184
  requirements:
172
185
  - - ">="
173
186
  - !ruby/object:Gem::Version
174
- version: '0'
187
+ version: 2.3.0
175
188
  required_rubygems_version: !ruby/object:Gem::Requirement
176
189
  requirements:
177
190
  - - ">="
@@ -179,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
192
  version: '0'
180
193
  requirements: []
181
194
  rubyforge_project:
182
- rubygems_version: 2.7.6
195
+ rubygems_version: 2.6.12
183
196
  signing_key:
184
197
  specification_version: 4
185
198
  summary: Concise DSL for generating OpenAPI3 documentation.
data/Gemfile.lock DELETED
@@ -1,153 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- zero-rails_openapi (1.6.1)
5
- activesupport (>= 3)
6
- colorize
7
- rails (>= 3)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actioncable (5.2.1)
13
- actionpack (= 5.2.1)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailer (5.2.1)
17
- actionpack (= 5.2.1)
18
- actionview (= 5.2.1)
19
- activejob (= 5.2.1)
20
- mail (~> 2.5, >= 2.5.4)
21
- rails-dom-testing (~> 2.0)
22
- actionpack (5.2.1)
23
- actionview (= 5.2.1)
24
- activesupport (= 5.2.1)
25
- rack (~> 2.0)
26
- rack-test (>= 0.6.3)
27
- rails-dom-testing (~> 2.0)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (5.2.1)
30
- activesupport (= 5.2.1)
31
- builder (~> 3.1)
32
- erubi (~> 1.4)
33
- rails-dom-testing (~> 2.0)
34
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (5.2.1)
36
- activesupport (= 5.2.1)
37
- globalid (>= 0.3.6)
38
- activemodel (5.2.1)
39
- activesupport (= 5.2.1)
40
- activerecord (5.2.1)
41
- activemodel (= 5.2.1)
42
- activesupport (= 5.2.1)
43
- arel (>= 9.0)
44
- activestorage (5.2.1)
45
- actionpack (= 5.2.1)
46
- activerecord (= 5.2.1)
47
- marcel (~> 0.3.1)
48
- activesupport (5.2.1)
49
- concurrent-ruby (~> 1.0, >= 1.0.2)
50
- i18n (>= 0.7, < 2)
51
- minitest (~> 5.1)
52
- tzinfo (~> 1.1)
53
- arel (9.0.0)
54
- builder (3.2.3)
55
- colorize (0.8.1)
56
- concurrent-ruby (1.0.5)
57
- crass (1.0.4)
58
- diff-lcs (1.3)
59
- docile (1.3.0)
60
- erubi (1.7.1)
61
- globalid (0.4.1)
62
- activesupport (>= 4.2.0)
63
- i18n (1.1.0)
64
- concurrent-ruby (~> 1.0)
65
- json (2.1.0)
66
- loofah (2.2.2)
67
- crass (~> 1.0.2)
68
- nokogiri (>= 1.5.9)
69
- mail (2.7.0)
70
- mini_mime (>= 0.1.1)
71
- marcel (0.3.2)
72
- mimemagic (~> 0.3.2)
73
- method_source (0.9.0)
74
- mimemagic (0.3.2)
75
- mini_mime (1.0.1)
76
- mini_portile2 (2.3.0)
77
- minitest (5.11.3)
78
- nio4r (2.3.1)
79
- nokogiri (1.8.4)
80
- mini_portile2 (~> 2.3.0)
81
- rack (2.0.5)
82
- rack-test (1.1.0)
83
- rack (>= 1.0, < 3)
84
- rails (5.2.1)
85
- actioncable (= 5.2.1)
86
- actionmailer (= 5.2.1)
87
- actionpack (= 5.2.1)
88
- actionview (= 5.2.1)
89
- activejob (= 5.2.1)
90
- activemodel (= 5.2.1)
91
- activerecord (= 5.2.1)
92
- activestorage (= 5.2.1)
93
- activesupport (= 5.2.1)
94
- bundler (>= 1.3.0)
95
- railties (= 5.2.1)
96
- sprockets-rails (>= 2.0.0)
97
- rails-dom-testing (2.0.3)
98
- activesupport (>= 4.2.0)
99
- nokogiri (>= 1.6)
100
- rails-html-sanitizer (1.0.4)
101
- loofah (~> 2.2, >= 2.2.2)
102
- railties (5.2.1)
103
- actionpack (= 5.2.1)
104
- activesupport (= 5.2.1)
105
- method_source
106
- rake (>= 0.8.7)
107
- thor (>= 0.19.0, < 2.0)
108
- rake (10.5.0)
109
- rspec (3.7.0)
110
- rspec-core (~> 3.7.0)
111
- rspec-expectations (~> 3.7.0)
112
- rspec-mocks (~> 3.7.0)
113
- rspec-core (3.7.1)
114
- rspec-support (~> 3.7.0)
115
- rspec-expectations (3.7.0)
116
- diff-lcs (>= 1.2.0, < 2.0)
117
- rspec-support (~> 3.7.0)
118
- rspec-mocks (3.7.0)
119
- diff-lcs (>= 1.2.0, < 2.0)
120
- rspec-support (~> 3.7.0)
121
- rspec-support (3.7.1)
122
- simplecov (0.16.1)
123
- docile (~> 1.1)
124
- json (>= 1.8, < 3)
125
- simplecov-html (~> 0.10.0)
126
- simplecov-html (0.10.2)
127
- sprockets (3.7.2)
128
- concurrent-ruby (~> 1.0)
129
- rack (> 1, < 3)
130
- sprockets-rails (3.2.1)
131
- actionpack (>= 4.0)
132
- activesupport (>= 4.0)
133
- sprockets (>= 3.0.0)
134
- thor (0.20.0)
135
- thread_safe (0.3.6)
136
- tzinfo (1.2.5)
137
- thread_safe (~> 0.1)
138
- websocket-driver (0.7.0)
139
- websocket-extensions (>= 0.1.0)
140
- websocket-extensions (0.1.3)
141
-
142
- PLATFORMS
143
- ruby
144
-
145
- DEPENDENCIES
146
- bundler (~> 1.16.a)
147
- rake (~> 10.0)
148
- rspec (~> 3.0)
149
- simplecov
150
- zero-rails_openapi!
151
-
152
- BUNDLED WITH
153
- 1.16.3