Hiroshi SHIBATA
149373ce7f
racc is extracted at Ruby 3.3, not 3.4
2024-01-09 17:14:55 +09:00
Nobuyoshi Nakada
46085ef970
[DOC] No ducuments for internal library
2023-12-19 10:20:40 +09:00
Samuel Giddins
83bdf127b8
Avoid warning when requiring bigdecimal/util when bigdecimal is in gemfile
2023-12-16 17:34:45 +09:00
Hiroshi SHIBATA
c3ae4b6ae1
Revert "[Bug #20060 ] Properly return matched gem name in case of EXACT"
...
This reverts commit 75c40802cb
.
This change is now working correctly with warning cases.
2023-12-15 14:06:53 +08:00
David Rodríguez
8e37cd8a8b
Fix gem detection for names with dash
2023-12-15 14:04:36 +08:00
Hiroshi SHIBATA
5a0cbc9344
Detect bootsnap from all frames
2023-12-14 07:48:08 +09:00
Hiroshi SHIBATA
8b0c626962
Skip warning feature with Bootsnap
...
Bootsnap modified full feature path to require. We can't handle it for
warning correctly.
2023-12-14 07:48:08 +09:00
Akira Matsuda
75c40802cb
[Bug #20060 ] Properly return matched gem name in case of EXACT
...
this follows up 4e6861d337
2023-12-14 07:47:56 +09:00
Hiroshi SHIBATA
a7ad9f3836
We need only one line for detecting caller gem name
2023-12-13 17:30:48 +09:00
Hiroshi SHIBATA
cc9826503d
Revert "Skip to warn like 'bigdecimal/util' feature."
...
This reverts commit 8f6cf72e66
.
2023-12-08 20:25:04 +09:00
Hiroshi SHIBATA
8f6cf72e66
Skip to warn like 'bigdecimal/util' feature.
2023-12-08 15:57:08 +09:00
David Rodríguez
64e985333f
Improve bundled gems warnings for subfeatures
...
Before, when requiring "bigdecimal/math" in a Bundler context:
> /Users/deivid/.asdf/installs/ruby/3.3.0-dev/lib/ruby/3.3.0+0/bigdecimal/math.rb:2: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec.
After:
> foo.rb:1: warning: bigdecimal/math is found in bigdecimal, which will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec.
2023-12-08 15:55:15 +09:00
David Rodríguez
a530dfef2b
Improve bundled gem warnings
...
Before, when requiring "bigdecimal" in a Bundler context:
> foo.rb:1: warning: bigdecimal which will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec.
After:
> foo.rb:1: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec.
2023-12-08 15:55:15 +09:00
David Rodríguez
d61af5c49a
The SINCE and WARNED hashes take gem names, not features
2023-12-08 15:55:15 +09:00
Hiroshi SHIBATA
214f6d6598
Move replace_require into bundled_gems.rb
2023-12-07 11:37:08 +09:00
Hiroshi SHIBATA
c65bb5a0f8
Warn bundled gems before Ruby 3.4.0
2023-11-16 18:14:48 +09:00
Hiroshi SHIBATA
42f368ead5
Surpressing additional message if it missed to detect gem name
2023-11-02 15:48:34 +09:00
Hiroshi SHIBATA
e10f7c9d5b
Fix to detect gem name logic. It's mistake to migrate bundled_gems.rb from rubygems_integration.rb
...
https://github.com/ioquatix/bake/pull/15#issuecomment-1777985097
2023-11-02 15:48:34 +09:00
Hiroshi SHIBATA
e34e8b93f8
Support Pathname object for warning feature of bundled gems
2023-11-02 13:32:53 +09:00
Hiroshi SHIBATA
1640dbdedd
Sort gem names
2023-10-20 09:13:55 +09:00
Hiroshi SHIBATA
2a56a6c3af
racc is also extracted to bundled gems
2023-10-20 09:13:55 +09:00
Hiroshi SHIBATA
ac8ece81f2
Tweak the grammar
2023-10-18 14:51:48 +09:00
Hiroshi SHIBATA
46766e922b
normalize gem name without .so or .bundle
2023-10-18 14:51:48 +09:00
Hiroshi SHIBATA
3b690b726d
reject bundled gems if they are declared in Gemfile
2023-10-18 14:51:48 +09:00
Hiroshi SHIBATA
35edc14ee1
Ignore duplicated warning with native extension
2023-10-13 16:22:09 +09:00
Hiroshi SHIBATA
c6728caeb7
Fix wrong gem name
2023-10-13 16:22:09 +09:00
Hiroshi SHIBATA
fe5329f032
Ignore warning on LoadError when running under Bundler
2023-10-13 16:22:09 +09:00
Hiroshi SHIBATA
62eea99a1c
Added recovery instructions for RubyGems
2023-10-13 16:22:09 +09:00
Hiroshi SHIBATA
fdf0589a95
Surpressing double warnings
2023-10-13 16:22:09 +09:00
Hiroshi SHIBATA
b49346ee73
Warn only LoadError without Bundler environment
2023-10-13 16:22:09 +09:00
Hiroshi SHIBATA
57c2ae206f
Move additional warnings for Gem author under Gem::BUNDLED_GEMS.
2023-10-13 16:22:09 +09:00
Hiroshi SHIBATA
ea05ddbeff
Move path normalization into Gem from Bundler class
2023-10-13 16:22:09 +09:00
Nobuyoshi Nakada
7d32011399
[Bug #19852 ] Use gem name without suffix
2023-08-26 02:47:04 +09:00
Hiroshi SHIBATA
70272ca65c
Warn for bigdecimal.so case too
2023-08-25 13:11:06 +09:00
Hiroshi SHIBATA
3a70afad32
prime is bundled gems since Ruby 3.1.0. We should warn it under the bundler environment
2023-08-25 12:56:47 +09:00
Hiroshi SHIBATA
28b2cb10d5
We should also warn when loading 'bigdecimal/*' libraries
2023-08-25 12:52:10 +09:00
Hiroshi SHIBATA
bdd535eac6
Decorate Hash syntax for Gem::BUNDLED_GEMS::EXACT
2023-08-25 12:52:10 +09:00
Hiroshi SHIBATA
1c93288f8b
Added bigdecimal to warning targets for the bundled gems.
...
[Bug #19843 ]
2023-08-22 14:35:25 +09:00
Nobuyoshi Nakada
4e6861d337
Fix Gem::BUNDLED_GEMS.find_gem
return value
...
If the required name is different from the found gem name, return the
gem name, instead of true that means the required name is an exact gem
name.
2023-08-05 18:56:37 +09:00
Hiroshi SHIBATA
ede3c5ee0f
Use future tense if current version is older than list version
2023-08-04 21:12:09 +09:00
Hiroshi SHIBATA
2deeb0e0bf
Removed unnecessary methods
2023-07-28 14:57:10 +09:00
Nobuyoshi Nakada
989f3add62
Warn default gems which will be gemified in future
2023-07-28 14:57:10 +09:00
Hiroshi SHIBATA
6500f85927
Added Gem::BUNDLED_GEMS for warning feature of Bundler
2023-07-26 08:51:57 +09:00