r2-oas 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/.github/ISSUE_TEMPLATE.md +12 -0
  3. data/.github/PULL_REQUEST_TEMPLATE.md +12 -0
  4. data/.gitignore +12 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +7 -0
  7. data/.rubocop_todo.yml +224 -0
  8. data/.travis.yml +22 -0
  9. data/CHANGELOG.md +3 -0
  10. data/CODE_OF_CONDUCT.md +74 -0
  11. data/Gemfile +12 -0
  12. data/Gemfile.lock +207 -0
  13. data/LICENSE.txt +21 -0
  14. data/README.ja.md +585 -0
  15. data/README.md +582 -0
  16. data/Rakefile +8 -0
  17. data/bin/console +12 -0
  18. data/bin/setup +8 -0
  19. data/docs/HOW_TO_ANALYZE_DOCS.md +875 -0
  20. data/docs/HOW_TO_CLEAN_DOCS.md +19 -0
  21. data/docs/HOW_TO_DEPLOY_SWAGGER_DOC.md +839 -0
  22. data/docs/HOW_TO_DISPLAY_PATHS_LIST.md +28 -0
  23. data/docs/HOW_TO_DISPLAY_PATHS_STATS.md +53 -0
  24. data/docs/HOW_TO_GENERATE_DOCS.md +256 -0
  25. data/docs/HOW_TO_MONITOR_SWAGGER_DOC.md +219 -0
  26. data/docs/HOW_TO_START_SWAGGER_EDITOR.md +218 -0
  27. data/docs/HOW_TO_START_SWAGGER_UI.md +262 -0
  28. data/docs/HOW_TO_USE_HOOK_WHEN_GENERATE_DOC.md +244 -0
  29. data/docs/HOW_TO_USE_SCHEMA_NAMESPACE.md +176 -0
  30. data/docs/HOW_TO_USE_TAG_NAMESPACE.md +176 -0
  31. data/docs/versions/v3.md +155 -0
  32. data/lib/r2-oas.rb +36 -0
  33. data/lib/r2-oas/app_configuration.rb +102 -0
  34. data/lib/r2-oas/app_configuration/server.rb +35 -0
  35. data/lib/r2-oas/app_configuration/swagger.rb +35 -0
  36. data/lib/r2-oas/app_configuration/swagger/editor.rb +47 -0
  37. data/lib/r2-oas/app_configuration/swagger/ui.rb +45 -0
  38. data/lib/r2-oas/app_configuration/tool.rb +31 -0
  39. data/lib/r2-oas/app_configuration/tool/paths/stats.rb +43 -0
  40. data/lib/r2-oas/base.rb +48 -0
  41. data/lib/r2-oas/configuration.rb +69 -0
  42. data/lib/r2-oas/configuration/paths_config.rb +44 -0
  43. data/lib/r2-oas/deploy/client.rb +43 -0
  44. data/lib/r2-oas/deploy/swagger-ui/dist/favicon-16x16.png +0 -0
  45. data/lib/r2-oas/deploy/swagger-ui/dist/favicon-32x32.png +0 -0
  46. data/lib/r2-oas/deploy/swagger-ui/dist/oauth2-redirect.html +68 -0
  47. data/lib/r2-oas/deploy/swagger-ui/dist/swagger-ui-bundle.js +134 -0
  48. data/lib/r2-oas/deploy/swagger-ui/dist/swagger-ui-bundle.js.map +1 -0
  49. data/lib/r2-oas/deploy/swagger-ui/dist/swagger-ui-standalone-preset.js +22 -0
  50. data/lib/r2-oas/deploy/swagger-ui/dist/swagger-ui-standalone-preset.js.map +1 -0
  51. data/lib/r2-oas/deploy/swagger-ui/dist/swagger-ui.css +4 -0
  52. data/lib/r2-oas/deploy/swagger-ui/dist/swagger-ui.css.map +1 -0
  53. data/lib/r2-oas/deploy/swagger-ui/dist/swagger-ui.js +9 -0
  54. data/lib/r2-oas/deploy/swagger-ui/dist/swagger-ui.js.map +1 -0
  55. data/lib/r2-oas/deploy/swagger-ui/index.html.erb +60 -0
  56. data/lib/r2-oas/errors.rb +7 -0
  57. data/lib/r2-oas/hooks/global_hook.rb +20 -0
  58. data/lib/r2-oas/hooks/hook.rb +77 -0
  59. data/lib/r2-oas/hooks/repository.rb +15 -0
  60. data/lib/r2-oas/logger/stdout_logger.rb +129 -0
  61. data/lib/r2-oas/pluggable_configuration.rb +33 -0
  62. data/lib/r2-oas/plugins/schema/v3/object/hookable_base_object.rb +100 -0
  63. data/lib/r2-oas/routing/adjustor.rb +44 -0
  64. data/lib/r2-oas/routing/base.rb +12 -0
  65. data/lib/r2-oas/routing/components/all.rb +5 -0
  66. data/lib/r2-oas/routing/components/base_component.rb +10 -0
  67. data/lib/r2-oas/routing/components/path_component.rb +67 -0
  68. data/lib/r2-oas/routing/components/request_component.rb +75 -0
  69. data/lib/r2-oas/routing/components/verb_component.rb +21 -0
  70. data/lib/r2-oas/routing/parser.rb +93 -0
  71. data/lib/r2-oas/schema/analyzer.rb +23 -0
  72. data/lib/r2-oas/schema/base.rb +11 -0
  73. data/lib/r2-oas/schema/cleaner.rb +23 -0
  74. data/lib/r2-oas/schema/editor.rb +120 -0
  75. data/lib/r2-oas/schema/generator.rb +23 -0
  76. data/lib/r2-oas/schema/manager/file/path_item_file_manager.rb +24 -0
  77. data/lib/r2-oas/schema/monitor.rb +52 -0
  78. data/lib/r2-oas/schema/squeezer.rb +23 -0
  79. data/lib/r2-oas/schema/ui.rb +74 -0
  80. data/lib/r2-oas/schema/v3/analyzer.rb +58 -0
  81. data/lib/r2-oas/schema/v3/analyzer/base_analyzer.rb +76 -0
  82. data/lib/r2-oas/schema/v3/analyzer/components/object_analyzer.rb +38 -0
  83. data/lib/r2-oas/schema/v3/analyzer/components_analyzer.rb +30 -0
  84. data/lib/r2-oas/schema/v3/analyzer/path_analyzer.rb +116 -0
  85. data/lib/r2-oas/schema/v3/analyzer/tag_analyzer.rb +38 -0
  86. data/lib/r2-oas/schema/v3/base.rb +28 -0
  87. data/lib/r2-oas/schema/v3/cleaner.rb +19 -0
  88. data/lib/r2-oas/schema/v3/cleaner/base_cleaner.rb +30 -0
  89. data/lib/r2-oas/schema/v3/cleaner/components_cleaner.rb +42 -0
  90. data/lib/r2-oas/schema/v3/generator.rb +28 -0
  91. data/lib/r2-oas/schema/v3/generator/base_generator.rb +88 -0
  92. data/lib/r2-oas/schema/v3/generator/components/object_generator.rb +83 -0
  93. data/lib/r2-oas/schema/v3/generator/components/request_body_generator.rb +45 -0
  94. data/lib/r2-oas/schema/v3/generator/components_generator.rb +38 -0
  95. data/lib/r2-oas/schema/v3/generator/doc_generator.rb +49 -0
  96. data/lib/r2-oas/schema/v3/generator/path_generator.rb +90 -0
  97. data/lib/r2-oas/schema/v3/generator/schema_generator.rb +78 -0
  98. data/lib/r2-oas/schema/v3/manager/diff/base_array_diff_manager.rb +60 -0
  99. data/lib/r2-oas/schema/v3/manager/diff/base_diff_manager.rb +29 -0
  100. data/lib/r2-oas/schema/v3/manager/diff/base_hash_diff_manager.rb +95 -0
  101. data/lib/r2-oas/schema/v3/manager/diff/components_diff_manager.rb +19 -0
  102. data/lib/r2-oas/schema/v3/manager/diff/tag_diff_manager.rb +17 -0
  103. data/lib/r2-oas/schema/v3/manager/file/base_file_manager.rb +60 -0
  104. data/lib/r2-oas/schema/v3/manager/file/components_file_manager.rb +22 -0
  105. data/lib/r2-oas/schema/v3/manager/file/include_ref_base_file_manager.rb +88 -0
  106. data/lib/r2-oas/schema/v3/manager/file/path_item_file_manager.rb +22 -0
  107. data/lib/r2-oas/schema/v3/manager/file_manager.rb +12 -0
  108. data/lib/r2-oas/schema/v3/manager/pathname_manager.rb +73 -0
  109. data/lib/r2-oas/schema/v3/object/base_object.rb +65 -0
  110. data/lib/r2-oas/schema/v3/object/components/request_body_object.rb +92 -0
  111. data/lib/r2-oas/schema/v3/object/components/schema_object.rb +55 -0
  112. data/lib/r2-oas/schema/v3/object/components_object.rb +81 -0
  113. data/lib/r2-oas/schema/v3/object/external_document_object.rb +19 -0
  114. data/lib/r2-oas/schema/v3/object/info_object.rb +34 -0
  115. data/lib/r2-oas/schema/v3/object/openapi_object.rb +58 -0
  116. data/lib/r2-oas/schema/v3/object/path_item_object.rb +167 -0
  117. data/lib/r2-oas/schema/v3/object/paths_object.rb +74 -0
  118. data/lib/r2-oas/schema/v3/object/public.rb +9 -0
  119. data/lib/r2-oas/schema/v3/object/server_object.rb +21 -0
  120. data/lib/r2-oas/schema/v3/object/tag_object.rb +36 -0
  121. data/lib/r2-oas/schema/v3/squeezer.rb +29 -0
  122. data/lib/r2-oas/schema/v3/squeezer/base_squeezer.rb +37 -0
  123. data/lib/r2-oas/schema/v3/squeezer/path_squeezer.rb +28 -0
  124. data/lib/r2-oas/schema/v3/squeezer/tag_squeezer.rb +19 -0
  125. data/lib/r2-oas/shared/all.rb +3 -0
  126. data/lib/r2-oas/shared/sortable.rb +23 -0
  127. data/lib/r2-oas/task.rb +11 -0
  128. data/lib/r2-oas/task_logging.rb +39 -0
  129. data/lib/r2-oas/tasks/common.rake +26 -0
  130. data/lib/r2-oas/tasks/main.rake +117 -0
  131. data/lib/r2-oas/tasks/tool.rake +79 -0
  132. data/lib/r2-oas/tool/paths/ls.rb +15 -0
  133. data/lib/r2-oas/tool/paths/stats.rb +84 -0
  134. data/lib/r2-oas/version.rb +5 -0
  135. data/r2-oas.gemspec +56 -0
  136. metadata +373 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 464bbc729526628547f9d689984b3925eeab1c6b7d2e58ee7a9712f222643f60
4
+ data.tar.gz: 808faa249dc984ccf43928188cc139bce945fe7b7e3a296ee336f755cb063315
5
+ SHA512:
6
+ metadata.gz: 82f601ac4610d3744422b11f58b9eab7dca668bde7e3da02ef013816d2b2edab6294404d1820579465e0f3a545904f48bb53777f9099d6f462cfd4717b69ab13
7
+ data.tar.gz: e12135a40bf94764064b0dc6b42dbe1880e7fd8e536c140fda3241d79fa82671d4f7aef899df287516b3ce2ba0fc7ad2d035196d6ebfc7e3f2a25efad2033930
@@ -0,0 +1,12 @@
1
+ ### Steps to reproduce
2
+
3
+ ### Expected behavior
4
+ Tell us what should happen
5
+
6
+ ### Actual behavior
7
+ Tell us what happens instead
8
+
9
+ ### System configuration
10
+ **r2-oas version**:
11
+
12
+ **Ruby version**:
@@ -0,0 +1,12 @@
1
+ ### Summary
2
+
3
+ ### Other Information
4
+
5
+ If there's anything else that's important and relevant to your pull
6
+ request, mention that information here. This could include
7
+ benchmarks, or other information.
8
+
9
+ If you are updating any of the CHANGELOG files or are asked to update the
10
+ CHANGELOG files by reviewers, please add the CHANGELOG entry at the top of the file.
11
+
12
+ Thanks for contributing to r2-oas!
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ /example*
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.3
5
+ Exclude:
6
+ - 'example*/**/*'
7
+ - 'vendor/**/*'
@@ -0,0 +1,224 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-06-29 18:42:52 +0900 using RuboCop version 0.72.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 6135
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
12
+ # URISchemes: http, https
13
+ Metrics/LineLength:
14
+ Max: 2088
15
+
16
+ Metrics/AbcSize:
17
+ # The ABC size is a calculated magnitude, so this number can be a Fixnum or
18
+ # a Float.
19
+ Max: 20
20
+ Exclude:
21
+ - "lib/r2-oas/schema/v3/generator/schema_generator.rb"
22
+ - "lib/r2-oas/schema/v3/analyzer.rb"
23
+ - "lib/r2-oas/schema/v3/generator/components/request_body_generator.rb"
24
+ - "lib/r2-oas/schema/v3/manager/pathname_manager.rb"
25
+ - "lib/r2-oas/schema/v3/manager/diff/base_hash_diff_manager.rb"
26
+ - "lib/r2-oas/routing/components/request_component.rb"
27
+ - "spec/r2-oas/schema/v3/object/components/schema_object_spec.rb"
28
+ - "spec/support/helpers/config_helper.rb"
29
+
30
+ Style/Documentation:
31
+ Enabled: false
32
+
33
+ Style/GuardClause:
34
+ Enabled: false
35
+
36
+ Metrics/BlockLength:
37
+ Exclude:
38
+ - "r2-oas.gemspec"
39
+ - "lib/r2-oas/tasks/main.rake"
40
+ - "lib/r2-oas/tasks/tool.rake"
41
+ - "spec/r2-oas/routing/adjustor_spec.rb"
42
+ - "spec/r2-oas/routing/components/request_component_spec.rb"
43
+ - "spec/r2-oas/schema/v3/object/paths_object_spec.rb"
44
+ - "spec/r2-oas/schema/v3/object/external_document_object_spec.rb"
45
+ - "spec/r2-oas/schema/v3/manager/pathname_manager_spec.rb"
46
+ - "spec/r2-oas/schema/v3/manager/diff/base_hash_diff_manager_spec.rb"
47
+ - "spec/r2-oas/schema/v3/manager/file/base_file_manager_spec.rb"
48
+ - "spec/r2-oas/routing/parser_spec.rb"
49
+ - "spec/r2-oas/routing/components/path_component_spec.rb"
50
+ - "spec/r2-oas/schema/v3/object/components/request_body_object_spec.rb"
51
+ - "spec/r2-oas/schema/v3/object/components/schema_object_spec.rb"
52
+ - "spec/r2-oas/schema/v3/object/path_item_object_spec.rb"
53
+ - "spec/r2-oas/configuration/paths_config_spec.rb"
54
+ - "spec/r2-oas/tasks/main_spec.rb"
55
+ - "spec/r2-oas/tasks/tool_spec.rb"
56
+ - "spec/r2-oas/configuration_spec.rb"
57
+ - "spec/r2-oas/schema/v3/generator_spec.rb"
58
+ - "spec/r2-oas/schema/v3/analyzer_spec.rb"
59
+ - "spec/support/helpers/config_helper.rb"
60
+ - "spec/r2-oas/schema/v3/object/components_object_spec.rb"
61
+ - "spec/r2-oas/schema/v3/object/base_object_spec.rb"
62
+ - "spec/r2-oas/schema/v3/manager/diff/base_array_diff_manager_spec.rb"
63
+ - "spec/r2-oas/schema/v3/manager/file/include_ref_base_file_manager_spec.rb"
64
+ - "spec/r2-oas/schema/v3/generator/base_generator_spec.rb"
65
+ - "spec/r2-oas/schema/v3/object/openapi_object_spec.rb"
66
+ - "spec/r2-oas/schema/v3/object/info_object_spec.rb"
67
+
68
+ Lint/AmbiguousOperator:
69
+ Exclude:
70
+ - "lib/r2-oas/app_configuration/swagger.rb"
71
+ - "lib/r2-oas/app_configuration/tool/paths/stats.rb"
72
+ - "lib/r2-oas/app_configuration/swagger/ui.rb"
73
+ - "lib/r2-oas/app_configuration/swagger/editor.rb"
74
+ - "lib/r2-oas/app_configuration/tool.rb"
75
+ - "lib/r2-oas/configuration.rb"
76
+ - "lib/r2-oas/app_configuration/server.rb"
77
+ - "lib/r2-oas/schema/v3/object/base_object.rb"
78
+ - "lib/r2-oas/base.rb"
79
+ - "lib/r2-oas/routing/parser.rb"
80
+ - "lib/r2-oas/app_configuration.rb"
81
+ - "lib/r2-oas/pluggable_configuration.rb"
82
+
83
+ Metrics/MethodLength:
84
+ Exclude:
85
+ - "lib/r2-oas/logger/stdout_logger.rb"
86
+ - "lib/r2-oas/routing/adjustor.rb"
87
+ - "lib/r2-oas/routing/parser.rb"
88
+ - "lib/r2-oas/hooks/hook.rb"
89
+ - "lib/r2-oas/task_logging.rb"
90
+ - "lib/r2-oas/schema/ui.rb"
91
+ - "lib/r2-oas/schema/editor.rb"
92
+ - "lib/r2-oas/shared/sortable.rb"
93
+ - "lib/r2-oas/app_configuration.rb"
94
+ - "lib/r2-oas/schema/v3/analyzer/path_analyzer.rb"
95
+ - "lib/r2-oas/schema/v3/analyzer/base_analyzer.rb"
96
+ - "lib/r2-oas/schema/v3/analyzer/components/request_bodies_analyzer.rb"
97
+ - "lib/r2-oas/schema/v3/analyzer/components/schemas_analyzer.rb"
98
+ - "lib/r2-oas/schema/v3/analyzer/tag_analyzer.rb"
99
+ - "lib/r2-oas/schema/v3/analyzer.rb"
100
+ - "lib/r2-oas/schema/v3/object/paths_object.rb"
101
+ - "lib/r2-oas/schema/v3/object/components_object.rb"
102
+ - "lib/r2-oas/schema/v3/object/path_item_object.rb"
103
+ - "lib/r2-oas/schema/v3/object/info_object.rb"
104
+ - "lib/r2-oas/schema/v3/manager/diff/base_array_diff_manager.rb"
105
+ - "lib/r2-oas/schema/v3/manager/diff/base_hash_diff_manager.rb"
106
+ - "lib/r2-oas/schema/v3/manager/file/components/request_body_file_manager.rb"
107
+ - "lib/r2-oas/schema/v3/manager/file/path_item_file_manager.rb"
108
+ - "lib/r2-oas/schema/v3/manager/file/include_ref_base_file_manager.rb"
109
+ - "lib/r2-oas/schema/v3/manager/pathname_manager.rb"
110
+ - "lib/r2-oas/schema/v3/generator/path_generator.rb"
111
+ - "lib/r2-oas/schema/v3/generator/components/request_body_generator.rb"
112
+ - "lib/r2-oas/schema/v3/generator/schema_generator.rb"
113
+ - "lib/r2-oas/schema/v3/generator/components/schema_generator.rb"
114
+ - "lib/r2-oas/schema/v3/generator/doc_generator.rb"
115
+ - "lib/r2-oas/schema/v3/object/components/request_body_object.rb"
116
+ - "lib/r2-oas/schema/v3/squeezer/path_squeezer.rb"
117
+ - "lib/r2-oas/schema/v3/generator/components/object_generator.rb"
118
+ - "lib/r2-oas/routing/components/request_component.rb"
119
+ - "spec/support/helpers/config_helper.rb"
120
+ - "lib/r2-oas/schema/v3/analyzer/components/object_analyzer.rb"
121
+
122
+ Metrics/CyclomaticComplexity:
123
+ Exclude:
124
+ - "lib/r2-oas/logger/stdout_logger.rb"
125
+ - "lib/r2-oas/schema/v3/manager/pathname_manager.rb"
126
+
127
+ Naming/ConstantName:
128
+ Exclude:
129
+ - "lib/r2-oas/logger/stdout_logger.rb"
130
+
131
+ Naming/PredicateName:
132
+ Exclude:
133
+ - "lib/r2-oas/hooks/hook.rb"
134
+ - "lib/r2-oas/plugins/schema/v3/object/hookable_base_object.rb"
135
+
136
+ Style/DoubleNegation:
137
+ Exclude:
138
+ - "lib/r2-oas/hooks/hook.rb"
139
+
140
+ Style/MultilineBlockChain:
141
+ Exclude:
142
+ - "lib/r2-oas/routing/parser.rb"
143
+
144
+ Naming/MemoizedInstanceVariableName:
145
+ Exclude:
146
+ - "lib/r2-oas/configuration.rb"
147
+
148
+ Naming/AccessorMethodName:
149
+ Exclude:
150
+ - "lib/r2-oas/configuration.rb"
151
+ - "lib/r2-oas/app_configuration.rb"
152
+ - "lib/r2-oas/pluggable_configuration.rb"
153
+
154
+ Style/AsciiComments:
155
+ Exclude:
156
+ - "lib/r2-oas/logger/stdout_logger.rb"
157
+ - "lib/r2-oas/schema/v3/analyzer/path_analyzer.rb"
158
+
159
+ Lint/UnderscorePrefixedVariableName:
160
+ Exclude:
161
+ - "lib/r2-oas/logger/stdout_logger.rb"
162
+ - "lib/r2-oas/schema/v3/object/components/request_body_object.rb"
163
+
164
+ Lint/UselessAccessModifier:
165
+ Exclude:
166
+ - "lib/r2-oas/pluggable_configuration.rb"
167
+
168
+ Style/IdenticalConditionalBranches:
169
+ Exclude:
170
+ - "lib/r2-oas/schema/editor.rb"
171
+
172
+ Style/ClassVars:
173
+ Exclude:
174
+ - "lib/r2-oas/plugins/schema/v3/object/hookable_base_object.rb"
175
+
176
+ Style/AccessModifierDeclarations:
177
+ Exclude:
178
+ - "lib/r2-oas/app_configuration.rb"
179
+
180
+ Style/NumericPredicate:
181
+ Exclude:
182
+ - "lib/r2-oas/schema/v3/generator/base_generator.rb"
183
+
184
+ Metrics/ClassLength:
185
+ Exclude:
186
+ - "lib/r2-oas/schema/v3/object/path_item_object.rb"
187
+
188
+ Metrics/ParameterLists:
189
+ Exclude:
190
+ - "lib/r2-oas/schema/v3/object/path_item_object.rb"
191
+ - "lib/r2-oas/schema/v3/object/components/schema_object.rb"
192
+ - "spec/r2-oas/schema/v3/object/components/schema_object_spec.rb"
193
+
194
+ Layout/EndAlignment:
195
+ Exclude:
196
+ - "lib/r2-oas/shared/sortable.rb"
197
+ - "lib/r2-oas/schema/v3/generator/doc_generator.rb"
198
+
199
+ Security/YAMLLoad:
200
+ Exclude:
201
+ - "lib/r2-oas/schema/editor.rb"
202
+
203
+ Naming/FileName:
204
+ Exclude:
205
+ - "spec/r2-oas_spec.rb"
206
+ - "lib/r2-oas.rb"
207
+
208
+ Naming/MethodName:
209
+ Exclude:
210
+ - "spec/support/helpers/create_helper.rb"
211
+ - "spec/support/helpers/path_helper.rb"
212
+
213
+ Naming/HeredocDelimiterNaming:
214
+ Exclude:
215
+ - "spec/r2-oas/configuration/paths_config_spec.rb"
216
+ - "r2-oas.gemspec"
217
+
218
+ Style/ClassAndModuleChildren:
219
+ Exclude:
220
+ - "spec/dummy_app/controllers/api/v1/tasks_controller.rb"
221
+
222
+ Lint/RequireParentheses:
223
+ Exclude:
224
+ - "spec/r2-oas/schema/v3/object/components/schema_object_spec.rb"
@@ -0,0 +1,22 @@
1
+ ---
2
+ sudo: false
3
+
4
+ language: ruby
5
+
6
+ cache: bundler
7
+
8
+ rvm:
9
+ - 2.3.3
10
+
11
+ before_install: gem install bundler -v 1.17.3
12
+
13
+ gemfile:
14
+ - Gemfile
15
+ bundler_args: "--without development --deployment"
16
+
17
+ install:
18
+ - bundle install
19
+
20
+ script:
21
+ - bundle exec rubocop --fail-level=W
22
+ - bundle exec rspec spec --exclude-pattern "spec/r2-oas/tasks/tool_spec.rb,spec/r2-oas/tool/paths/stats_spec.rb"
@@ -0,0 +1,3 @@
1
+ ## v0.1.0
2
+
3
+ - first release [2019-10-22 / The day of the throne (called 即位礼正殿の儀の行われる日 in Japanease)]
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at te108186@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in r2-oas.gemspec
8
+ gemspec
9
+
10
+ group :test do
11
+ gem 'sqlite3'
12
+ end
@@ -0,0 +1,207 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ r2-oas (0.1.0)
5
+ docker-api (~> 1.34.2)
6
+ easy_diff (~> 1.0.0)
7
+ eventmachine (~> 1.2.0)
8
+ paint
9
+ rails (>= 4.2.5)
10
+ terminal-table (~> 1.6.0)
11
+ watir (~> 6.0)
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ actioncable (5.2.3)
17
+ actionpack (= 5.2.3)
18
+ nio4r (~> 2.0)
19
+ websocket-driver (>= 0.6.1)
20
+ actionmailer (5.2.3)
21
+ actionpack (= 5.2.3)
22
+ actionview (= 5.2.3)
23
+ activejob (= 5.2.3)
24
+ mail (~> 2.5, >= 2.5.4)
25
+ rails-dom-testing (~> 2.0)
26
+ actionpack (5.2.3)
27
+ actionview (= 5.2.3)
28
+ activesupport (= 5.2.3)
29
+ rack (~> 2.0)
30
+ rack-test (>= 0.6.3)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
33
+ actionview (5.2.3)
34
+ activesupport (= 5.2.3)
35
+ builder (~> 3.1)
36
+ erubi (~> 1.4)
37
+ rails-dom-testing (~> 2.0)
38
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
39
+ activejob (5.2.3)
40
+ activesupport (= 5.2.3)
41
+ globalid (>= 0.3.6)
42
+ activemodel (5.2.3)
43
+ activesupport (= 5.2.3)
44
+ activerecord (5.2.3)
45
+ activemodel (= 5.2.3)
46
+ activesupport (= 5.2.3)
47
+ arel (>= 9.0)
48
+ activestorage (5.2.3)
49
+ actionpack (= 5.2.3)
50
+ activerecord (= 5.2.3)
51
+ marcel (~> 0.3.1)
52
+ activesupport (5.2.3)
53
+ concurrent-ruby (~> 1.0, >= 1.0.2)
54
+ i18n (>= 0.7, < 2)
55
+ minitest (~> 5.1)
56
+ tzinfo (~> 1.1)
57
+ arel (9.0.0)
58
+ ast (2.4.0)
59
+ builder (3.2.3)
60
+ childprocess (2.0.0)
61
+ rake (< 13.0)
62
+ coderay (1.1.2)
63
+ concurrent-ruby (1.1.5)
64
+ coveralls (0.8.23)
65
+ json (>= 1.8, < 3)
66
+ simplecov (~> 0.16.1)
67
+ term-ansicolor (~> 1.3)
68
+ thor (>= 0.19.4, < 2.0)
69
+ tins (~> 1.6)
70
+ crass (1.0.4)
71
+ diff-lcs (1.3)
72
+ docile (1.3.2)
73
+ docker-api (1.34.2)
74
+ excon (>= 0.47.0)
75
+ multi_json
76
+ easy_diff (1.0.0)
77
+ erubi (1.8.0)
78
+ eventmachine (1.2.7)
79
+ excon (0.67.0)
80
+ globalid (0.4.2)
81
+ activesupport (>= 4.2.0)
82
+ i18n (1.6.0)
83
+ concurrent-ruby (~> 1.0)
84
+ jaro_winkler (1.5.3)
85
+ json (2.2.0)
86
+ loofah (2.2.3)
87
+ crass (~> 1.0.2)
88
+ nokogiri (>= 1.5.9)
89
+ mail (2.7.1)
90
+ mini_mime (>= 0.1.1)
91
+ marcel (0.3.3)
92
+ mimemagic (~> 0.3.2)
93
+ method_source (0.9.2)
94
+ mimemagic (0.3.3)
95
+ mini_mime (1.0.2)
96
+ mini_portile2 (2.4.0)
97
+ minitest (5.12.0)
98
+ multi_json (1.13.1)
99
+ nio4r (2.5.2)
100
+ nokogiri (1.10.4)
101
+ mini_portile2 (~> 2.4.0)
102
+ paint (2.1.1)
103
+ parallel (1.17.0)
104
+ parser (2.6.3.0)
105
+ ast (~> 2.4.0)
106
+ pry (0.12.2)
107
+ coderay (~> 1.1.0)
108
+ method_source (~> 0.9.0)
109
+ rack (2.0.7)
110
+ rack-test (1.1.0)
111
+ rack (>= 1.0, < 3)
112
+ rails (5.2.3)
113
+ actioncable (= 5.2.3)
114
+ actionmailer (= 5.2.3)
115
+ actionpack (= 5.2.3)
116
+ actionview (= 5.2.3)
117
+ activejob (= 5.2.3)
118
+ activemodel (= 5.2.3)
119
+ activerecord (= 5.2.3)
120
+ activestorage (= 5.2.3)
121
+ activesupport (= 5.2.3)
122
+ bundler (>= 1.3.0)
123
+ railties (= 5.2.3)
124
+ sprockets-rails (>= 2.0.0)
125
+ rails-dom-testing (2.0.3)
126
+ activesupport (>= 4.2.0)
127
+ nokogiri (>= 1.6)
128
+ rails-html-sanitizer (1.2.0)
129
+ loofah (~> 2.2, >= 2.2.2)
130
+ railties (5.2.3)
131
+ actionpack (= 5.2.3)
132
+ activesupport (= 5.2.3)
133
+ method_source
134
+ rake (>= 0.8.7)
135
+ thor (>= 0.19.0, < 2.0)
136
+ rainbow (3.0.0)
137
+ rake (10.5.0)
138
+ regexp_parser (1.6.0)
139
+ rspec (3.8.0)
140
+ rspec-core (~> 3.8.0)
141
+ rspec-expectations (~> 3.8.0)
142
+ rspec-mocks (~> 3.8.0)
143
+ rspec-core (3.8.0)
144
+ rspec-support (~> 3.8.0)
145
+ rspec-expectations (3.8.2)
146
+ diff-lcs (>= 1.2.0, < 2.0)
147
+ rspec-support (~> 3.8.0)
148
+ rspec-mocks (3.8.0)
149
+ diff-lcs (>= 1.2.0, < 2.0)
150
+ rspec-support (~> 3.8.0)
151
+ rspec-support (3.8.0)
152
+ rubocop (0.72.0)
153
+ jaro_winkler (~> 1.5.1)
154
+ parallel (~> 1.10)
155
+ parser (>= 2.6)
156
+ rainbow (>= 2.2.2, < 4.0)
157
+ ruby-progressbar (~> 1.7)
158
+ unicode-display_width (>= 1.4.0, < 1.7)
159
+ ruby-progressbar (1.10.1)
160
+ rubyzip (1.2.4)
161
+ selenium-webdriver (3.142.4)
162
+ childprocess (>= 0.5, < 3.0)
163
+ rubyzip (~> 1.2, >= 1.2.2)
164
+ simplecov (0.16.1)
165
+ docile (~> 1.1)
166
+ json (>= 1.8, < 3)
167
+ simplecov-html (~> 0.10.0)
168
+ simplecov-html (0.10.2)
169
+ sprockets (3.7.2)
170
+ concurrent-ruby (~> 1.0)
171
+ rack (> 1, < 3)
172
+ sprockets-rails (3.2.1)
173
+ actionpack (>= 4.0)
174
+ activesupport (>= 4.0)
175
+ sprockets (>= 3.0.0)
176
+ sqlite3 (1.4.1)
177
+ term-ansicolor (1.7.1)
178
+ tins (~> 1.0)
179
+ terminal-table (1.6.0)
180
+ thor (0.20.3)
181
+ thread_safe (0.3.6)
182
+ tins (1.21.1)
183
+ tzinfo (1.2.5)
184
+ thread_safe (~> 0.1)
185
+ unicode-display_width (1.6.0)
186
+ watir (6.16.5)
187
+ regexp_parser (~> 1.2)
188
+ selenium-webdriver (~> 3.6)
189
+ websocket-driver (0.7.1)
190
+ websocket-extensions (>= 0.1.0)
191
+ websocket-extensions (0.1.4)
192
+
193
+ PLATFORMS
194
+ ruby
195
+
196
+ DEPENDENCIES
197
+ bundler (~> 1.17)
198
+ coveralls
199
+ pry
200
+ r2-oas!
201
+ rake (~> 10.0)
202
+ rspec (~> 3.0)
203
+ rubocop
204
+ sqlite3
205
+
206
+ BUNDLED WITH
207
+ 1.17.3