gitlab-grape-swagger 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.github/dependabot.yml +20 -0
  4. data/.github/workflows/ci.yml +45 -0
  5. data/.gitignore +44 -0
  6. data/.gitlab-ci.yml +19 -0
  7. data/.rspec +3 -0
  8. data/.rubocop.yml +136 -0
  9. data/.rubocop_todo.yml +60 -0
  10. data/.ruby-gemset +1 -0
  11. data/CHANGELOG.md +671 -0
  12. data/CONTRIBUTING.md +126 -0
  13. data/Dangerfile +3 -0
  14. data/Gemfile +45 -0
  15. data/Gemfile.lock +249 -0
  16. data/LICENSE.txt +20 -0
  17. data/README.md +1772 -0
  18. data/RELEASING.md +82 -0
  19. data/Rakefile +20 -0
  20. data/UPGRADING.md +201 -0
  21. data/example/api/endpoints.rb +131 -0
  22. data/example/api/entities.rb +18 -0
  23. data/example/config.ru +42 -0
  24. data/example/example_requests.postman_collection +146 -0
  25. data/example/splines.png +0 -0
  26. data/example/swagger-example.png +0 -0
  27. data/grape-swagger.gemspec +23 -0
  28. data/lib/grape-swagger/doc_methods/build_model_definition.rb +68 -0
  29. data/lib/grape-swagger/doc_methods/data_type.rb +110 -0
  30. data/lib/grape-swagger/doc_methods/extensions.rb +101 -0
  31. data/lib/grape-swagger/doc_methods/file_params.rb +17 -0
  32. data/lib/grape-swagger/doc_methods/format_data.rb +53 -0
  33. data/lib/grape-swagger/doc_methods/headers.rb +20 -0
  34. data/lib/grape-swagger/doc_methods/move_params.rb +209 -0
  35. data/lib/grape-swagger/doc_methods/operation_id.rb +32 -0
  36. data/lib/grape-swagger/doc_methods/optional_object.rb +30 -0
  37. data/lib/grape-swagger/doc_methods/parse_params.rb +190 -0
  38. data/lib/grape-swagger/doc_methods/path_string.rb +52 -0
  39. data/lib/grape-swagger/doc_methods/produces_consumes.rb +15 -0
  40. data/lib/grape-swagger/doc_methods/status_codes.rb +21 -0
  41. data/lib/grape-swagger/doc_methods/tag_name_description.rb +34 -0
  42. data/lib/grape-swagger/doc_methods/version.rb +20 -0
  43. data/lib/grape-swagger/doc_methods.rb +142 -0
  44. data/lib/grape-swagger/endpoint/params_parser.rb +76 -0
  45. data/lib/grape-swagger/endpoint.rb +476 -0
  46. data/lib/grape-swagger/errors.rb +17 -0
  47. data/lib/grape-swagger/instance.rb +7 -0
  48. data/lib/grape-swagger/model_parsers.rb +42 -0
  49. data/lib/grape-swagger/rake/oapi_tasks.rb +135 -0
  50. data/lib/grape-swagger/version.rb +5 -0
  51. data/lib/grape-swagger.rb +174 -0
  52. data/spec/issues/267_nested_namespaces.rb +55 -0
  53. data/spec/issues/403_versions_spec.rb +124 -0
  54. data/spec/issues/427_entity_as_string_spec.rb +39 -0
  55. data/spec/issues/430_entity_definitions_spec.rb +94 -0
  56. data/spec/issues/532_allow_custom_format_spec.rb +42 -0
  57. data/spec/issues/533_specify_status_code_spec.rb +78 -0
  58. data/spec/issues/537_enum_values_spec.rb +50 -0
  59. data/spec/issues/539_array_post_body_spec.rb +65 -0
  60. data/spec/issues/542_array_of_type_in_post_body_spec.rb +46 -0
  61. data/spec/issues/553_align_array_put_post_params_spec.rb +152 -0
  62. data/spec/issues/572_array_post_body_spec.rb +51 -0
  63. data/spec/issues/579_align_put_post_parameters_spec.rb +185 -0
  64. data/spec/issues/582_file_response_spec.rb +55 -0
  65. data/spec/issues/587_range_parameter_delimited_by_dash_spec.rb +26 -0
  66. data/spec/issues/605_root_route_documentation_spec.rb +23 -0
  67. data/spec/issues/650_params_array_spec.rb +65 -0
  68. data/spec/issues/677_consumes_produces_add_swagger_documentation_options_spec.rb +100 -0
  69. data/spec/issues/680_keep_204_error_schemas_spec.rb +55 -0
  70. data/spec/issues/721_set_default_parameter_location_based_on_consumes_spec.rb +62 -0
  71. data/spec/issues/751_deeply_nested_objects_spec.rb +190 -0
  72. data/spec/issues/776_multiple_presents_spec.rb +59 -0
  73. data/spec/issues/784_extensions_on_params_spec.rb +42 -0
  74. data/spec/issues/809_utf8_routes_spec.rb +55 -0
  75. data/spec/issues/832_array_hash_float_decimal_spec.rb +114 -0
  76. data/spec/issues/847_route_param_options_spec.rb +37 -0
  77. data/spec/issues/873_wildcard_segments_path_parameters_spec.rb +28 -0
  78. data/spec/issues/878_optional_path_segments_spec.rb +29 -0
  79. data/spec/issues/881_handle_file_params_spec.rb +38 -0
  80. data/spec/issues/883_query_array_parameter_spec.rb +46 -0
  81. data/spec/issues/884_dont_document_non_schema_examples_spec.rb +49 -0
  82. data/spec/issues/887_prevent_duplicate_operation_ids_spec.rb +35 -0
  83. data/spec/lib/data_type_spec.rb +111 -0
  84. data/spec/lib/endpoint/params_parser_spec.rb +124 -0
  85. data/spec/lib/endpoint_spec.rb +153 -0
  86. data/spec/lib/extensions_spec.rb +185 -0
  87. data/spec/lib/format_data_spec.rb +115 -0
  88. data/spec/lib/model_parsers_spec.rb +104 -0
  89. data/spec/lib/move_params_spec.rb +444 -0
  90. data/spec/lib/oapi_tasks_spec.rb +163 -0
  91. data/spec/lib/operation_id_spec.rb +55 -0
  92. data/spec/lib/optional_object_spec.rb +47 -0
  93. data/spec/lib/parse_params_spec.rb +68 -0
  94. data/spec/lib/path_string_spec.rb +101 -0
  95. data/spec/lib/produces_consumes_spec.rb +116 -0
  96. data/spec/lib/tag_name_description_spec.rb +80 -0
  97. data/spec/lib/version_spec.rb +28 -0
  98. data/spec/spec_helper.rb +39 -0
  99. data/spec/support/empty_model_parser.rb +23 -0
  100. data/spec/support/grape_version.rb +13 -0
  101. data/spec/support/mock_parser.rb +23 -0
  102. data/spec/support/model_parsers/entity_parser.rb +334 -0
  103. data/spec/support/model_parsers/mock_parser.rb +346 -0
  104. data/spec/support/model_parsers/representable_parser.rb +406 -0
  105. data/spec/support/namespace_tags.rb +93 -0
  106. data/spec/support/the_paths_definitions.rb +109 -0
  107. data/spec/swagger_v2/api_documentation_spec.rb +42 -0
  108. data/spec/swagger_v2/api_swagger_v2_additional_properties_spec.rb +83 -0
  109. data/spec/swagger_v2/api_swagger_v2_body_definitions_spec.rb +48 -0
  110. data/spec/swagger_v2/api_swagger_v2_definitions-models_spec.rb +36 -0
  111. data/spec/swagger_v2/api_swagger_v2_detail_spec.rb +79 -0
  112. data/spec/swagger_v2/api_swagger_v2_extensions_spec.rb +145 -0
  113. data/spec/swagger_v2/api_swagger_v2_format-content_type_spec.rb +137 -0
  114. data/spec/swagger_v2/api_swagger_v2_global_configuration_spec.rb +56 -0
  115. data/spec/swagger_v2/api_swagger_v2_hash_and_array_spec.rb +64 -0
  116. data/spec/swagger_v2/api_swagger_v2_headers_spec.rb +58 -0
  117. data/spec/swagger_v2/api_swagger_v2_hide_documentation_path_spec.rb +57 -0
  118. data/spec/swagger_v2/api_swagger_v2_hide_param_spec.rb +109 -0
  119. data/spec/swagger_v2/api_swagger_v2_ignore_defaults_spec.rb +48 -0
  120. data/spec/swagger_v2/api_swagger_v2_mounted_spec.rb +153 -0
  121. data/spec/swagger_v2/api_swagger_v2_param_type_body_nested_spec.rb +355 -0
  122. data/spec/swagger_v2/api_swagger_v2_param_type_body_spec.rb +217 -0
  123. data/spec/swagger_v2/api_swagger_v2_param_type_spec.rb +247 -0
  124. data/spec/swagger_v2/api_swagger_v2_request_params_fix_spec.rb +80 -0
  125. data/spec/swagger_v2/api_swagger_v2_response_spec.rb +147 -0
  126. data/spec/swagger_v2/api_swagger_v2_response_with_examples_spec.rb +135 -0
  127. data/spec/swagger_v2/api_swagger_v2_response_with_headers_spec.rb +216 -0
  128. data/spec/swagger_v2/api_swagger_v2_response_with_models_spec.rb +53 -0
  129. data/spec/swagger_v2/api_swagger_v2_response_with_root_spec.rb +153 -0
  130. data/spec/swagger_v2/api_swagger_v2_spec.rb +245 -0
  131. data/spec/swagger_v2/api_swagger_v2_status_codes_spec.rb +93 -0
  132. data/spec/swagger_v2/api_swagger_v2_type-format_spec.rb +90 -0
  133. data/spec/swagger_v2/boolean_params_spec.rb +38 -0
  134. data/spec/swagger_v2/default_api_spec.rb +175 -0
  135. data/spec/swagger_v2/deprecated_field_spec.rb +25 -0
  136. data/spec/swagger_v2/description_not_initialized_spec.rb +39 -0
  137. data/spec/swagger_v2/endpoint_versioned_path_spec.rb +130 -0
  138. data/spec/swagger_v2/errors_spec.rb +77 -0
  139. data/spec/swagger_v2/float_api_spec.rb +36 -0
  140. data/spec/swagger_v2/form_params_spec.rb +76 -0
  141. data/spec/swagger_v2/grape-swagger_spec.rb +17 -0
  142. data/spec/swagger_v2/guarded_endpoint_spec.rb +162 -0
  143. data/spec/swagger_v2/hide_api_spec.rb +147 -0
  144. data/spec/swagger_v2/host_spec.rb +43 -0
  145. data/spec/swagger_v2/inheritance_and_discriminator_spec.rb +57 -0
  146. data/spec/swagger_v2/mount_override_api_spec.rb +58 -0
  147. data/spec/swagger_v2/mounted_target_class_spec.rb +76 -0
  148. data/spec/swagger_v2/namespace_tags_prefix_spec.rb +122 -0
  149. data/spec/swagger_v2/namespace_tags_spec.rb +78 -0
  150. data/spec/swagger_v2/namespaced_api_spec.rb +121 -0
  151. data/spec/swagger_v2/nicknamed_api_spec.rb +25 -0
  152. data/spec/swagger_v2/operation_id_api_spec.rb +27 -0
  153. data/spec/swagger_v2/param_multi_type_spec.rb +82 -0
  154. data/spec/swagger_v2/param_type_spec.rb +95 -0
  155. data/spec/swagger_v2/param_values_spec.rb +180 -0
  156. data/spec/swagger_v2/params_array_collection_format_spec.rb +105 -0
  157. data/spec/swagger_v2/params_array_spec.rb +225 -0
  158. data/spec/swagger_v2/params_example_spec.rb +38 -0
  159. data/spec/swagger_v2/params_hash_spec.rb +77 -0
  160. data/spec/swagger_v2/params_nested_spec.rb +92 -0
  161. data/spec/swagger_v2/parent_less_namespace_spec.rb +32 -0
  162. data/spec/swagger_v2/reference_entity_spec.rb +129 -0
  163. data/spec/swagger_v2/security_requirement_spec.rb +46 -0
  164. data/spec/swagger_v2/simple_mounted_api_spec.rb +332 -0
  165. data/spec/version_spec.rb +10 -0
  166. metadata +225 -0
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,126 @@
1
+ # Contributing to Grape-Swagger
2
+
3
+ This project is work of [many contributors](https://github.com/ruby-grape/grape-swagger/graphs/contributors).
4
+ You're encouraged to submit [pull requests](https://github.com/ruby-grape/grape-swagger/pulls),
5
+ [propose features and discuss issues](https://github.com/ruby-grape/grape-swagger/issues).
6
+ When in doubt, ask a question in the [Grape Google Group](http://groups.google.com/group/ruby-grape).
7
+
8
+ In the examples below, substitute your Github username for `contributor` in URLs.
9
+
10
+ ## Fork the Project
11
+
12
+ Fork the [project on Github](https://github.com/ruby-grape/grape-swagger) and check out your copy.
13
+
14
+ ```
15
+ git clone https://github.com/contributor/grape-swagger.git
16
+ cd grape-swagger
17
+ git remote add upstream https://github.com/ruby-grape/grape-swagger.git
18
+ ```
19
+
20
+ ## Create a Topic Branch
21
+
22
+ Make sure your fork is up-to-date and create a topic branch for your feature or bug fix.
23
+
24
+ ```
25
+ git checkout master
26
+ git pull upstream master
27
+ git checkout -b my-feature-branch
28
+ ```
29
+
30
+ ## Bundle Install and Test
31
+
32
+ Ensure that you can build the project and run tests.
33
+
34
+ ```
35
+ bundle install
36
+ bundle exec rake
37
+ ```
38
+
39
+ ## Write Tests
40
+
41
+ Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build.
42
+ Add to [spec](spec).
43
+
44
+ We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
45
+
46
+ ## Write Code
47
+
48
+ Implement your feature or bug fix.
49
+
50
+ Ruby style is enforced with [RuboCop](https://github.com/bbatsov/rubocop).
51
+ Run `bundle exec rubocop` and fix any style issues highlighted.
52
+
53
+ Make sure that `bundle exec rake` completes without errors.
54
+
55
+ ## Write Documentation
56
+
57
+ Document any external behavior in the [README](README.md).
58
+
59
+ ## Update Changelog
60
+
61
+ Add a line to [CHANGELOG](CHANGELOG.md) under *Next Release*.
62
+ Make it look like every other line, including your name and link to your Github account.
63
+
64
+ ## Commit Changes
65
+
66
+ Make sure git knows your name and email address:
67
+
68
+ ```
69
+ git config --global user.name "Your Name"
70
+ git config --global user.email "contributor@example.com"
71
+ ```
72
+
73
+ Writing good commit logs is important. A commit log should describe what changed and why.
74
+
75
+ ```
76
+ git add ...
77
+ git commit
78
+ ```
79
+
80
+ ## Push
81
+
82
+ ```
83
+ git push origin my-feature-branch
84
+ ```
85
+
86
+ ## Make a Pull Request
87
+
88
+ Go to https://github.com/contributor/grape-swagger and select your feature branch.
89
+ Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
90
+
91
+ ## Rebase
92
+
93
+ If you've been working on a change for a while, rebase with upstream/master.
94
+
95
+ ```
96
+ git fetch upstream
97
+ git rebase upstream/master
98
+ git push origin my-feature-branch -f
99
+ ```
100
+
101
+ ## Update CHANGELOG Again
102
+
103
+ Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
104
+
105
+ ```
106
+ * [#123](https://github.com/ruby-grape/grape-swagger/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
107
+ ```
108
+
109
+ Amend your previous commit and force push the changes.
110
+
111
+ ```
112
+ git commit --amend
113
+ git push origin my-feature-branch -f
114
+ ```
115
+
116
+ ## Check on Your Pull Request
117
+
118
+ Go back to your pull request after a few minutes and see whether it passed muster with GitHub Actions. Everything should look green, otherwise fix issues and amend your commit as described above.
119
+
120
+ ## Be Patient
121
+
122
+ It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang on there!
123
+
124
+ ## Thank You
125
+
126
+ Please do know that we really appreciate and value your time and work. We love you, really.
data/Dangerfile ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ danger.import_dangerfile(gem: 'ruby-grape-danger')
data/Gemfile ADDED
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'http://rubygems.org'
4
+
5
+ ruby RUBY_VERSION
6
+
7
+ gemspec
8
+
9
+ gem 'grape', case version = ENV.fetch('GRAPE_VERSION', '~> 1.6')
10
+ when 'HEAD'
11
+ { git: 'https://github.com/ruby-grape/grape' }
12
+ else
13
+ version
14
+ end
15
+
16
+ gem ENV.fetch('MODEL_PARSER', nil) if ENV.key?('MODEL_PARSER')
17
+
18
+ group :development, :test do
19
+ gem 'bundler'
20
+ gem 'grape-entity'
21
+ gem 'pry', platforms: [:mri]
22
+ gem 'pry-byebug', platforms: [:mri]
23
+
24
+ gem 'rack', '~> 2.2'
25
+ gem 'rack-cors'
26
+ gem 'rack-test'
27
+ gem 'rake'
28
+ gem 'rdoc'
29
+ gem 'rspec', '~> 3.9'
30
+ gem 'rubocop', '~> 1.0', require: false
31
+ gem 'webrick'
32
+ end
33
+
34
+ group :test do
35
+ gem 'coveralls_reborn', require: false
36
+
37
+ gem 'ruby-grape-danger', '~> 0.2.0', require: false
38
+ gem 'simplecov', require: false
39
+ end
40
+
41
+ group :test, :development do
42
+ unless ENV['MODEL_PARSER'] == 'grape-swagger-entity'
43
+ gem 'grape-swagger-entity', git: 'https://github.com/ruby-grape/grape-swagger-entity'
44
+ end
45
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,249 @@
1
+ GIT
2
+ remote: https://github.com/ruby-grape/grape-swagger-entity
3
+ revision: ca79820214eb48cb9ce240bb3365a51d6fcd09fe
4
+ specs:
5
+ grape-swagger-entity (0.5.1)
6
+ grape-entity (>= 0.6.0)
7
+ grape-swagger (>= 1.2.0)
8
+
9
+ PATH
10
+ remote: .
11
+ specs:
12
+ gitlab-grape-swagger (1.5.0)
13
+ grape (~> 1.3)
14
+
15
+ GEM
16
+ remote: http://rubygems.org/
17
+ specs:
18
+ activesupport (7.0.4)
19
+ concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ i18n (>= 1.6, < 2)
21
+ minitest (>= 5.1)
22
+ tzinfo (~> 2.0)
23
+ addressable (2.8.1)
24
+ public_suffix (>= 2.0.2, < 6.0)
25
+ ast (2.4.2)
26
+ builder (3.2.4)
27
+ byebug (11.1.3)
28
+ claide (1.1.0)
29
+ claide-plugins (0.9.2)
30
+ cork
31
+ nap
32
+ open4 (~> 1.3)
33
+ coderay (1.1.3)
34
+ colored2 (3.1.2)
35
+ concurrent-ruby (1.1.10)
36
+ cork (0.3.0)
37
+ colored2 (~> 3.1)
38
+ coveralls_reborn (0.25.0)
39
+ simplecov (>= 0.18.1, < 0.22.0)
40
+ term-ansicolor (~> 1.6)
41
+ thor (>= 0.20.3, < 2.0)
42
+ tins (~> 1.16)
43
+ danger (8.0.6)
44
+ claide (~> 1.0)
45
+ claide-plugins (>= 0.9.2)
46
+ colored2 (~> 3.1)
47
+ cork (~> 0.1)
48
+ faraday (>= 0.9.0, < 2.0)
49
+ faraday-http-cache (~> 2.0)
50
+ git (~> 1.7)
51
+ kramdown (~> 2.3)
52
+ kramdown-parser-gfm (~> 1.0)
53
+ no_proxy_fix
54
+ octokit (~> 4.7)
55
+ terminal-table (~> 1)
56
+ danger-changelog (0.6.1)
57
+ danger-plugin-api (~> 1.0)
58
+ danger-plugin-api (1.0.0)
59
+ danger (> 2.0)
60
+ danger-toc (0.2.0)
61
+ activesupport
62
+ danger-plugin-api (~> 1.0)
63
+ kramdown
64
+ diff-lcs (1.5.0)
65
+ docile (1.4.0)
66
+ dry-core (1.0.0)
67
+ concurrent-ruby (~> 1.0)
68
+ zeitwerk (~> 2.6)
69
+ dry-inflector (1.0.0)
70
+ dry-logic (1.4.0)
71
+ concurrent-ruby (~> 1.0)
72
+ dry-core (~> 1.0, < 2)
73
+ zeitwerk (~> 2.6)
74
+ dry-types (1.7.0)
75
+ concurrent-ruby (~> 1.0)
76
+ dry-core (~> 1.0, < 2)
77
+ dry-inflector (~> 1.0, < 2)
78
+ dry-logic (>= 1.4, < 2)
79
+ zeitwerk (~> 2.6)
80
+ faraday (1.10.2)
81
+ faraday-em_http (~> 1.0)
82
+ faraday-em_synchrony (~> 1.0)
83
+ faraday-excon (~> 1.1)
84
+ faraday-httpclient (~> 1.0)
85
+ faraday-multipart (~> 1.0)
86
+ faraday-net_http (~> 1.0)
87
+ faraday-net_http_persistent (~> 1.0)
88
+ faraday-patron (~> 1.0)
89
+ faraday-rack (~> 1.0)
90
+ faraday-retry (~> 1.0)
91
+ ruby2_keywords (>= 0.0.4)
92
+ faraday-em_http (1.0.0)
93
+ faraday-em_synchrony (1.0.0)
94
+ faraday-excon (1.1.0)
95
+ faraday-http-cache (2.4.1)
96
+ faraday (>= 0.8)
97
+ faraday-httpclient (1.0.1)
98
+ faraday-multipart (1.0.4)
99
+ multipart-post (~> 2)
100
+ faraday-net_http (1.0.1)
101
+ faraday-net_http_persistent (1.2.0)
102
+ faraday-patron (1.0.0)
103
+ faraday-rack (1.0.0)
104
+ faraday-retry (1.0.3)
105
+ git (1.12.0)
106
+ addressable (~> 2.8)
107
+ rchardet (~> 1.8)
108
+ grape (1.6.2)
109
+ activesupport
110
+ builder
111
+ dry-types (>= 1.1)
112
+ mustermann-grape (~> 1.0.0)
113
+ rack (>= 1.3.0)
114
+ rack-accept
115
+ grape-entity (0.10.2)
116
+ activesupport (>= 3.0.0)
117
+ multi_json (>= 1.3.2)
118
+ grape-swagger (1.5.0)
119
+ grape (~> 1.3)
120
+ i18n (1.12.0)
121
+ concurrent-ruby (~> 1.0)
122
+ json (2.6.2)
123
+ kramdown (2.4.0)
124
+ rexml
125
+ kramdown-parser-gfm (1.1.0)
126
+ kramdown (~> 2.0)
127
+ method_source (1.0.0)
128
+ minitest (5.16.3)
129
+ multi_json (1.15.0)
130
+ multipart-post (2.2.3)
131
+ mustermann (3.0.0)
132
+ ruby2_keywords (~> 0.0.1)
133
+ mustermann-grape (1.0.2)
134
+ mustermann (>= 1.0.0)
135
+ nap (1.1.0)
136
+ no_proxy_fix (0.1.2)
137
+ octokit (4.25.1)
138
+ faraday (>= 1, < 3)
139
+ sawyer (~> 0.9)
140
+ open4 (1.3.4)
141
+ parallel (1.22.1)
142
+ parser (3.1.2.1)
143
+ ast (~> 2.4.1)
144
+ pry (0.14.1)
145
+ coderay (~> 1.1)
146
+ method_source (~> 1.0)
147
+ pry-byebug (3.10.1)
148
+ byebug (~> 11.0)
149
+ pry (>= 0.13, < 0.15)
150
+ psych (4.0.6)
151
+ stringio
152
+ public_suffix (5.0.0)
153
+ rack (2.2.4)
154
+ rack-accept (0.4.5)
155
+ rack (>= 0.4)
156
+ rack-cors (1.1.1)
157
+ rack (>= 2.0.0)
158
+ rack-test (2.0.2)
159
+ rack (>= 1.3)
160
+ rainbow (3.1.1)
161
+ rake (13.0.6)
162
+ rchardet (1.8.0)
163
+ rdoc (6.4.0)
164
+ psych (>= 4.0.0)
165
+ regexp_parser (2.6.1)
166
+ rexml (3.2.5)
167
+ rspec (3.12.0)
168
+ rspec-core (~> 3.12.0)
169
+ rspec-expectations (~> 3.12.0)
170
+ rspec-mocks (~> 3.12.0)
171
+ rspec-core (3.12.0)
172
+ rspec-support (~> 3.12.0)
173
+ rspec-expectations (3.12.0)
174
+ diff-lcs (>= 1.2.0, < 2.0)
175
+ rspec-support (~> 3.12.0)
176
+ rspec-mocks (3.12.0)
177
+ diff-lcs (>= 1.2.0, < 2.0)
178
+ rspec-support (~> 3.12.0)
179
+ rspec-support (3.12.0)
180
+ rubocop (1.39.0)
181
+ json (~> 2.3)
182
+ parallel (~> 1.10)
183
+ parser (>= 3.1.2.1)
184
+ rainbow (>= 2.2.2, < 4.0)
185
+ regexp_parser (>= 1.8, < 3.0)
186
+ rexml (>= 3.2.5, < 4.0)
187
+ rubocop-ast (>= 1.23.0, < 2.0)
188
+ ruby-progressbar (~> 1.7)
189
+ unicode-display_width (>= 1.4.0, < 3.0)
190
+ rubocop-ast (1.23.0)
191
+ parser (>= 3.1.1.0)
192
+ ruby-grape-danger (0.2.0)
193
+ danger (~> 8.0.0)
194
+ danger-changelog (~> 0.6.1)
195
+ danger-toc (~> 0.2.0)
196
+ ruby-progressbar (1.11.0)
197
+ ruby2_keywords (0.0.5)
198
+ sawyer (0.9.2)
199
+ addressable (>= 2.3.5)
200
+ faraday (>= 0.17.3, < 3)
201
+ simplecov (0.21.2)
202
+ docile (~> 1.1)
203
+ simplecov-html (~> 0.11)
204
+ simplecov_json_formatter (~> 0.1)
205
+ simplecov-html (0.12.3)
206
+ simplecov_json_formatter (0.1.4)
207
+ stringio (3.0.2)
208
+ sync (0.5.0)
209
+ term-ansicolor (1.7.1)
210
+ tins (~> 1.0)
211
+ terminal-table (1.6.0)
212
+ thor (1.2.1)
213
+ tins (1.32.0)
214
+ sync
215
+ tzinfo (2.0.5)
216
+ concurrent-ruby (~> 1.0)
217
+ unicode-display_width (2.3.0)
218
+ webrick (1.7.0)
219
+ zeitwerk (2.6.6)
220
+
221
+ PLATFORMS
222
+ x86_64-darwin-20
223
+ x86_64-linux
224
+
225
+ DEPENDENCIES
226
+ bundler
227
+ coveralls_reborn
228
+ gitlab-grape-swagger!
229
+ grape (~> 1.6)
230
+ grape-entity
231
+ grape-swagger-entity!
232
+ pry
233
+ pry-byebug
234
+ rack (~> 2.2)
235
+ rack-cors
236
+ rack-test
237
+ rake
238
+ rdoc
239
+ rspec (~> 3.9)
240
+ rubocop (~> 1.0)
241
+ ruby-grape-danger (~> 0.2.0)
242
+ simplecov
243
+ webrick
244
+
245
+ RUBY VERSION
246
+ ruby 2.7.4p191
247
+
248
+ BUNDLED WITH
249
+ 2.2.30
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012-2016 Tim Vandecasteele, ruby-grape and Contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.