1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

265 commits

Author SHA1 Message Date
Jean Boussier
8d05047d72 Add a Module#const_added callback
[Feature ]

Works similarly to `method_added` but for constants.

```ruby
Foo::BAR = 42 # call Foo.const_added(:FOO)
class Foo::Baz; end # call Foo.const_added(:Baz)
Foo.autoload(:Something, "path") # call Foo.const_added(:Something)
```
2022-01-14 11:30:07 +01:00
Nobuyoshi Nakada
abc4a46046
Get rid of building main again when test-bundled-gems 2022-01-14 14:54:29 +09:00
Nobuyoshi Nakada
071653ecd7
Run the prerequisites of test-bundled-gems in order 2022-01-02 02:04:05 +09:00
Nobuyoshi Nakada
4a6ca12904
Remove unversioned phony target for pkgconfig file [Bug ]
It results in a circular dependency when `--with-ruby-pc=ruby.pc`
is given.  [ci skip]
2021-12-04 16:20:30 +09:00
Nobuyoshi Nakada
a4964174e2
Fix circular dependencies specific to in-place build [Bug ]
* Move the rubyspec running recipe after the rule for rubyspec
  C-API extension library, so that separate dummy recipe is not
  needed.

* Add a dummy recipe for rubyspec.h before the rubyspec running
  recipe, so that the dependency of extensions do not fire the
  latter.
2021-12-04 10:40:15 +09:00
Nobuyoshi Nakada
a7d0c2c448
Needs to update revision.h unless existing [ci skip] 2021-12-02 12:28:49 +09:00
Nobuyoshi Nakada
179aa26f4f
Prune stale worktrees before checking out a new pull request [ci skip] 2021-10-28 13:14:31 +09:00
Nobuyoshi Nakada
be9cc6c758
Fix rubyspec_capiext dependency and flags
- The file needed to link may be the import library.
- Remove duplicate flags.
2021-08-30 12:03:44 +09:00
Nobuyoshi Nakada
9227989343
Use proper suffix 2021-08-30 00:18:16 +09:00
Yuta Saito
01be881f35 Use empty instead of NOOP in mk file to make it safer
This would avoid unintentional use of the `NOOP` environment variable

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-08-25 18:47:44 +09:00
Yuta Saito
d1f0d1ca2e Fix build failure on macOS with --enable-shared
./spec/ruby/optional/capi/ext/array_spec.c can match with spec/%/ if
using GNU Make under version 3.81. make command installed on macOS is
3.81, so ruby can't be built with default make on macOS with
  --enable-shared option since bda56a03a6
2021-08-25 18:47:44 +09:00
Kazuki Tsujimoto
4568ba0711
Show verbose error messages when single pattern match fails
[0] => [0, *, a]
    #=> [0] length mismatch (given 1, expected 2+) (NoMatchingPatternError)

Ignore test failures of typeprof caused by this change for now.
2021-08-15 09:38:24 +09:00
Nobuyoshi Nakada
2e49e4330d
Disable debug flag for executable files when LTO [ci skip]
Get rid of tons of linker warnings that it could not find object
file symbol for every symbols, when targeting darwin.
2021-08-14 23:22:04 +09:00
Nobuyoshi Nakada
e3dcb6204d
Run only directories or *_spec.rb files only by mspec [Bug ]
Not to match *.c files under spec/ruby/optional/capi/ext, in the
case of in-place build.
2021-08-10 14:22:44 +09:00
Nobuyoshi Nakada
6e60fc2945
Group commands on GitHub Actions 2021-08-07 18:32:24 +09:00
Nobuyoshi Nakada
d868c8f08f
Make jobserver available 2021-08-06 20:58:13 +09:00
Nobuyoshi Nakada
bda56a03a6
Build rubyspec CAPI extensions 2021-08-05 22:30:48 +09:00
Nobuyoshi Nakada
82191da2a2 Predefine recursive key ID 2021-07-27 15:40:27 +09:00
Nobuyoshi Nakada
0754cc4888 Added intern_ids.rb 2021-07-27 15:40:27 +09:00
Nobuyoshi Nakada
9edad0df74
Remove short options with argument [Bug ]
Remove GNU make `-O` and `-W` options which are short but followed
by an argument, so that `$mflags.set?(?n)` does not return `true`
wrongly.
2021-05-21 10:34:28 +09:00
Nobuyoshi Nakada
68a6f6c4ab
mac: ignore SDKROOT at installation 2021-04-10 11:57:45 +09:00
Nobuyoshi Nakada
44f038bd7f
gmake.mk: renamed BUNDLED_GEMS as bundled-gems
Hyphenated names are safe in GNU make.
2020-12-02 17:04:33 +09:00
Nobuyoshi Nakada
75d48a533d
rubyspec-capiext: Use plain DLDFLAGS without flags for libruby 2020-11-22 19:09:58 +09:00
Nobuyoshi Nakada
ece917bab3
Added rubyspec-capiext target
This target builds extensions for rubyspec optional C-API tests.
2020-11-21 23:17:48 +09:00
Nobuyoshi Nakada
a9ff390870
Fixed installation failure [Bug ]
Try update and extract bundled gems only when baseruby is
available.  It should be done only when installing from
developemental build and not from the tarball, but it is not
obvious to differentiate them.
2020-09-29 13:41:59 +09:00
Nobuyoshi Nakada
4ea57c2a39
Escape # for GNU make 3 2020-07-05 19:15:03 +09:00
Nobuyoshi Nakada
358f91bf6f
Skip comment and empty lines in gems/bundled_gems file 2020-07-05 18:59:06 +09:00
Nobuyoshi Nakada
6fdd5e26c6
Removed duplicate target
While `spec/bundler` and `spec/bundler/` are treated different
targets by GNU make 4, the same target by GNU make 3.  The latter
target, ending with a slash, was to run `test-bundler-parallel`,
instead of `spec/bundler/%`.
2020-06-25 18:21:41 +09:00
Nobuyoshi Nakada
96d184aa49
Run spec/bundler without a sub-make 2020-06-10 23:30:13 +09:00
Nobuyoshi Nakada
73ca989a81
spec/bundler must not be run by mspec 2020-06-10 21:56:36 +09:00
Nobuyoshi Nakada
964829495c
Removed + token from single test runner recipes [ci skip]
These test runners do not deal with `-n` make flag.
2020-06-09 18:52:31 +09:00
Nobuyoshi Nakada
d0b2332e93
Defaulted benchmark output to markdown with comarison 2020-06-08 09:25:22 +09:00
Nobuyoshi Nakada
e38a2ecffd
Run tests in more parallel 2020-06-06 00:35:45 +09:00
Nobuyoshi Nakada
cf1adf985a
Aligned test-bundler-parallel at the end of the test order 2020-06-05 21:54:39 +09:00
Nobuyoshi Nakada
3fa4fd4780
Pass MAKE value to configure for non-default name case
GNU make does not export it by default.
2020-05-11 00:18:06 +09:00
Nobuyoshi Nakada
21d0b40de2 Added tooldir variable 2020-04-05 09:26:57 +09:00
Nobuyoshi Nakada
0540df3ed7
Ensure the cache directory to be shared exists 2020-04-02 22:30:17 +09:00
Nobuyoshi Nakada
03ca90c732
Share download cache with bundler 2020-03-31 17:36:52 +09:00
Nobuyoshi Nakada
476ac00e49
Deal with bundled gems by BASERUBY
As the currently released/snapshot tarballs should contain the
bundled gems extracted already, RUNRUBY is not required when
building from them with GNU make.
2020-03-28 18:09:27 +09:00
Nobuyoshi Nakada
88f4ebac83
Update and extract for each gem 2020-03-13 15:34:50 +09:00
Nobuyoshi Nakada
46f4cfb162
update-gems should wait for update-bundled_gems 2020-03-13 00:27:19 +09:00
Nobuyoshi Nakada
289bdb64d9
Add prepare-gems to download and extract bundled gems 2020-03-12 22:58:04 +09:00
Nobuyoshi Nakada
23218d4ab2
config.status should be newer than config.cache if exists 2020-01-08 18:35:21 +09:00
Nobuyoshi Nakada
db16629008
Fixed misspellings
Fixed misspellings reported at [Bug ], only in ruby and rubyspec.
2019-12-20 09:32:42 +09:00
Nobuyoshi Nakada
aedbee52c0
Prefer $(CHDIR) for the case srcdir contains symlinks 2019-12-10 18:49:53 +09:00
Kazuhiro NISHIYAMA
271cb9acd2
Suppress git error message
`fatal: not a git repository (or any of the parent directories): .git`
2019-11-23 01:57:19 +09:00
Nobuyoshi Nakada
ffab1bfdfc
Fixed for old git 2019-11-21 15:17:34 +09:00
Nobuyoshi Nakada
97a5af62a3
Skip updating revision.h when the revision is unchanged
note: GNU make only.
2019-11-21 10:57:36 +09:00
Nobuyoshi Nakada
fb6a489af2
Revert "Method reference operator"
This reverts commit 67c5747369.
[Feature ]
2019-11-12 17:24:48 +09:00
Nobuyoshi Nakada
f1d4216bd9
Added refresh-gems
Refreshes bundled gems to the latest version, and extracts them.
2019-10-24 01:42:48 +09:00