yard 0.9.26 → 0.9.37
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +104 -8
- data/LEGAL +29 -1
- data/LICENSE +1 -1
- data/README.md +9 -2
- data/docs/Tags.md +1 -1
- data/docs/WhatsNew.md +2 -2
- data/lib/yard/autoload.rb +3 -1
- data/lib/yard/cli/command.rb +1 -1
- data/lib/yard/cli/stats.rb +4 -1
- data/lib/yard/cli/yardoc.rb +5 -3
- data/lib/yard/code_objects/base.rb +5 -1
- data/lib/yard/code_objects/macro_object.rb +0 -1
- data/lib/yard/config.rb +5 -1
- data/lib/yard/docstring_parser.rb +1 -2
- data/lib/yard/handlers/processor.rb +0 -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/method_handler.rb +2 -2
- data/lib/yard/handlers/ruby/mixin_handler.rb +15 -6
- data/lib/yard/handlers/ruby/module_function_handler.rb +15 -3
- data/lib/yard/handlers/ruby/visibility_handler.rb +13 -1
- 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/logging.rb +116 -61
- data/lib/yard/open_struct.rb +67 -0
- data/lib/yard/options.rb +1 -1
- data/lib/yard/parser/ruby/ast_node.rb +9 -2
- data/lib/yard/parser/ruby/legacy/ruby_lex.rb +19 -4
- data/lib/yard/parser/ruby/ruby_parser.rb +9 -3
- data/lib/yard/parser/source_parser.rb +4 -5
- 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 +9 -9
- 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/default_factory.rb +1 -0
- data/lib/yard/tags/directives.rb +10 -2
- data/lib/yard/tags/tag.rb +3 -2
- data/lib/yard/tags/types_explainer.rb +1 -1
- data/lib/yard/templates/engine.rb +0 -1
- data/lib/yard/templates/helpers/html_helper.rb +5 -2
- data/lib/yard/templates/helpers/markup_helper.rb +2 -1
- data/lib/yard/templates/helpers/method_helper.rb +3 -1
- data/lib/yard/templates/template.rb +3 -1
- data/lib/yard/templates/template_options.rb +0 -1
- data/lib/yard/version.rb +1 -1
- data/lib/yard.rb +6 -0
- data/po/ja.po +19 -19
- data/templates/default/fulldoc/html/css/full_list.css +3 -3
- data/templates/default/fulldoc/html/css/style.css +6 -0
- data/templates/default/fulldoc/html/frames.erb +9 -4
- data/templates/default/fulldoc/html/full_list.erb +5 -2
- data/templates/default/fulldoc/html/js/app.js +294 -264
- data/templates/default/fulldoc/html/js/full_list.js +30 -4
- data/templates/default/fulldoc/html/setup.rb +10 -2
- data/templates/default/layout/html/footer.erb +1 -1
- data/templates/default/onefile/html/headers.erb +2 -0
- data/templates/default/tags/html/example.erb +2 -2
- data/templates/default/tags/html/option.erb +1 -1
- metadata +5 -41
- 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 -42
- data/.github/workflows/gem.yml +0 -27
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.rubocop.yml +0 -112
- data/.travis.yml +0 -49
- data/CODE_OF_CONDUCT.md +0 -15
- data/CONTRIBUTING.md +0 -140
- data/Dockerfile.samus +0 -28
- data/Gemfile +0 -33
- data/Rakefile +0 -39
- 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/update_error_map.rake +0 -53
- data/yard.gemspec +0 -23
@@ -62,8 +62,25 @@ function enableToggles() {
|
|
62
62
|
evt.stopPropagation();
|
63
63
|
evt.preventDefault();
|
64
64
|
$(this).parent().parent().toggleClass('collapsed');
|
65
|
+
$(this).attr('aria-expanded', function (i, attr) {
|
66
|
+
return attr == 'true' ? 'false' : 'true'
|
67
|
+
});
|
65
68
|
highlight();
|
66
69
|
});
|
70
|
+
|
71
|
+
// navigation of nested classes using keyboard
|
72
|
+
$('#full_list a.toggle').on('keypress',function(evt) {
|
73
|
+
// enter key is pressed
|
74
|
+
if (evt.which == 13) {
|
75
|
+
evt.stopPropagation();
|
76
|
+
evt.preventDefault();
|
77
|
+
$(this).parent().parent().toggleClass('collapsed');
|
78
|
+
$(this).attr('aria-expanded', function (i, attr) {
|
79
|
+
return attr == 'true' ? 'false' : 'true'
|
80
|
+
});
|
81
|
+
highlight();
|
82
|
+
}
|
83
|
+
});
|
67
84
|
}
|
68
85
|
|
69
86
|
function populateSearchCache() {
|
@@ -91,7 +108,7 @@ function enableSearch() {
|
|
91
108
|
}
|
92
109
|
});
|
93
110
|
|
94
|
-
$('#full_list').after("<div id='noresults' style='display:none'></div>");
|
111
|
+
$('#full_list').after("<div id='noresults' role='status' style='display: none'></div>");
|
95
112
|
}
|
96
113
|
|
97
114
|
function ignoredKeyPress(event) {
|
@@ -154,11 +171,14 @@ function partialSearch(searchString, offset) {
|
|
154
171
|
function searchDone() {
|
155
172
|
searchTimeout = null;
|
156
173
|
highlight();
|
157
|
-
|
158
|
-
|
174
|
+
var found = $('#full_list li:visible').size();
|
175
|
+
if (found === 0) {
|
176
|
+
$('#noresults').text('No results were found.');
|
159
177
|
} else {
|
160
|
-
|
178
|
+
// This is read out to screen readers
|
179
|
+
$('#noresults').text('There are ' + found + ' results.');
|
161
180
|
}
|
181
|
+
$('#noresults').show();
|
162
182
|
$('#content').removeClass('insearch');
|
163
183
|
}
|
164
184
|
|
@@ -188,6 +208,12 @@ function expandTo(path) {
|
|
188
208
|
$target.addClass('clicked');
|
189
209
|
$target.removeClass('collapsed');
|
190
210
|
$target.parentsUntil('#full_list', 'li').removeClass('collapsed');
|
211
|
+
|
212
|
+
$target.find('a.toggle').attr('aria-expanded', 'true')
|
213
|
+
$target.parentsUntil('#full_list', 'li').each(function(i, el) {
|
214
|
+
$(el).find('> div > a.toggle').attr('aria-expanded', 'true');
|
215
|
+
});
|
216
|
+
|
191
217
|
if($target[0]) {
|
192
218
|
window.scrollTo(window.scrollX, $target.offset().top - 250);
|
193
219
|
highlight();
|
@@ -104,6 +104,12 @@ def javascripts_full_list
|
|
104
104
|
%w(js/jquery.js js/full_list.js)
|
105
105
|
end
|
106
106
|
|
107
|
+
# Sets the HTML language lang="value" where value is the value returned from
|
108
|
+
# this method. Defaults to nil which does not set the lang attribute.
|
109
|
+
def html_lang
|
110
|
+
nil
|
111
|
+
end
|
112
|
+
|
107
113
|
def menu_lists
|
108
114
|
Object.new.extend(T('layout')).menu_lists
|
109
115
|
end
|
@@ -225,7 +231,8 @@ def class_list(root = Registry.root, tree = TreeContext.new)
|
|
225
231
|
has_children = run_verifier(child.children).any? {|o| o.is_a?(CodeObjects::NamespaceObject) }
|
226
232
|
out << "<li id='object_#{child.path}' class='#{tree.classes.join(' ')}'>"
|
227
233
|
out << "<div class='item' style='padding-left:#{tree.indent}'>"
|
228
|
-
|
234
|
+
accessible_props = "aria-label='#{name} child nodes' aria-expanded='false' aria-controls='object_#{child.path}'"
|
235
|
+
out << "<a tabindex='0' class='toggle' role='button' #{accessible_props}></a> " if has_children
|
229
236
|
out << linkify(child, name)
|
230
237
|
out << " < #{child.superclass.name}" if child.is_a?(CodeObjects::ClassObject) && child.superclass
|
231
238
|
out << "<small class='search_info'>"
|
@@ -233,7 +240,8 @@ def class_list(root = Registry.root, tree = TreeContext.new)
|
|
233
240
|
out << "</small>"
|
234
241
|
out << "</div>"
|
235
242
|
tree.nest do
|
236
|
-
|
243
|
+
labeled_by = "aria-labelledby='object_#{child.path}'"
|
244
|
+
out << "<div #{labeled_by}><ul>#{class_list(child, tree)}</ul></div>" if has_children
|
237
245
|
end
|
238
246
|
out << "</li>"
|
239
247
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="footer">
|
2
2
|
Generated on <%= Time.now.strftime("%c") %> by
|
3
|
-
<a href="
|
3
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
4
4
|
<%= YARD::VERSION %> (ruby-<%= RUBY_VERSION %>).
|
5
5
|
</div>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% if object.has_tag?(:example) %>
|
2
2
|
<div class="examples">
|
3
|
-
<
|
3
|
+
<h4 class="tag_title">Examples:</h4>
|
4
4
|
<% object.tags(:example).each do |tag| %>
|
5
5
|
<% unless tag.name.empty? %>
|
6
|
-
<
|
6
|
+
<h5 class="example_title"><%= htmlify_line(tag.name) %></h5>
|
7
7
|
<% end %>
|
8
8
|
<pre class="example code"><code><%= html_syntax_highlight(tag.text) %></code></pre>
|
9
9
|
<% end %>
|
@@ -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,14 +1,14 @@
|
|
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.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
YARD is a documentation generation tool for the Ruby programming language.
|
@@ -23,47 +23,13 @@ executables:
|
|
23
23
|
extensions: []
|
24
24
|
extra_rdoc_files: []
|
25
25
|
files:
|
26
|
-
- ".dockerignore"
|
27
|
-
- ".gitattributes"
|
28
|
-
- ".github/FUNDING.yml"
|
29
|
-
- ".github/ISSUE_TEMPLATE.md"
|
30
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
31
|
-
- ".github/workflows/ci.yml"
|
32
|
-
- ".github/workflows/gem.yml"
|
33
|
-
- ".gitignore"
|
34
|
-
- ".rspec"
|
35
|
-
- ".rubocop.yml"
|
36
|
-
- ".travis.yml"
|
37
26
|
- ".yardopts"
|
38
27
|
- ".yardopts_guide"
|
39
28
|
- ".yardopts_i18n"
|
40
29
|
- CHANGELOG.md
|
41
|
-
- CODE_OF_CONDUCT.md
|
42
|
-
- CONTRIBUTING.md
|
43
|
-
- Dockerfile.samus
|
44
|
-
- Gemfile
|
45
30
|
- LEGAL
|
46
31
|
- LICENSE
|
47
32
|
- README.md
|
48
|
-
- Rakefile
|
49
|
-
- SECURITY.md
|
50
|
-
- benchmarks/builtins_vs_eval.rb
|
51
|
-
- benchmarks/concat_vs_join.rb
|
52
|
-
- benchmarks/erb_vs_erubis.rb
|
53
|
-
- benchmarks/format_args.rb
|
54
|
-
- benchmarks/generation.rb
|
55
|
-
- benchmarks/marshal_vs_dbm.rb
|
56
|
-
- benchmarks/parsing.rb
|
57
|
-
- benchmarks/pathname_vs_string.rb
|
58
|
-
- benchmarks/rdoc_vs_yardoc.rb
|
59
|
-
- benchmarks/registry_store_types.rb
|
60
|
-
- benchmarks/ri_vs_yri.rb
|
61
|
-
- benchmarks/ripper_parser.rb
|
62
|
-
- benchmarks/splat_vs_flatten.rb
|
63
|
-
- benchmarks/template_erb.rb
|
64
|
-
- benchmarks/template_format.rb
|
65
|
-
- benchmarks/template_profile.rb
|
66
|
-
- benchmarks/yri_cache.rb
|
67
33
|
- bin/yard
|
68
34
|
- bin/yardoc
|
69
35
|
- bin/yri
|
@@ -199,6 +165,7 @@ files:
|
|
199
165
|
- lib/yard/i18n/pot_generator.rb
|
200
166
|
- lib/yard/i18n/text.rb
|
201
167
|
- lib/yard/logging.rb
|
168
|
+
- lib/yard/open_struct.rb
|
202
169
|
- lib/yard/options.rb
|
203
170
|
- lib/yard/parser/base.rb
|
204
171
|
- lib/yard/parser/c/c_parser.rb
|
@@ -246,6 +213,7 @@ files:
|
|
246
213
|
- lib/yard/server/commands/static_file_helpers.rb
|
247
214
|
- lib/yard/server/doc_server_helper.rb
|
248
215
|
- lib/yard/server/doc_server_serializer.rb
|
216
|
+
- lib/yard/server/http_utils.rb
|
249
217
|
- lib/yard/server/library_version.rb
|
250
218
|
- lib/yard/server/rack_adapter.rb
|
251
219
|
- lib/yard/server/router.rb
|
@@ -298,8 +266,6 @@ files:
|
|
298
266
|
- lib/yard/verifier.rb
|
299
267
|
- lib/yard/version.rb
|
300
268
|
- po/ja.po
|
301
|
-
- samus.json
|
302
|
-
- tasks/update_error_map.rake
|
303
269
|
- templates/default/class/dot/setup.rb
|
304
270
|
- templates/default/class/dot/superklass.erb
|
305
271
|
- templates/default/class/html/constructor_details.erb
|
@@ -427,7 +393,6 @@ files:
|
|
427
393
|
- templates/guide/onefile/html/setup.rb
|
428
394
|
- templates/guide/onefile/html/toc.erb
|
429
395
|
- templates/guide/tags/html/setup.rb
|
430
|
-
- yard.gemspec
|
431
396
|
homepage: http://yardoc.org
|
432
397
|
licenses:
|
433
398
|
- MIT
|
@@ -448,8 +413,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
448
413
|
- !ruby/object:Gem::Version
|
449
414
|
version: '0'
|
450
415
|
requirements: []
|
451
|
-
|
452
|
-
rubygems_version: 2.7.6
|
416
|
+
rubygems_version: 3.3.5
|
453
417
|
signing_key:
|
454
418
|
specification_version: 4
|
455
419
|
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,42 +0,0 @@
|
|
1
|
-
name: Unit Tests
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
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: [macos-latest, windows-latest, ubuntu-latest]
|
12
|
-
ruby: ["2.4", "2.5", "2.6", "2.7"]
|
13
|
-
steps:
|
14
|
-
- name: Checkout
|
15
|
-
uses: actions/checkout@v2
|
16
|
-
- name: Select Ruby Version
|
17
|
-
uses: eregon/use-ruby-action@master
|
18
|
-
with:
|
19
|
-
ruby-version: ${{ matrix.ruby }}
|
20
|
-
base: update
|
21
|
-
- name: Update RubyGems & Bundler
|
22
|
-
run: gem update --system --no-document --conservative
|
23
|
-
- name: Install Dependencies
|
24
|
-
run: bundle install --jobs=3 --retry=3
|
25
|
-
- name: Run Test
|
26
|
-
run: |
|
27
|
-
ruby -v
|
28
|
-
bundle exec rake
|
29
|
-
env:
|
30
|
-
CI: true
|
31
|
-
build_ruby3:
|
32
|
-
name: "Ruby: 3.0 OS: Linux"
|
33
|
-
runs-on: ubuntu-latest
|
34
|
-
container: ruby:3.0-rc-alpine
|
35
|
-
steps:
|
36
|
-
- uses: actions/checkout@v2
|
37
|
-
- run: apk add -U build-base
|
38
|
-
- run: gem update --system --no-document --conservative
|
39
|
-
- run: bundle install --jobs=3 --retry=3
|
40
|
-
- run: ruby -v && bundle exec rake
|
41
|
-
env:
|
42
|
-
CI: true
|
data/.github/workflows/gem.yml
DELETED
@@ -1,27 +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@v1
|
13
|
-
- id: tag
|
14
|
-
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)
|
15
|
-
- run: ruby -e 'tag=ENV["GITHUB_REF"].sub("refs/tags/", "").sub("v", "v?");puts File.read("CHANGELOG.md")[/#\s+#{tag}[^\r\n]+\r?\n(.+?)(^#|\Z)/mi,1].strip' > extracted_changelog.md
|
16
|
-
- name: Create Release
|
17
|
-
uses: actions/create-release@v1
|
18
|
-
env:
|
19
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
20
|
-
with:
|
21
|
-
tag_name: ${{ steps.tag.outputs.TAG }}
|
22
|
-
release_name: Release ${{ steps.tag.outputs.TAG }}
|
23
|
-
body_path: extracted_changelog.md
|
24
|
-
- name: Publish RubyGem
|
25
|
-
uses: dawidd6/action-publish-gem@v1
|
26
|
-
with:
|
27
|
-
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/.travis.yml
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# Build for Ruby
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
# Enables caching for bundler
|
5
|
-
cache: bundler
|
6
|
-
|
7
|
-
# Specify which ruby versions you wish to run your tests on, each version will be used
|
8
|
-
rvm:
|
9
|
-
- "2.0"
|
10
|
-
- "2.1"
|
11
|
-
- "2.2"
|
12
|
-
- "2.3"
|
13
|
-
- "2.4"
|
14
|
-
- "2.5"
|
15
|
-
- "2.6"
|
16
|
-
- "2.7"
|
17
|
-
# - ruby-head
|
18
|
-
# - jruby
|
19
|
-
|
20
|
-
# Define how to run your tests (defaults to `bundle exec rake` or `rake` depending on whether you have a `Gemfile`)
|
21
|
-
script: "bundle exec rake"
|
22
|
-
|
23
|
-
# Define tasks to be completed before and after tests run . Will allow folding of content on frontend
|
24
|
-
#before_script:
|
25
|
-
# - command_1
|
26
|
-
# - command_2
|
27
|
-
#
|
28
|
-
#after_script:
|
29
|
-
# - command_1
|
30
|
-
# - command_2
|
31
|
-
|
32
|
-
# Specify an ENV variable to run before: 'bundle install' and 'rake' (or your defined 'script')
|
33
|
-
env:
|
34
|
-
- CI=1
|
35
|
-
|
36
|
-
# Specify the recipients for email notification
|
37
|
-
#notifications:
|
38
|
-
# recipients:
|
39
|
-
# - email-address-1
|
40
|
-
# - email-address-2
|
41
|
-
|
42
|
-
# Disable email notifications
|
43
|
-
#notifications:
|
44
|
-
# disabled: true
|
45
|
-
|
46
|
-
# notifications:
|
47
|
-
# webhooks:
|
48
|
-
# urls:
|
49
|
-
# - https://webhooks.gitter.im/e/c6dbb9323007dfcf81df
|
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.
|