Commit graph

311 commits

Author SHA1 Message Date
Hiroshi SHIBATA
900230837b
Fixed a typo 2023-01-10 13:07:36 +09:00
Nobuyoshi Nakada
1cd4db772c
Adjust spec of bundler like as sync_default_gems [ci skip] 2023-01-08 22:14:39 +09:00
Nobuyoshi Nakada
60ccd1ca81
Ignore LICENSE files of libraries vendored in rubygems [ci skip] 2023-01-08 20:58:12 +09:00
Hiroshi SHIBATA
5ec94ff740
Generate parser-text.rb of racc when sync it 2022-12-26 13:17:33 +09:00
Nobuyoshi Nakada
398aaed2f0
Fix the case trailer without newline
cf0b413ef8
2022-12-22 00:34:21 +09:00
Hiroshi SHIBATA
f2690be746
Removed temporary workaround for syntax_suggest tags 2022-12-16 15:48:00 +09:00
Hiroshi SHIBATA
20c34f10d7
Use versioning sort for released version detection 2022-12-14 15:46:19 +09:00
Hiroshi SHIBATA
03927b565b
Pin syntax_suggest-1.0.1 manually because it mixed dead_end tags 2022-12-14 12:57:30 +09:00
David Rodríguez
17559f0420 Don't leave backup file around
I suspect this was for debugging? If not, these days we have source
control tools, so this wouldn't seem necessary?
2022-12-13 07:01:52 +09:00
Hiroshi SHIBATA
2efaa80523
Don't sync jar artifact of CGI 2022-12-08 12:22:02 +09:00
Nobuyoshi Nakada
ee11090b28 sync_default_gems.rb: move default_branch to REPOSITORIES
`sync_default_gems_with_commits` also needs the default branch.
2022-11-28 20:55:09 +09:00
Nobuyoshi Nakada
6559ba3b5c sync_default_gems.rb: suppress a duplicated range warning 2022-11-28 20:55:09 +09:00
Nobuyoshi Nakada
d72f6749cb sync_default_gems.rb: adjust indent [ci skip] 2022-11-28 20:55:09 +09:00
Nobuyoshi Nakada
906a2f067d
sync_default_gems.rb: extend for singleton methods 2022-11-28 17:17:06 +09:00
Nobuyoshi Nakada
93e87c0217 Fix the case of multiple trailers 2022-11-28 16:30:40 +09:00
Nobuyoshi Nakada
5a171ee4c0 Add tests for sync_default_gems.rb 2022-11-28 16:30:40 +09:00
Takashi Kokubun
29bf5495a9 Do not use the same variable for multiple things
`conv` proc is used before and after the `url` variable is updated. So
this script didn't seem to behave correctly for the "Close #xxx" syntax.

Reusing the same variable name for different things seems prone to errors.
2022-11-25 21:45:28 -08:00
Takashi Kokubun
95647378ff Support other GitHub PR/issue syntaxes
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
2022-11-25 21:44:21 -08:00
Takashi Kokubun
1753cf59cc
Fix a broken interpolation #{head} 2022-11-20 21:23:28 -08:00
Nobuyoshi Nakada
230c7de252
sync_default_gems.rb: Fix substitution [ci skip]
As there should be no modified files just affter `git cherry-pick`
succeeded in `sync_default_gems_with_commits`, reset to the previous
revision once to pick up the committed files.
2022-11-20 18:51:41 +09:00
Nobuyoshi Nakada
7e3af23d1d
sync_default_gems.rb: fix a typo [ci skip] 2022-11-04 16:22:47 +09:00
Nobuyoshi Nakada
b6d7e98f25
sync_default_gems.rb: fix the position to insert the original URL
Since the regexp had expected an empty line before `Co-Authored-By:`
trailer lines, it failed to match when the body has the trailer only.
2022-11-04 15:43:29 +09:00
Nobuyoshi Nakada
570dee15a6
sync_default_gems.rb: accept log input from other than STDIN 2022-11-04 15:43:29 +09:00
Nobuyoshi Nakada
1de8a42869
sync_default_gems.rb: do not add extra empty lines [ci skip] 2022-10-28 19:04:53 +09:00
Nobuyoshi Nakada
e6e202234c
sync_default_gems.rb: append orignal commit URLs to subject only log 2022-10-28 13:15:14 +09:00
Nobuyoshi Nakada
d76284dfb7
sync_default_gems.rb: Ignore unmergeable files [ci skip] 2022-10-25 13:52:53 +09:00
Nobuyoshi Nakada
1654f88ca7
sync_default_gems.rb: commit all after replaced rdoc-ref [ci skip] 2022-10-19 09:11:11 +09:00
Nobuyoshi Nakada
e1ca90c2a4
sync_default_gems.rb: fold too long subject [ci skip]
Line with substituted issue references with URLs are often very long.
Although Git (and GitHub) recommends folding subject lines less than
50 columns, but many commits ignore this, so fold at 68 columns for
now.
2022-10-18 17:43:43 +09:00
Takashi Kokubun
134acf98d8
ruby/ruby-commit-hook has been renamed [ci skip]
to ruby/git.ruby-lang.org
2022-10-17 21:16:09 -07:00
Nobuyoshi Nakada
ab3b1b2381
sync_default_gems.rb: fix links to GitHub issues
- Substitute `GH-xxxx` which does not contain `#` too.
- Split each substitutions.
2022-10-18 11:37:12 +09:00
Nobuyoshi Nakada
b57ecc3eb8
sync_default_gems: Replace the URIs to be redirected
The reference generated by using RDoc without the proper `--page-dir`
option (or `.rdoc_options`) file may contain `/doc/`.  Since these
URIs are redirected by the server now, replace such URIs with the
corresponding rdoc-refs too.
2022-10-12 13:24:53 +09:00
Nobuyoshi Nakada
2b5d4fe28d
sync_default_gems: Add rdoc-ref command to test 2022-10-12 12:27:40 +09:00
Nobuyoshi Nakada
df588440ee
sync_default_gems: Replace the external URIs to docs with rdoc-ref 2022-10-12 12:27:40 +09:00
Nobuyoshi Nakada
c67e496886
sync_default_gems: Should match with the beginning of the strings
`git status -z` result is NUL-separated, and can contain newline
characters.
2022-10-12 12:27:40 +09:00
Nobuyoshi Nakada
c28a4e0340
Replace "Fixes"/"Fixed" in commit logs as well as vcs.rb [ci skip]
Use the same regexp to replace "(#NNNN)" and "GH-NNNN" style
references in vcs.rb, too.
2022-09-14 11:24:06 +09:00
Hiroshi SHIBATA
f3becd73e3
Ignore test libraries like assert_ractor from did_you_mean 2022-09-01 17:02:55 +09:00
Hiroshi SHIBATA
41a275c89a
Support main branch for syntax_suggest 2022-08-29 09:52:09 +09:00
Hiroshi SHIBATA
1cbee173be Sync examples and cli from syntax_suggest 2022-08-26 12:15:47 +09:00
Hiroshi SHIBATA
17d0e5bee7
syntax_suggest moved to under the ruby organization. 2022-08-19 13:20:20 +09:00
schneems
a50df1ab0e Setup SyntaxSuggest as default gem
Adds the `syntax_suggest` syntax error display tool to Ruby through the same mechanism as `error_highlight` and `did_you_mean`. Reference ticket: https://bugs.ruby-lang.org/issues/18159

close #4845

## What is syntax_suggest?

When a syntax error is raised by requiring a file, dead_end will use a combination of indentation and lexing to identify the problem.

> Note: Previously this tool was named `dead_end`. 

## Known issues

- SyntaxSearch's approach of showing syntax errors only works through integration with `require`, `load`, `autoload`, and `require_relative` (since it monkeypatches them to detect syntax errors). It does not work with direct Ruby file invocations https://github.com/zombocom/dead_end/issues/31.
  - This causes failure in the test suite (test_expected_backtrace_location_when_inheriting_from_basic_object_and_including_kernel) and confusion when inspecting backtraces if there's a different error when trying to require a file such as measuring memory (https://github.com/zombocom/syntax_suggest/issues/124#issuecomment-1006705016).
  - Discussed fix. We previously talked about opening up `SyntaxError` to be monkeypatched in the same way that other gems hook into `NoMethodError`. This is currently not possible and requires development work. When we last talked about it at RubyKaigi Nobu expressed an ability to make such a change.
2022-08-19 10:02:24 +09:00
Burdette Lamar
412da2c221
Sync new doc in Date (#6215) 2022-08-05 13:05:38 -05:00
Hiroshi SHIBATA
62849b3379 Keep gitignore for libyaml source with psych 2022-07-29 19:10:10 +09:00
Hiroshi SHIBATA
b404a5f106
8fa66467de is broken with rubygems/rubygems and flori/json.
Revert "Fix sync_default_gems.rb to use absolute path"

This reverts commit 8fa66467de.
2022-07-26 13:42:37 +09:00
Peter Zhu
8fa66467de Fix sync_default_gems.rb to use absolute path 2022-07-25 16:29:14 -04:00
Burdette Lamar
43c11f6c49
For rdoc, copy doc/rdoc to doc/ (#6181) 2022-07-25 14:58:41 -05:00
Nobuyoshi Nakada
a3ef0746ce
Extract pipe_readlines method which reads from the pipeline 2022-04-16 17:13:24 +09:00
Nobuyoshi Nakada
b09e96341e
Simplify the condition expression to ignore commits 2022-04-16 16:45:46 +09:00
Nobuyoshi Nakada
492185e39c
Do not import any files under rakelib 2022-04-16 16:45:11 +09:00
Hiroshi SHIBATA
0024a76ea0
Ignore pre-release for sync target on sync_default_gems 2022-03-10 13:35:21 +09:00
Hiroshi SHIBATA
1adc7aa630
Added release option to sync only released version of the default gems 2022-03-08 21:08:46 +09:00