r2-oas 0.3.2 → 0.3.3

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: 517376839248a5dd6de6e70b753490e02a23ac70c967129fc7a578ec89da596c
4
- data.tar.gz: 7eedf1ebcd319c0b93ee1ac58556ce0e4788658e62b64eecbad825862770245f
3
+ metadata.gz: 70122a2e55b9332c9e8d8c1bc50254b274a782451d1c7d1beac5fc8f04e152b6
4
+ data.tar.gz: 8f3f42e1fd68954b4a2d0f9e4fa6b8cd8d4cc5b655f94d93022813023a9a9f45
5
5
  SHA512:
6
- metadata.gz: 20b7b68bbf6c4e8ec2d963301855d7bd078b78c31a98e8a01d421197a9e080682e459fb2a2b5541ca07580b995003f3fe17f88b97b1ab5295bdcda793d255c81
7
- data.tar.gz: 140b4b5c71b4e34ed9f7ef7796414699db821ac078d6ad0101530145d0e3084cfd3f4e7b0c85e6a6091a2213b91ce6f976d4a2ee44d20434ce75f4f848595bf1
6
+ metadata.gz: 0f9c9ed6a2a384a9bc2246946265e5e57f4f0f33c29c2c42c16cf8322bc7499d06aaf8f2a70696093e0a897d5cb0599622af86d25709285479169962d26775e2
7
+ data.tar.gz: 26c3ae7cc8f45b0acd46bb2d8662379d2cad4fa499d25d7f358435b63d706ed73b0fa6b52fabd82aca9f59d42f10fbf4014cb240e6ec678a278a6407cc521536
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## v0.3.3
4
+
5
+ 2020-07-11
6
+
7
+ - [`FixBugs`] A cute pet store syndrome 🐈 ([f3f4c30](https://github.com/yukihirop/r2-oas/pull/144))
8
+ - [`FixBugs`] R2OAS.logger.level does not work ([f3f4c30](https://github.com/yukihirop/r2-oas/pull/144))
9
+ - [`Breaking`] Change default namespace type from `:underbar` to `:dot` ([f3f4c30](https://github.com/yukihirop/r2-oas/pull/144))
10
+ - [`Other`] Modify gemspec `files` fields ([f3f4c30](https://github.com/yukihirop/r2-oas/pull/144))
11
+
12
+ See milestone [v0.3.3](https://github.com/yukihirop/r2-oas/milestone/3?closed=1)
13
+
3
14
  ## v0.3.2
4
15
 
5
16
  2020-07-05
@@ -44,7 +44,7 @@ module R2OAS
44
44
  # rubocop:enable Style/MutableConstant
45
45
  DEFAULT_TOOL = Tool.new
46
46
  # :dot or :underbar
47
- DEFAULT_NAMESPACE_TYPE = :underbar
47
+ DEFAULT_NAMESPACE_TYPE = :dot
48
48
  DEFAULT_DEPLOY_DIR_PATH = './deploy_docs'
49
49
 
50
50
  PUBLIC_VALID_OPTIONS_KEYS = %i[
@@ -114,7 +114,14 @@ module R2OAS
114
114
  @browser ||= Watir::Browser.new(:chrome, capabilities)
115
115
  @browser.goto(url)
116
116
  if wait_for_loaded
117
- @browser.driver.local_storage[storage_key] = @schema_doc_from_local
117
+ # MEMO:
118
+ # Because it may not be updated
119
+ # Make sure that the launched local storage is updated reliably
120
+ Watir::Wait.until do
121
+ old_storage = @browser.driver.local_storage[storage_key].dup
122
+ @browser.driver.local_storage[storage_key] = new_storage = @schema_doc_from_local
123
+ old_storage != new_storage
124
+ end
118
125
  @browser.refresh
119
126
  end
120
127
  end
@@ -30,10 +30,6 @@ module R2OAS
30
30
  R2OAS.logger
31
31
  end
32
32
 
33
- def set_info_level
34
- R2OAS.logger.level = StdoutLogger::INFO
35
- end
36
-
37
33
  def set_debug_level
38
34
  R2OAS.logger.level = StdoutLogger::DEBUG
39
35
  end
@@ -10,7 +10,6 @@ namespace :routes do
10
10
  # desc "Setup a common setting for every tasks"
11
11
  task common: [:environment] do
12
12
  create_dot_paths
13
- set_info_level
14
13
  end
15
14
 
16
15
  # private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module R2OAS
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r2-oas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - yukihirop
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-05 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -251,20 +251,11 @@ executables: []
251
251
  extensions: []
252
252
  extra_rdoc_files: []
253
253
  files:
254
- - ".gitignore"
255
- - ".rspec"
256
- - ".rubocop.yml"
257
- - ".rubocop_todo.yml"
258
- - ".travis.yml"
259
- - Appraisals
260
254
  - CHANGELOG.md
261
- - CODE_OF_CONDUCT.md
262
255
  - GEMSPEC.md
263
- - Gemfile
264
256
  - LICENSE.txt
265
257
  - README.ja.md
266
258
  - README.md
267
- - Rakefile
268
259
  - lib/r2-oas.rb
269
260
  - lib/r2-oas/app_configuration.rb
270
261
  - lib/r2-oas/app_configuration/server.rb
@@ -366,15 +357,14 @@ files:
366
357
  - lib/r2-oas/tool/paths/ls.rb
367
358
  - lib/r2-oas/tool/paths/stats.rb
368
359
  - lib/r2-oas/version.rb
369
- - r2-oas.gemspec
370
360
  homepage: https://github.com/yukihirop/r2-oas
371
361
  licenses:
372
362
  - MIT
373
363
  metadata:
374
364
  bug_tracker_uri: https://github.com/yukihirop/r2-oas/issues
375
- changelog_uri: https://github.com/yukihirop/r2-oas/blob/v0.3.2/CHANGELOG.md
365
+ changelog_uri: https://github.com/yukihirop/r2-oas/blob/v0.3.3/CHANGELOG.md
376
366
  documentation_uri: https://yukihirop.github.io/r2-oas
377
- source_code_uri: https://github.com/yukihirop/r2-oas/tree/v0.3.2
367
+ source_code_uri: https://github.com/yukihirop/r2-oas/tree/v0.3.3
378
368
  post_install_message:
379
369
  rdoc_options: []
380
370
  require_paths:
data/.gitignore DELETED
@@ -1,16 +0,0 @@
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*
13
- Gemfile.lock
14
- **/vendor/bundle
15
- gemfiles/*.lock
16
- gemfiles/.bundle/*
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
@@ -1,10 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.7
5
- Exclude:
6
- - "example*/**/*"
7
- - "vendor/**/*"
8
- - "r2-oas.gemspec"
9
- - "gemfiles/**/*"
10
- - "Appraisals"
@@ -1,291 +0,0 @@
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
- Layout/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
- - "lib/r2-oas/schema/v3/generator/doc_generator.rb"
30
-
31
- Style/Documentation:
32
- Enabled: false
33
-
34
- Style/GuardClause:
35
- Enabled: false
36
-
37
- Metrics/BlockLength:
38
- Exclude:
39
- - "r2-oas.gemspec"
40
- - "lib/r2-oas/tasks/main.rake"
41
- - "lib/r2-oas/tasks/tool.rake"
42
- - "spec/r2-oas/routing/adjustor_spec.rb"
43
- - "spec/r2-oas/routing/components/request_component_spec.rb"
44
- - "spec/r2-oas/schema/v3/object/paths_object_spec.rb"
45
- - "spec/r2-oas/schema/v3/object/external_document_object_spec.rb"
46
- - "spec/r2-oas/schema/v3/manager/pathname_manager_spec.rb"
47
- - "spec/r2-oas/schema/v3/manager/diff/base_hash_diff_manager_spec.rb"
48
- - "spec/r2-oas/schema/v3/manager/file/base_file_manager_spec.rb"
49
- - "spec/r2-oas/routing/parser_spec.rb"
50
- - "spec/r2-oas/routing/components/path_component_spec.rb"
51
- - "spec/r2-oas/schema/v3/object/components/request_body_object_spec.rb"
52
- - "spec/r2-oas/schema/v3/object/components/schema_object_spec.rb"
53
- - "spec/r2-oas/schema/v3/object/path_item_object_spec.rb"
54
- - "spec/r2-oas/configuration/paths_config_spec.rb"
55
- - "spec/r2-oas/tasks/main_spec.rb"
56
- - "spec/r2-oas/tasks/tool_spec.rb"
57
- - "spec/r2-oas/configuration_spec.rb"
58
- - "spec/r2-oas/schema/v3/generator_spec.rb"
59
- - "spec/r2-oas/schema/v3/builder_spec.rb"
60
- - "spec/r2-oas/schema/v3/analyzer_spec.rb"
61
- - "spec/support/helpers/config_helper.rb"
62
- - "spec/r2-oas/schema/v3/object/components_object_spec.rb"
63
- - "spec/r2-oas/schema/v3/object/base_object_spec.rb"
64
- - "spec/r2-oas/schema/v3/manager/diff/base_array_diff_manager_spec.rb"
65
- - "spec/r2-oas/schema/v3/manager/file/include_ref_base_file_manager_spec.rb"
66
- - "spec/r2-oas/schema/v3/generator/base_generator_spec.rb"
67
- - "spec/r2-oas/schema/v3/builder/base_builder_spec.rb"
68
- - "spec/r2-oas/schema/v3/object/openapi_object_spec.rb"
69
- - "spec/r2-oas/schema/v3/object/info_object_spec.rb"
70
-
71
- Lint/AmbiguousOperator:
72
- Exclude:
73
- - "lib/r2-oas/app_configuration/swagger.rb"
74
- - "lib/r2-oas/app_configuration/tool/paths/stats.rb"
75
- - "lib/r2-oas/app_configuration/swagger/ui.rb"
76
- - "lib/r2-oas/app_configuration/swagger/editor.rb"
77
- - "lib/r2-oas/app_configuration/tool.rb"
78
- - "lib/r2-oas/configuration.rb"
79
- - "lib/r2-oas/app_configuration/server.rb"
80
- - "lib/r2-oas/schema/v3/object/base_object.rb"
81
- - "lib/r2-oas/base.rb"
82
- - "lib/r2-oas/routing/parser.rb"
83
- - "lib/r2-oas/app_configuration.rb"
84
- - "lib/r2-oas/pluggable_configuration.rb"
85
-
86
- Metrics/MethodLength:
87
- Exclude:
88
- - "lib/r2-oas/logger/stdout_logger.rb"
89
- - "lib/r2-oas/routing/adjustor.rb"
90
- - "lib/r2-oas/routing/parser.rb"
91
- - "lib/r2-oas/hooks/hook.rb"
92
- - "lib/r2-oas/task_logging.rb"
93
- - "lib/r2-oas/schema/ui.rb"
94
- - "lib/r2-oas/schema/editor.rb"
95
- - "lib/r2-oas/shared/sortable.rb"
96
- - "lib/r2-oas/app_configuration.rb"
97
- - "lib/r2-oas/schema/v3/analyzer/path_analyzer.rb"
98
- - "lib/r2-oas/schema/v3/analyzer/base_analyzer.rb"
99
- - "lib/r2-oas/schema/v3/analyzer/components/request_bodies_analyzer.rb"
100
- - "lib/r2-oas/schema/v3/analyzer/components/schemas_analyzer.rb"
101
- - "lib/r2-oas/schema/v3/analyzer/tag_analyzer.rb"
102
- - "lib/r2-oas/schema/v3/analyzer.rb"
103
- - "lib/r2-oas/schema/v3/object/paths_object.rb"
104
- - "lib/r2-oas/schema/v3/object/components_object.rb"
105
- - "lib/r2-oas/schema/v3/object/path_item_object.rb"
106
- - "lib/r2-oas/schema/v3/object/info_object.rb"
107
- - "lib/r2-oas/schema/v3/manager/diff/base_array_diff_manager.rb"
108
- - "lib/r2-oas/schema/v3/manager/diff/base_hash_diff_manager.rb"
109
- - "lib/r2-oas/schema/v3/manager/file/components/request_body_file_manager.rb"
110
- - "lib/r2-oas/schema/v3/manager/file/path_item_file_manager.rb"
111
- - "lib/r2-oas/schema/v3/manager/file/include_ref_base_file_manager.rb"
112
- - "lib/r2-oas/schema/v3/manager/pathname_manager.rb"
113
- - "lib/r2-oas/schema/v3/generator/path_generator.rb"
114
- - "lib/r2-oas/schema/v3/generator/components/request_body_generator.rb"
115
- - "lib/r2-oas/schema/v3/generator/schema_generator.rb"
116
- - "lib/r2-oas/schema/v3/generator/components/schema_generator.rb"
117
- - "lib/r2-oas/schema/v3/generator/doc_generator.rb"
118
- - "lib/r2-oas/schema/v3/builder/doc_builder.rb"
119
- - "lib/r2-oas/schema/v3/object/components/request_body_object.rb"
120
- - "lib/r2-oas/schema/v3/squeezer/path_squeezer.rb"
121
- - "lib/r2-oas/schema/v3/generator/components/object_generator.rb"
122
- - "lib/r2-oas/routing/components/request_component.rb"
123
- - "spec/support/helpers/config_helper.rb"
124
- - "lib/r2-oas/schema/v3/analyzer/components/object_analyzer.rb"
125
- - "lib/r2-oas/store.rb"
126
-
127
- Metrics/CyclomaticComplexity:
128
- Exclude:
129
- - "lib/r2-oas/logger/stdout_logger.rb"
130
- - "lib/r2-oas/schema/v3/manager/pathname_manager.rb"
131
- - "lib/r2-oas/schema/v3/generator/doc_generator.rb"
132
-
133
- Naming/ConstantName:
134
- Exclude:
135
- - "lib/r2-oas/logger/stdout_logger.rb"
136
-
137
- Naming/PredicateName:
138
- Exclude:
139
- - "lib/r2-oas/hooks/hook.rb"
140
- - "lib/r2-oas/plugins/schema/v3/object/hookable_base_object.rb"
141
-
142
- Style/DoubleNegation:
143
- Exclude:
144
- - "lib/r2-oas/hooks/hook.rb"
145
-
146
- Style/MultilineBlockChain:
147
- Exclude:
148
- - "lib/r2-oas/routing/parser.rb"
149
-
150
- Naming/MemoizedInstanceVariableName:
151
- Exclude:
152
- - "lib/r2-oas/configuration.rb"
153
-
154
- Naming/AccessorMethodName:
155
- Exclude:
156
- - "lib/r2-oas/configuration.rb"
157
- - "lib/r2-oas/app_configuration.rb"
158
- - "lib/r2-oas/pluggable_configuration.rb"
159
-
160
- Style/AsciiComments:
161
- Exclude:
162
- - "lib/r2-oas/logger/stdout_logger.rb"
163
- - "lib/r2-oas/schema/v3/analyzer/path_analyzer.rb"
164
-
165
- Lint/UnderscorePrefixedVariableName:
166
- Exclude:
167
- - "lib/r2-oas/logger/stdout_logger.rb"
168
- - "lib/r2-oas/schema/v3/object/components/request_body_object.rb"
169
-
170
- Lint/UselessAccessModifier:
171
- Exclude:
172
- - "lib/r2-oas/pluggable_configuration.rb"
173
-
174
- Style/IdenticalConditionalBranches:
175
- Exclude:
176
- - "lib/r2-oas/schema/editor.rb"
177
-
178
- Style/ClassVars:
179
- Exclude:
180
- - "lib/r2-oas/plugins/schema/v3/object/hookable_base_object.rb"
181
-
182
- Style/AccessModifierDeclarations:
183
- Exclude:
184
- - "lib/r2-oas/app_configuration.rb"
185
-
186
- Style/NumericPredicate:
187
- Exclude:
188
- - "lib/r2-oas/schema/v3/generator/base_generator.rb"
189
- - "lib/r2-oas/schema/v3/builder/base_builder.rb"
190
-
191
- Metrics/ClassLength:
192
- Exclude:
193
- - "lib/r2-oas/schema/v3/object/path_item_object.rb"
194
-
195
- Metrics/ParameterLists:
196
- Exclude:
197
- - "lib/r2-oas/schema/v3/object/path_item_object.rb"
198
- - "lib/r2-oas/schema/v3/object/components/schema_object.rb"
199
- - "spec/r2-oas/schema/v3/object/components/schema_object_spec.rb"
200
-
201
- Layout/EndAlignment:
202
- Exclude:
203
- - "lib/r2-oas/shared/sortable.rb"
204
- - "lib/r2-oas/schema/v3/generator/doc_generator.rb"
205
- - "lib/r2-oas/schema/v3/builder/doc_builder.rb"
206
-
207
- Security/YAMLLoad:
208
- Exclude:
209
- - "lib/r2-oas/schema/editor.rb"
210
-
211
- Naming/FileName:
212
- Exclude:
213
- - "spec/r2-oas_spec.rb"
214
- - "lib/r2-oas.rb"
215
-
216
- Naming/MethodName:
217
- Exclude:
218
- - "spec/support/helpers/create_helper.rb"
219
- - "spec/support/helpers/path_helper.rb"
220
-
221
- Naming/HeredocDelimiterNaming:
222
- Exclude:
223
- - "spec/r2-oas/configuration/paths_config_spec.rb"
224
- - "r2-oas.gemspec"
225
-
226
- Style/ClassAndModuleChildren:
227
- Exclude:
228
- - "spec/dummy_app/controllers/api/v1/tasks_controller.rb"
229
-
230
- Lint/RequireParentheses:
231
- Exclude:
232
- - "spec/r2-oas/schema/v3/object/components/schema_object_spec.rb"
233
-
234
- Style/IfUnlessModifier:
235
- Exclude:
236
- - "lib/r2-oas/schema/editor.rb"
237
-
238
- Security/MarshalLoad:
239
- Enabled: false
240
-
241
- Metrics/PerceivedComplexity:
242
- Exclude:
243
- - "lib/r2-oas/schema/v3/generator/doc_generator.rb"
244
-
245
- Lint/UselessAssignment:
246
- Enabled: false
247
-
248
- Style/NestedParenthesizedCalls:
249
- Enabled: false
250
-
251
- Layout/EmptyLinesAroundAttributeAccessor:
252
- Enabled: false
253
-
254
- Layout/SpaceAroundMethodCallOperator:
255
- Enabled: false
256
-
257
- Lint/DeprecatedOpenSSLConstant:
258
- Enabled: false
259
-
260
- Lint/RaiseException:
261
- Enabled: false
262
-
263
- Lint/StructNewOverride:
264
- Enabled: false
265
-
266
- Style/ExponentialNotation:
267
- Enabled: false
268
-
269
- Style/HashEachMethods:
270
- Enabled: false
271
- Style/HashTransformKeys:
272
- Enabled: false
273
-
274
- Style/HashTransformValues:
275
- Enabled: false
276
-
277
- Style/SlicingWithRange:
278
- Enabled: false
279
-
280
- Lint/NonDeterministicRequireOrder:
281
- Exclude:
282
- - "spec/spec_helper.rb"
283
-
284
- Lint/MixedRegexpCaptureTypes:
285
- Enabled: false
286
-
287
- Style/RedundantRegexpCharacterClass:
288
- Enabled: false
289
-
290
- Style/RedundantRegexpEscape:
291
- Enabled: false
@@ -1,26 +0,0 @@
1
- ---
2
- sudo: false
3
-
4
- language: ruby
5
-
6
- cache: bundler
7
-
8
- rvm:
9
- - 2.3.3
10
- - 2.4.2
11
- - 2.5.7
12
- - 2.6.5
13
- - 2.7.1
14
-
15
- before_install: gem install bundler
16
-
17
- gemfile:
18
- - Gemfile
19
- bundler_args: "--without development --deployment"
20
-
21
- install:
22
- - bundle install
23
-
24
- script:
25
- - ruby -e "if RUBY_VERSION >= '2.7'; system('bundle exec rubocop --fail-level=W'); end"
26
- - bundle exec rspec spec --exclude-pattern "spec/r2-oas/tasks/tool_spec.rb,spec/r2-oas/tool/paths/stats_spec.rb"
data/Appraisals DELETED
@@ -1,13 +0,0 @@
1
- appraise 'ruby-2.3.3' do
2
- end
3
- appraise 'ruby-2.4.2' do
4
- end
5
- # stable
6
- appraise 'ruby-2.5.8' do
7
- end
8
- # stable
9
- appraise 'ruby-2.6.6' do
10
- end
11
- # stable
12
- appraise 'ruby-2.7.1' do
13
- end
@@ -1,74 +0,0 @@
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 DELETED
@@ -1,12 +0,0 @@
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
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
@@ -1,51 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'r2-oas/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'r2-oas'
9
- spec.version = R2OAS::VERSION
10
- spec.authors = ['yukihirop']
11
- spec.email = ['te108186@gmail.com']
12
-
13
- spec.summary = 'Provide rake tasks to management API Docment (OpenAPI)'
14
- spec.description = %Q{== Let's intuitively write API documentation with Swagger Editor in your Rails Project! 😊\n#{IO.read('GEMSPEC.md')}}
15
-
16
- spec.homepage = 'https://github.com/yukihirop/r2-oas'
17
- spec.license = 'MIT'
18
- spec.metadata = {
19
- "bug_tracker_uri" => "https://github.com/yukihirop/r2-oas/issues",
20
- "changelog_uri" => "https://github.com/yukihirop/r2-oas/blob/v#{spec.version}/CHANGELOG.md",
21
- "documentation_uri" => "https://yukihirop.github.io/r2-oas",
22
- "source_code_uri" => "https://github.com/yukihirop/r2-oas/tree/v#{spec.version}"
23
- }
24
-
25
- # Specify which files should be added to the gem when it is released.
26
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
28
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin|.github|devscript|docs|gemfiles)/}) }
29
- end
30
- spec.bindir = 'exe'
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
- spec.require_paths = ['lib']
33
- spec.required_ruby_version = Gem::Requirement.new('>= 2.3.3p222')
34
-
35
- spec.add_runtime_dependency 'docker-api', '>= 1.34.2'
36
- spec.add_runtime_dependency 'easy_diff', '>= 1.0.0'
37
- spec.add_runtime_dependency 'eventmachine', '>= 1.2.0'
38
- spec.add_runtime_dependency 'key_flatten', '>= 1.0.0'
39
- spec.add_runtime_dependency 'paint'
40
- spec.add_runtime_dependency 'railties', '>= 4.2.5'
41
- spec.add_runtime_dependency 'terminal-table', '>= 1.6.0'
42
- spec.add_runtime_dependency 'watir', '>= 6.16.5'
43
- spec.add_development_dependency 'bundler', '>= 1.17'
44
- spec.add_development_dependency 'coveralls'
45
- spec.add_development_dependency 'pry'
46
- spec.add_development_dependency 'rake', '~> 13.0'
47
- spec.add_development_dependency 'rspec', '~> 3.0'
48
- spec.add_development_dependency 'rubocop'
49
- spec.add_development_dependency 'appraisal'
50
- spec.add_development_dependency 'activerecord', '>= 4.2.5'
51
- end