Граф коммитов

275 Коммитов

Автор SHA1 Сообщение Дата
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
David Rodríguez 517d7c3221 Sync latest Bundler & RubyGems 2022-02-01 08:09:23 +09:00
Nobuyoshi Nakada 083cf6a577
sync_default_gems.rb: Expand GH-xxxx style GitHub links [ci skip] 2021-12-24 14:34:14 +09:00
Nobuyoshi Nakada 097c4a2adf
sync_default_gems.rb: GitHub links at word boundary only [ci skip] 2021-12-24 14:27:03 +09:00
Hiroshi SHIBATA b06e37e242
Followed up f5d80c26d4 for sync_default_gems.rb 2021-12-09 19:33:47 +09:00
Nobuyoshi Nakada e563c6068e
sync_default_gems.rb: convert commit hashes to github URLs [ci skip] 2021-12-06 14:18:01 +09:00
Nobuyoshi Nakada 6586783508
Move win32ole.gemspec to the proper place 2021-11-26 11:32:38 +09:00
Nobuyoshi Nakada c8da3b95e7
Add win32ole to sync_default_gems.rb 2021-11-25 23:53:15 +09:00
Hiroshi SHIBATA 84fdaaab46
Ignore LUCENSE files of standard libraries for sync target 2021-11-16 20:11:34 +09:00
Hiroshi SHIBATA cc3afdb165
Added LICENSE entry of vendored net-http-persistent to LEGAL 2021-11-16 20:07:30 +09:00
Hiroshi SHIBATA ef11414b1f
Added LICENSE entry of vendored connection_pool to LEGAL 2021-11-16 20:05:07 +09:00
Hiroshi SHIBATA 9a76072873
Added LICENSE entry of vendored molinillo to LEGAL 2021-11-16 19:51:06 +09:00
Hiroshi SHIBATA 1ff7b9cac4
Added LICENSE entry of vendored thor to LEGAL 2021-11-16 19:48:32 +09:00
Hiroshi SHIBATA 018266ca38
Merge digest-3.0.3.pre3 and efd76821b8 2021-11-16 19:42:20 +09:00
Hiroshi SHIBATA 9e86a60306
Removed redundant digest namespace 2021-10-14 14:07:50 +09:00
Hiroshi SHIBATA 3265af2f9e
separate pure ruby location under the digest/* extensions 2021-10-14 13:31:45 +09:00
Hiroshi SHIBATA 13772caee2
Move pure ruby files under the ext/gemname/lib directory. 2021-10-14 13:23:45 +09:00
Takashi Kokubun b5f0e20936
Add comments in sync_default_gems.rb
to ease the maintenance of ruby-commit-hook/bin/update-default-gem.sh
2021-10-10 23:49:15 -07:00
Takashi Kokubun 69cedee2a6
chmod +x tool/sync_default_gems.rb
I'm too lazy to start the command with `ruby`.
2021-10-10 23:38:51 -07:00
Hiroshi SHIBATA 83662f1d99
Removed needless rake and bundler files for rdoc 2021-09-28 16:13:45 +09:00
Nobuyoshi Nakada 41867532ac
No commits to pick is success [ci skip] 2021-08-31 19:07:08 +09:00
Nobuyoshi Nakada defdfa020a
Exit with the syncing status [ci skip] 2021-08-31 19:00:17 +09:00
aycabta 2d93b523e1 Add irb section to tool/sync_default_gems.rb 2021-08-30 03:00:02 +09:00
Hiroshi SHIBATA 384c0f57aa
Added bundle install before bundle exec on rdoc sync 2021-08-25 15:02:29 +09:00
Hiroshi SHIBATA d140b03053
Added ruby/un entry 2021-08-24 18:02:44 +09:00
aycabta ef6dd407c8 Import Gemfile and Rakefile of rdoc by tool/sync_default_gems.rb 2021-08-10 02:36:00 +09:00
Hiroshi SHIBATA 0dcae3bd4a
Support document sync for optparse 2021-07-28 20:13:39 +09:00
Nobuyoshi Nakada 4c039a2ea0
tool/sync_default_gems.rb: remove CRs 2021-07-13 19:36:52 +09:00
Nobuyoshi Nakada f9c559a0a2
sync_default_gems.rb: expand links to PRs of the upstream 2021-07-13 19:05:50 +09:00
Yusuke Endoh 3391682eda tool/sync_default_gems.rb: remove unneeded code for error_highlight sync 2021-06-30 11:39:39 +09:00
Yusuke Endoh 393f84da4a tool/sync_default_gems.rb: Add error_highlight gem 2021-06-30 10:56:59 +09:00
David Rodríguez 3954799071 Tweak skipped files in bundler gemspec
We won't be using the `extra_rdoc_files` field, because it's very slow
for markdown files.
2021-05-31 21:26:24 +09:00
Hiroshi SHIBATA 029169bc5b
Fixed target directory when copying from upstream 2021-05-27 17:15:58 +09:00
Hiroshi SHIBATA c1c60a4498
Removed dbm from sync_default_gems 2021-05-27 17:14:31 +09:00
Hiroshi SHIBATA be2e2b4805 Promote net-smtp to the bundled gems 2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA aa9726f7b9 Promote net-pop to the bundled gems 2021-05-27 14:42:11 +09:00
Hiroshi SHIBATA d5bc6b2337 Promote net-imap to the bundled gems 2021-05-27 14:42:11 +09:00