yard 0.9.28 → 0.9.35
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +49 -0
- data/LEGAL +29 -1
- data/docs/WhatsNew.md +2 -2
- data/lib/yard/autoload.rb +2 -1
- data/lib/yard/cli/command.rb +1 -1
- data/lib/yard/cli/yardoc.rb +1 -1
- data/lib/yard/code_objects/base.rb +5 -1
- data/lib/yard/docstring_parser.rb +1 -1
- data/lib/yard/handlers/ruby/attribute_handler.rb +1 -1
- data/lib/yard/handlers/ruby/legacy/attribute_handler.rb +1 -1
- data/lib/yard/handlers/ruby/mixin_handler.rb +13 -6
- data/lib/yard/i18n/locale.rb +1 -1
- data/lib/yard/i18n/message.rb +2 -2
- data/lib/yard/i18n/messages.rb +1 -1
- data/lib/yard/i18n/pot_generator.rb +1 -1
- data/lib/yard/options.rb +1 -1
- data/lib/yard/parser/ruby/ruby_parser.rb +8 -2
- data/lib/yard/parser/source_parser.rb +2 -3
- data/lib/yard/registry_resolver.rb +2 -1
- data/lib/yard/server/commands/base.rb +1 -1
- data/lib/yard/server/commands/library_command.rb +8 -8
- data/lib/yard/server/commands/static_file_helpers.rb +1 -2
- data/lib/yard/server/http_utils.rb +512 -0
- data/lib/yard/server/rack_adapter.rb +13 -5
- data/lib/yard/tags/tag.rb +2 -2
- data/lib/yard/tags/types_explainer.rb +1 -1
- data/lib/yard/templates/helpers/html_helper.rb +1 -1
- data/lib/yard/version.rb +1 -1
- data/po/ja.po +19 -19
- data/templates/default/fulldoc/html/frames.erb +3 -3
- data/templates/default/tags/html/option.erb +1 -1
- metadata +5 -55
- data/.dockerignore +0 -2
- data/.gitattributes +0 -4
- data/.github/FUNDING.yml +0 -3
- data/.github/ISSUE_TEMPLATE.md +0 -33
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -12
- data/.github/workflows/ci.yml +0 -30
- data/.github/workflows/gem.yml +0 -19
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.rubocop.yml +0 -112
- data/CODE_OF_CONDUCT.md +0 -15
- data/CONTRIBUTING.md +0 -140
- data/Dockerfile.samus +0 -28
- data/Gemfile +0 -34
- data/Rakefile +0 -36
- data/SECURITY.md +0 -26
- data/benchmarks/builtins_vs_eval.rb +0 -24
- data/benchmarks/concat_vs_join.rb +0 -13
- data/benchmarks/erb_vs_erubis.rb +0 -54
- data/benchmarks/format_args.rb +0 -47
- data/benchmarks/generation.rb +0 -38
- data/benchmarks/marshal_vs_dbm.rb +0 -64
- data/benchmarks/parsing.rb +0 -46
- data/benchmarks/pathname_vs_string.rb +0 -51
- data/benchmarks/rdoc_vs_yardoc.rb +0 -11
- data/benchmarks/registry_store_types.rb +0 -49
- data/benchmarks/ri_vs_yri.rb +0 -19
- data/benchmarks/ripper_parser.rb +0 -13
- data/benchmarks/splat_vs_flatten.rb +0 -13
- data/benchmarks/template_erb.rb +0 -23
- data/benchmarks/template_format.rb +0 -7
- data/benchmarks/template_profile.rb +0 -18
- data/benchmarks/yri_cache.rb +0 -20
- data/samus.json +0 -49
- data/tasks/prepare_tag.rake +0 -45
- data/tasks/update_error_map.rake +0 -53
- data/yard.gemspec +0 -25
data/po/ja.po
CHANGED
@@ -1501,7 +1501,7 @@ msgstr ""
|
|
1501
1501
|
"これらのオブジェクトはツリー構造のように振る舞い、これらの直接の子全てのリストを維持している。\n"
|
1502
1502
|
"namespaceではない全てのオブジェクトは単純にベースクラスのサブクラスである。\n"
|
1503
1503
|
"{YARD::CodeObjects::RootObject RootObject} は\n"
|
1504
|
-
"特別な `NamespaceObject` ともいえ、Rubyの中のトップレベル
|
1504
|
+
"特別な `NamespaceObject` ともいえ、Rubyの中のトップレベルnamespaceを参照する。\n"
|
1505
1505
|
"パラメータとして namespace オブジェクトを受け入れるメソッドは、\n"
|
1506
1506
|
"root オブジェクト用のショートカットとして `:root` シンボルも受け入れる。"
|
1507
1507
|
|
@@ -6175,7 +6175,7 @@ msgstr ""
|
|
6175
6175
|
"'default/class'から自動的に継承する。\n"
|
6176
6176
|
"そして 'default/class/setup.rb' の中に定義されるもの全ては、\n"
|
6177
6177
|
"'default/class/html/setup.rb' によって上書きされることも意味する。\n"
|
6178
|
-
"(yard/lib以下の話ではなくyard/
|
6178
|
+
"(yard/lib以下の話ではなくyard/templates以下の話)"
|
6179
6179
|
|
6180
6180
|
#: ../docs/Templates.md:200
|
6181
6181
|
msgid ""
|
@@ -7124,7 +7124,7 @@ msgstr "#### Rubyのコードを解析する為の新しい `@!parse` ディレ
|
|
7124
7124
|
#: ../docs/WhatsNew.md:87
|
7125
7125
|
msgid ""
|
7126
7126
|
"A new {tag:!parse} directive was added that allows a developer to have\n"
|
7127
|
-
"YARD parse code that might not necessarily be
|
7127
|
+
"YARD parse code that might not necessarily be parsable in its original\n"
|
7128
7128
|
"form. This is useful when using `instance_eval` and other dynamic\n"
|
7129
7129
|
"meta-programming techniques to define methods or perform functionality.\n"
|
7130
7130
|
"For instance, a common case of the \"self.included\" callback in module\n"
|
@@ -9452,7 +9452,7 @@ msgid ""
|
|
9452
9452
|
msgstr ""
|
9453
9453
|
"1. **新しいテンプレートエンジンとテンプレート**\n"
|
9454
9454
|
"2. **yardoc `--query` 引数**\n"
|
9455
|
-
"3. **Greatly
|
9455
|
+
"3. **Greatly expanded API ドキュメント**\n"
|
9456
9456
|
"4. **新しいプラグインのサポート**\n"
|
9457
9457
|
"5. **新しいタグ(@abstract, @private)**\n"
|
9458
9458
|
"6. **デフォルトのrake taskは`rake yard`コマンドになった**"
|
@@ -9607,7 +9607,7 @@ msgid ""
|
|
9607
9607
|
"This tag exists so that you can create a query (`--query !@private`) to\n"
|
9608
9608
|
"ignore all of these private objects in your documentation. You can also\n"
|
9609
9609
|
"use the new `--no-private` switch, which is a shortcut to the "
|
9610
|
-
"
|
9610
|
+
"aforementioned\n"
|
9611
9611
|
"query. You can read more about the new tags in the {file:docs/GettingStarted."
|
9612
9612
|
"md}\n"
|
9613
9613
|
"guide."
|
@@ -9816,7 +9816,7 @@ msgid ""
|
|
9816
9816
|
" # @overload def to_html(html, autolink = true)\n"
|
9817
9817
|
" # This docstring describes the specific overload only.\n"
|
9818
9818
|
" # @param [String] html the HTML\n"
|
9819
|
-
" # @param [Boolean] autolink whether or not to
|
9819
|
+
" # @param [Boolean] autolink whether or not to automatically link\n"
|
9820
9820
|
" # URL references\n"
|
9821
9821
|
" # @overload def to_html(html, opts = {})\n"
|
9822
9822
|
" # @param [String] html the HTML\n"
|
@@ -9828,7 +9828,7 @@ msgstr ""
|
|
9828
9828
|
" # @overload def to_html(html, autolink = true)\n"
|
9829
9829
|
" # This docstring describes the specific overload only.\n"
|
9830
9830
|
" # @param [String] html the HTML\n"
|
9831
|
-
" # @param [Boolean] autolink whether or not to
|
9831
|
+
" # @param [Boolean] autolink whether or not to automatically link\n"
|
9832
9832
|
" # URL references\n"
|
9833
9833
|
" # @overload def to_html(html, opts = {})\n"
|
9834
9834
|
" # @param [String] html the HTML\n"
|
@@ -11513,7 +11513,7 @@ msgstr ""
|
|
11513
11513
|
|
11514
11514
|
# @param [Hash, nil] checksums
|
11515
11515
|
#: ../lib/yard/cli/yardoc.rb:340
|
11516
|
-
msgid "if supplied, a list of
|
11516
|
+
msgid "if supplied, a list of checksums for files."
|
11517
11517
|
msgstr "提供する場合は、ファイルの為のチェックサムのリスト"
|
11518
11518
|
|
11519
11519
|
# @param [Hash, nil]
|
@@ -15746,7 +15746,7 @@ msgstr ""
|
|
15746
15746
|
# YARD::DocstringParser
|
15747
15747
|
#: ../lib/yard/docstring_parser.rb:11
|
15748
15748
|
msgid ""
|
15749
|
-
"The DocstringParser can be subclassed and
|
15749
|
+
"The DocstringParser can be subclassed and substituted during parsing by\n"
|
15750
15750
|
"setting the {Docstring.default_parser} attribute with the name of the\n"
|
15751
15751
|
"subclass. This allows developers to change the way docstrings are\n"
|
15752
15752
|
"parsed, allowing for completely different docstring syntaxes."
|
@@ -18512,7 +18512,7 @@ msgstr "翻訳目標のメッセージ"
|
|
18512
18512
|
# @return [String]
|
18513
18513
|
#: ../lib/yard/i18n/locale.rb:45
|
18514
18514
|
msgid ""
|
18515
|
-
"translated message. If
|
18515
|
+
"translated message. If translation isn't\n"
|
18516
18516
|
"registered, the +message+ is returned."
|
18517
18517
|
msgstr ""
|
18518
18518
|
|
@@ -18525,7 +18525,7 @@ msgstr ""
|
|
18525
18525
|
|
18526
18526
|
# @param tag_name
|
18527
18527
|
#: ../lib/yard/i18n/message.rb:11
|
18528
|
-
msgid "the message ID of the
|
18528
|
+
msgid "the message ID of the translation target message."
|
18529
18529
|
msgstr "翻訳目標のメッセージのメッセージID"
|
18530
18530
|
|
18531
18531
|
# @param [Fixnum, nil] line
|
@@ -18545,7 +18545,7 @@ msgstr "メッセージ用のコメントのグループ"
|
|
18545
18545
|
|
18546
18546
|
# YARD::Handlers::Processor#initialize
|
18547
18547
|
#: ../lib/yard/i18n/message.rb:21
|
18548
|
-
msgid "Creates a
|
18548
|
+
msgid "Creates a translate target message for message ID +id+."
|
18549
18549
|
msgstr "メッセージID +id+ 用の翻訳目標のメッセージを作成する"
|
18550
18550
|
|
18551
18551
|
# @return [Tag]
|
@@ -18652,7 +18652,7 @@ msgstr ""
|
|
18652
18652
|
# YARD::I18n::Messages#register
|
18653
18653
|
#: ../lib/yard/i18n/messages.rb:31
|
18654
18654
|
msgid ""
|
18655
|
-
"Registers a {Message}, the
|
18655
|
+
"Registers a {Message}, the message ID of which is +id+. If\n"
|
18656
18656
|
"corresponding +Message+ is already registered, the previously\n"
|
18657
18657
|
"registered object is returned."
|
18658
18658
|
msgstr ""
|
@@ -18876,7 +18876,7 @@ msgstr ""
|
|
18876
18876
|
msgid ""
|
18877
18877
|
"Locations of the +Message+ are used to generate the reference\n"
|
18878
18878
|
"line that is started with \"#: \". +relative_base_path+ passed\n"
|
18879
|
-
"when the
|
18879
|
+
"when the generator is created is prepended to each path in location."
|
18880
18880
|
msgstr ""
|
18881
18881
|
|
18882
18882
|
# YARD::I18n::PotGenerator#generate
|
@@ -19475,7 +19475,7 @@ msgstr "tag|example|ハッシュ構文を用いたオプションの設定"
|
|
19475
19475
|
|
19476
19476
|
# @param [Hash] options
|
19477
19477
|
#: ../lib/yard/options.rb:99
|
19478
|
-
msgid "the
|
19478
|
+
msgid "the option to set"
|
19479
19479
|
msgstr "設定するためのオプション"
|
19480
19480
|
|
19481
19481
|
# @param [Object] value
|
@@ -23736,7 +23736,7 @@ msgid ""
|
|
23736
23736
|
" def run\n"
|
23737
23737
|
" self.body = 'ERROR! The System is down!'\n"
|
23738
23738
|
" self.status = 500\n"
|
23739
|
-
" self.headers['
|
23739
|
+
" self.headers['Content-Type'] = 'text/plain'\n"
|
23740
23740
|
" end\n"
|
23741
23741
|
"end"
|
23742
23742
|
msgstr ""
|
@@ -27892,7 +27892,7 @@ msgstr "任意のタイトルとして、リンクに表示する"
|
|
27892
27892
|
#: ../lib/yard/templates/helpers/base_helper.rb:143
|
27893
27893
|
#: ../lib/yard/templates/helpers/html_helper.rb:220
|
27894
27894
|
msgid "Links to an extra file"
|
27895
|
-
msgstr "
|
27895
|
+
msgstr "extraファイルにリンクする"
|
27896
27896
|
|
27897
27897
|
# @param [String] anchor
|
27898
27898
|
#: ../lib/yard/templates/helpers/base_helper.rb:149
|
@@ -30096,7 +30096,7 @@ msgstr "解析された式"
|
|
30096
30096
|
#~ "{Library.default_factory}."
|
30097
30097
|
#~ msgstr ""
|
30098
30098
|
#~ "次の事に留意する。\n"
|
30099
|
-
#~ "+
|
30099
|
+
#~ "+tag_factory+ は、タグを解析する為に利用されるfactoryオブジェクトとな"
|
30100
30100
|
#~ "る。\n"
|
30101
30101
|
#~ "この値は{DefaultFactory}クラスがデフォルトとなり、\n"
|
30102
30102
|
#~ "{Library.default_factory}を変更する事によって設定できる。"
|
@@ -31067,7 +31067,7 @@ msgstr "解析された式"
|
|
31067
31067
|
|
31068
31068
|
#~ msgid ""
|
31069
31069
|
#~ "* **Domain Specific Language (DSL)**: In the context of Ruby, a DSL is a "
|
31070
|
-
#~ "
|
31070
|
+
#~ "language\n"
|
31071
31071
|
#~ " optimized for a specific domain (problem) but represented using Ruby "
|
31072
31072
|
#~ "syntax."
|
31073
31073
|
#~ msgstr ""
|
@@ -5,10 +5,10 @@
|
|
5
5
|
<title><%= options.title %></title>
|
6
6
|
</head>
|
7
7
|
<script type="text/javascript">
|
8
|
-
var match =
|
8
|
+
var match = decodeURIComponent(window.location.hash).match(/^#!(.+)/);
|
9
9
|
var name = match ? match[1] : '<%= url_for_main %>';
|
10
|
-
name = name.replace(/^(\w
|
11
|
-
window.top.location
|
10
|
+
name = name.replace(/^((\w*):)?[\/\\]*/gm, '').trim();
|
11
|
+
window.top.location.replace(name)
|
12
12
|
</script>
|
13
13
|
<noscript>
|
14
14
|
<h1>Oops!</h1>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% if object.has_tag?(:option) %>
|
1
|
+
<% if object.has_tag?(:option) && object.respond_to?(:parameters) %>
|
2
2
|
<% object.parameters.each do |param, default| %>
|
3
3
|
<% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s.sub(/^\*+|:$/, '') } %>
|
4
4
|
<% next if tags.empty? %>
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: webrick
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.7.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.7.0
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
27
13
|
description: |2
|
28
14
|
YARD is a documentation generation tool for the Ruby programming language.
|
29
15
|
It enables the user to generate consistent, usable documentation that can be
|
@@ -37,46 +23,13 @@ executables:
|
|
37
23
|
extensions: []
|
38
24
|
extra_rdoc_files: []
|
39
25
|
files:
|
40
|
-
- ".dockerignore"
|
41
|
-
- ".gitattributes"
|
42
|
-
- ".github/FUNDING.yml"
|
43
|
-
- ".github/ISSUE_TEMPLATE.md"
|
44
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
45
|
-
- ".github/workflows/ci.yml"
|
46
|
-
- ".github/workflows/gem.yml"
|
47
|
-
- ".gitignore"
|
48
|
-
- ".rspec"
|
49
|
-
- ".rubocop.yml"
|
50
26
|
- ".yardopts"
|
51
27
|
- ".yardopts_guide"
|
52
28
|
- ".yardopts_i18n"
|
53
29
|
- CHANGELOG.md
|
54
|
-
- CODE_OF_CONDUCT.md
|
55
|
-
- CONTRIBUTING.md
|
56
|
-
- Dockerfile.samus
|
57
|
-
- Gemfile
|
58
30
|
- LEGAL
|
59
31
|
- LICENSE
|
60
32
|
- README.md
|
61
|
-
- Rakefile
|
62
|
-
- SECURITY.md
|
63
|
-
- benchmarks/builtins_vs_eval.rb
|
64
|
-
- benchmarks/concat_vs_join.rb
|
65
|
-
- benchmarks/erb_vs_erubis.rb
|
66
|
-
- benchmarks/format_args.rb
|
67
|
-
- benchmarks/generation.rb
|
68
|
-
- benchmarks/marshal_vs_dbm.rb
|
69
|
-
- benchmarks/parsing.rb
|
70
|
-
- benchmarks/pathname_vs_string.rb
|
71
|
-
- benchmarks/rdoc_vs_yardoc.rb
|
72
|
-
- benchmarks/registry_store_types.rb
|
73
|
-
- benchmarks/ri_vs_yri.rb
|
74
|
-
- benchmarks/ripper_parser.rb
|
75
|
-
- benchmarks/splat_vs_flatten.rb
|
76
|
-
- benchmarks/template_erb.rb
|
77
|
-
- benchmarks/template_format.rb
|
78
|
-
- benchmarks/template_profile.rb
|
79
|
-
- benchmarks/yri_cache.rb
|
80
33
|
- bin/yard
|
81
34
|
- bin/yardoc
|
82
35
|
- bin/yri
|
@@ -259,6 +212,7 @@ files:
|
|
259
212
|
- lib/yard/server/commands/static_file_helpers.rb
|
260
213
|
- lib/yard/server/doc_server_helper.rb
|
261
214
|
- lib/yard/server/doc_server_serializer.rb
|
215
|
+
- lib/yard/server/http_utils.rb
|
262
216
|
- lib/yard/server/library_version.rb
|
263
217
|
- lib/yard/server/rack_adapter.rb
|
264
218
|
- lib/yard/server/router.rb
|
@@ -311,9 +265,6 @@ files:
|
|
311
265
|
- lib/yard/verifier.rb
|
312
266
|
- lib/yard/version.rb
|
313
267
|
- po/ja.po
|
314
|
-
- samus.json
|
315
|
-
- tasks/prepare_tag.rake
|
316
|
-
- tasks/update_error_map.rake
|
317
268
|
- templates/default/class/dot/setup.rb
|
318
269
|
- templates/default/class/dot/superklass.erb
|
319
270
|
- templates/default/class/html/constructor_details.erb
|
@@ -441,7 +392,6 @@ files:
|
|
441
392
|
- templates/guide/onefile/html/setup.rb
|
442
393
|
- templates/guide/onefile/html/toc.erb
|
443
394
|
- templates/guide/tags/html/setup.rb
|
444
|
-
- yard.gemspec
|
445
395
|
homepage: http://yardoc.org
|
446
396
|
licenses:
|
447
397
|
- MIT
|
@@ -462,7 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
462
412
|
- !ruby/object:Gem::Version
|
463
413
|
version: '0'
|
464
414
|
requirements: []
|
465
|
-
rubygems_version: 3.
|
415
|
+
rubygems_version: 3.3.5
|
466
416
|
signing_key:
|
467
417
|
specification_version: 4
|
468
418
|
summary: Documentation tool for consistent and usable documentation in Ruby.
|
data/.dockerignore
DELETED
data/.gitattributes
DELETED
data/.github/FUNDING.yml
DELETED
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
[Describe your issue here. Try to be as specific as possible so we can find
|
2
|
-
the root cause more quickly!]
|
3
|
-
|
4
|
-
## Steps to reproduce
|
5
|
-
|
6
|
-
This is the minimal reproduction for the issue. I've done my best to remove
|
7
|
-
all extraneous code and unique environment state on my machine before providing
|
8
|
-
these steps:
|
9
|
-
|
10
|
-
1. Run the following command: `yard doc --no-private`
|
11
|
-
2. Open browser to (URL)...
|
12
|
-
3. Click on Method List link.
|
13
|
-
|
14
|
-
## Actual Output
|
15
|
-
|
16
|
-
[Provide the full output (**please run yard with `--debug`**) or screenshots for
|
17
|
-
visual issues.]
|
18
|
-
|
19
|
-
## Expected Output
|
20
|
-
|
21
|
-
[Describe what you *expected* to happen.]
|
22
|
-
|
23
|
-
## Environment details:
|
24
|
-
|
25
|
-
- OS: [Enter operating system / version here]
|
26
|
-
- Ruby version (`ruby -v`): [Enter output of `ruby -v`]
|
27
|
-
- YARD version (`yard -v`): [Enter output of `yard -v`]
|
28
|
-
- Relevant software dependency/versions:
|
29
|
-
- [Any 3rd party libs required to reproduce, omit if none]
|
30
|
-
|
31
|
-
I have read the [Contributing Guide][contrib].
|
32
|
-
|
33
|
-
[contrib]: https://github.com/lsegal/yard/blob/main/CONTRIBUTING.md
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# Description
|
2
|
-
|
3
|
-
Describe your pull request and problem statement here.
|
4
|
-
|
5
|
-
# Completed Tasks
|
6
|
-
|
7
|
-
- [ ] I have read the [Contributing Guide][contrib].
|
8
|
-
- [ ] The pull request is complete (implemented / written).
|
9
|
-
- [ ] Git commits have been cleaned up (squash WIP / revert commits).
|
10
|
-
- [ ] I wrote tests and ran `bundle exec rake` locally (if code is attached to PR).
|
11
|
-
|
12
|
-
[contrib]: https://github.com/lsegal/yard/blob/main/CONTRIBUTING.md
|
data/.github/workflows/ci.yml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
name: Unit Tests
|
2
|
-
|
3
|
-
on: [push, pull_request, workflow_dispatch]
|
4
|
-
jobs:
|
5
|
-
build:
|
6
|
-
name: "Ruby: ${{ matrix.ruby }} OS: ${{ matrix.os }}"
|
7
|
-
runs-on: ${{ matrix.os }}
|
8
|
-
strategy:
|
9
|
-
fail-fast: false
|
10
|
-
matrix:
|
11
|
-
os: [ubuntu-20.04, macos-10.15, windows-2019]
|
12
|
-
# 3.0 is interpreted as 3. also disable 2.5 due to bundler crashes
|
13
|
-
ruby: [2.2, 2.3, 2.4, 2.6, 2.7, "3.0", 3.1]
|
14
|
-
exclude:
|
15
|
-
- { os: windows-2019, ruby: 2.2 }
|
16
|
-
- { os: windows-2019, ruby: 2.3 }
|
17
|
-
steps:
|
18
|
-
- name: Checkout
|
19
|
-
uses: actions/checkout@v2
|
20
|
-
- name: Install Ruby & 'bundle install'
|
21
|
-
uses: ruby/setup-ruby@v1
|
22
|
-
with:
|
23
|
-
ruby-version: ${{ matrix.ruby }}
|
24
|
-
bundler-cache: true
|
25
|
-
- name: Run Test
|
26
|
-
run: |
|
27
|
-
ruby -v
|
28
|
-
bundle exec rake
|
29
|
-
env:
|
30
|
-
CI: true
|
data/.github/workflows/gem.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
name: Release Version
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
tags:
|
6
|
-
- "v*"
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
release_version:
|
10
|
-
runs-on: ubuntu-latest
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@v2
|
13
|
-
- uses: lsegal/github-release-from-changelog-action@latest
|
14
|
-
env:
|
15
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
16
|
-
- name: Publish RubyGem
|
17
|
-
uses: dawidd6/action-publish-gem@v1
|
18
|
-
with:
|
19
|
-
api_key: ${{secrets.RUBYGEMS_API_KEY}}
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
#inherit_from:
|
2
|
-
# - .rubocop_todo.yml
|
3
|
-
|
4
|
-
Metrics:
|
5
|
-
Enabled: false
|
6
|
-
Layout/LineLength:
|
7
|
-
AutoCorrect: true
|
8
|
-
Max: 100
|
9
|
-
Style/Semicolon:
|
10
|
-
AllowAsExpressionSeparator: true
|
11
|
-
Style/Documentation:
|
12
|
-
Enabled: false
|
13
|
-
Style/ClassVars:
|
14
|
-
Enabled: false
|
15
|
-
Style/HashSyntax:
|
16
|
-
EnforcedStyle: hash_rockets
|
17
|
-
Layout/SpaceInsideHashLiteralBraces:
|
18
|
-
EnforcedStyle: no_space
|
19
|
-
Layout/SpaceInsideBlockBraces:
|
20
|
-
SpaceBeforeBlockParameters: false
|
21
|
-
Style/NumericPredicate: # ruby 1.8/1.9 do not have positive?/negative?
|
22
|
-
EnforcedStyle: comparison
|
23
|
-
Layout/MultilineMethodCallIndentation:
|
24
|
-
EnforcedStyle: indented
|
25
|
-
Layout/DotPosition:
|
26
|
-
EnforcedStyle: trailing
|
27
|
-
Style/FormatString:
|
28
|
-
EnforcedStyle: percent
|
29
|
-
Layout/FirstArrayElementIndentation:
|
30
|
-
EnforcedStyle: consistent
|
31
|
-
Layout/FirstHashElementIndentation:
|
32
|
-
EnforcedStyle: consistent
|
33
|
-
|
34
|
-
# Disable these until we know what to do with them
|
35
|
-
Style/SafeNavigation:
|
36
|
-
Enabled: false # not supported in 1.8...2.1
|
37
|
-
Style/GuardClause: # does not provide much value
|
38
|
-
Enabled: false
|
39
|
-
Naming/VariableNumber:
|
40
|
-
Enabled: false
|
41
|
-
Naming/AccessorMethodName: # this creates breaking changes in the API
|
42
|
-
Enabled: false
|
43
|
-
Naming/PredicateName: # this creates breaking changes in the API
|
44
|
-
Enabled: false
|
45
|
-
Style/MethodMissingSuper: # this doesn't exist in 1.8/1.9
|
46
|
-
Enabled: false
|
47
|
-
Style/MissingRespondToMissing: # this doesn't exist in 1.8/1.9
|
48
|
-
Enabled: false
|
49
|
-
Style/Lambda: # not supported in 1.8
|
50
|
-
Enabled: false
|
51
|
-
Style/EachWithObject: # not supported in 1.8
|
52
|
-
Enabled: false
|
53
|
-
Layout/ParameterAlignment: # does not work correctly with subsequent block
|
54
|
-
Enabled: false
|
55
|
-
Layout/ArrayAlignment: # does not support indentation
|
56
|
-
Enabled: false
|
57
|
-
Layout/HashAlignment: # does not support indentation
|
58
|
-
Enabled: false
|
59
|
-
Style/MultilineTernaryOperator:
|
60
|
-
Enabled: false
|
61
|
-
Style/ClassAndModuleChildren:
|
62
|
-
Enabled: false
|
63
|
-
Layout/EmptyLineBetweenDefs:
|
64
|
-
AllowAdjacentOneLineDefs: true
|
65
|
-
Style/SingleLineMethods:
|
66
|
-
Enabled: false
|
67
|
-
Style/SingleLineBlockParams:
|
68
|
-
Enabled: false
|
69
|
-
Style/NestedTernaryOperator:
|
70
|
-
Enabled: false
|
71
|
-
Style/MutableConstant:
|
72
|
-
Enabled: false
|
73
|
-
Style/WhenThen:
|
74
|
-
Enabled: false
|
75
|
-
Style/StringLiterals:
|
76
|
-
Enabled: false
|
77
|
-
Style/StringLiteralsInInterpolation:
|
78
|
-
Enabled: false
|
79
|
-
Style/PerlBackrefs:
|
80
|
-
Enabled: false
|
81
|
-
Style/BlockComments:
|
82
|
-
Exclude:
|
83
|
-
- benchmarks/*.rb
|
84
|
-
Style/CaseEquality:
|
85
|
-
Enabled: false
|
86
|
-
Style/WordArray:
|
87
|
-
Enabled: false
|
88
|
-
Style/GlobalVars:
|
89
|
-
Exclude:
|
90
|
-
- benchmarks/**/*.rb
|
91
|
-
- spec/**/*.rb
|
92
|
-
Lint/RedundantSplatExpansion:
|
93
|
-
Enabled: false
|
94
|
-
Security/Eval:
|
95
|
-
Exclude:
|
96
|
-
- benchmarks/**/*.rb
|
97
|
-
- spec/**/*.rb
|
98
|
-
|
99
|
-
Layout/SpaceAroundMethodCallOperator:
|
100
|
-
Enabled: false
|
101
|
-
Lint/RaiseException:
|
102
|
-
Enabled: false
|
103
|
-
Lint/StructNewOverride:
|
104
|
-
Enabled: false
|
105
|
-
Style/ExponentialNotation:
|
106
|
-
Enabled: false
|
107
|
-
Style/HashEachMethods:
|
108
|
-
Enabled: false
|
109
|
-
Style/HashTransformKeys:
|
110
|
-
Enabled: false
|
111
|
-
Style/HashTransformValues:
|
112
|
-
Enabled: false
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
This document provides community guidelines for a safe, respectful, productive,
|
2
|
-
and collaborative place for any person who is willing to contribute to the YARD
|
3
|
-
project. It applies to all “collaborative space”, which is defined as community
|
4
|
-
communications channels (such as mailing lists, submitted patches, commit
|
5
|
-
comments, etc.).
|
6
|
-
|
7
|
-
* Participants will be tolerant of opposing views.
|
8
|
-
|
9
|
-
* Participants must ensure that their language and actions are free of personal
|
10
|
-
attacks and disparaging personal remarks.
|
11
|
-
|
12
|
-
* When interpreting the words and actions of others, participants should always
|
13
|
-
assume good intentions.
|
14
|
-
|
15
|
-
* Behaviour which can be reasonably considered harassment will not be tolerated.
|