Skip to content

Commit 55d663f

Browse files
committed
Move bootsnap to the Rails org
Bootsnap is an important dependency of Rails, and now it is time to make it official and graduate from Shopify.
1 parent 03629f6 commit 55d663f

File tree

12 files changed

+30
-124
lines changed

12 files changed

+30
-124
lines changed

.github/workflows/cla.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
* Get rid of the `Kernel.require_relative` decorator by resolving `$LOAD_PATH` members to their real path.
107107
This way we handle symlinks in `$LOAD_PATH` much more efficiently. See #402 for the detailed explanation.
108-
108+
109109
* Drop support for Ruby 2.3 (to allow getting rid of the `Kernel.require_relative` decorator).
110110

111111
# 1.10.3
@@ -231,7 +231,7 @@
231231
* Adds an instrumentation API to monitor cache misses.
232232
* Allow to control the behavior of `require 'bootsnap/setup'` using environment variables.
233233
* Deprecate the `disable_trace` option.
234-
* Deprecate the `ActiveSupport::Dependencies` (AKA Classic autoloader) integration. (#344)
234+
* Deprecate the `ActiveSupport::Dependencies` (AKA Classic autoloader) integration. (#344)
235235

236236
# 1.6.0
237237

@@ -251,12 +251,12 @@
251251

252252
# 1.4.9
253253

254-
* [Windows support](https://github.com/Shopify/bootsnap/pull/319)
255-
* [Fix potential crash](https://github.com/Shopify/bootsnap/pull/322)
254+
* [Windows support](https://github.com/rails/bootsnap/pull/319)
255+
* [Fix potential crash](https://github.com/rails/bootsnap/pull/322)
256256

257257
# 1.4.8
258258

259-
* [Prevent FallbackScan from polluting exception cause](https://github.com/Shopify/bootsnap/pull/314)
259+
* [Prevent FallbackScan from polluting exception cause](https://github.com/rails/bootsnap/pull/314)
260260

261261
# 1.4.7
262262

@@ -269,7 +269,7 @@
269269
required if a different file with the same name was already being required
270270

271271
Example:
272-
272+
273273
require 'foo'
274274
require 'foo.en'
275275

@@ -323,7 +323,7 @@
323323

324324
# 1.3.0
325325

326-
* Handle cases where load path entries are symlinked (https://github.com/Shopify/bootsnap/pull/136)
326+
* Handle cases where load path entries are symlinked (https://github.com/rails/bootsnap/pull/136)
327327

328328
# 1.2.1
329329

CODE_OF_CONDUCT.md

Lines changed: 6 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,11 @@
1-
# Contributor Covenant Code of Conduct
1+
# Contributor Code of Conduct
22

3-
## Our Pledge
3+
The Rails team is committed to fostering a welcoming community.
44

5-
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
7-
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, gender identity and expression, level of experience,
9-
nationality, personal appearance, race, religion, or sexual identity and
10-
orientation.
5+
**Our Code of Conduct can be found here**:
116

12-
## Our Standards
7+
https://rubyonrails.org/conduct
138

14-
Examples of behavior that contributes to creating a positive environment
15-
include:
9+
For a history of updates, see the page history here:
1610

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
22-
23-
Examples of unacceptable behavior by participants include:
24-
25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
33-
34-
## Our Responsibilities
35-
36-
Project maintainers are responsible for clarifying the standards of acceptable
37-
behavior and are expected to take appropriate and fair corrective action in
38-
response to any instances of unacceptable behavior.
39-
40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
42-
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
45-
46-
## Scope
47-
48-
This Code of Conduct applies both within project spaces and in public spaces
49-
when an individual is representing the project or its community. Examples of
50-
representing a project or community include using an official project e-mail
51-
address, posting via an official social media account, or acting as an appointed
52-
representative at an online or offline event. Representation of a project may be
53-
further defined and clarified by project maintainers.
54-
55-
## Enforcement
56-
57-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
63-
64-
Project maintainers who do not follow or enforce the Code of Conduct in good
65-
faith may face temporary or permanent repercussions as determined by other
66-
members of the project's leadership.
67-
68-
## Attribution
69-
70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at [http://contributor-covenant.org/version/1/4][version]
72-
73-
[homepage]: http://contributor-covenant.org
74-
[version]: http://contributor-covenant.org/version/1/4/
11+
https://github.com/rails/website/commits/main/_pages/conduct.html

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you're stuck, ask questions!
1414

1515
## How to contribute
1616

17-
1. Fork it ( https://github.com/Shopify/bootsnap/fork )
17+
1. Fork it ( https://github.com/rails/bootsnap/fork )
1818
2. Create your feature branch (`git checkout -b my-new-feature`)
1919
3. Commit your changes (`git commit -am 'Add some feature'`)
2020
4. Push to the branch (`git push origin my-new-feature`)
@@ -32,4 +32,4 @@ If you're stuck, ask questions!
3232

3333
> ridk enable
3434
> bundle install
35-
> bundle exec rake
35+
> bundle exec rake

LICENSE.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017-present Shopify, Inc.
3+
Copyright (c) 2017-2025 Shopify, Inc.
4+
Copyright (c) 2025-present Rails Foundation
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bootsnap [![Actions Status](https://github.com/Shopify/bootsnap/workflows/ci/badge.svg)](https://github.com/Shopify/bootsnap/actions)
1+
# Bootsnap [![Actions Status](https://github.com/rails/bootsnap/workflows/ci/badge.svg)](https://github.com/rails/bootsnap/actions)
22

33
Bootsnap is a library that plugs into Ruby, with optional support for `YAML` and `JSON`,
44
to optimize and cache expensive computations. See [How Does This Work](#how-does-this-work).
@@ -41,7 +41,7 @@ getting progressively slower, this is almost certainly the cause.**
4141
It's technically possible to simply specify `gem 'bootsnap', require: 'bootsnap/setup'`, but it's
4242
important to load Bootsnap as early as possible to get maximum performance improvement.
4343

44-
You can see how this require works [here](https://github.com/Shopify/bootsnap/blob/main/lib/bootsnap/setup.rb).
44+
You can see how this require works [here](https://github.com/rails/bootsnap/blob/main/lib/bootsnap/setup.rb).
4545

4646
If you are not using Rails, or if you are but want more control over things, add this to your
4747
application setup immediately after `require 'bundler/setup'` (i.e. as early as possible: the sooner
@@ -63,7 +63,7 @@ Bootsnap.setup(
6363
```
6464

6565
**Protip:** You can replace `require 'bootsnap'` with `BootLib::Require.from_gem('bootsnap',
66-
'bootsnap')` using [this trick](https://github.com/Shopify/bootsnap/wiki/Bootlib::Require). This
66+
'bootsnap')` using [this trick](https://github.com/rails/bootsnap/wiki/Bootlib::Require). This
6767
will help optimize boot time further if you have an extremely large `$LOAD_PATH`.
6868

6969
Note: Bootsnap and [Spring](https://github.com/rails/spring) are orthogonal tools. While Bootsnap
@@ -170,7 +170,7 @@ The only directories considered "stable" are things under the Ruby install prefi
170170
"volatile".
171171

172172
In addition to the [`Bootsnap::LoadPathCache::Cache`
173-
source](https://github.com/Shopify/bootsnap/blob/main/lib/bootsnap/load_path_cache/cache.rb),
173+
source](https://github.com/rails/bootsnap/blob/main/lib/bootsnap/load_path_cache/cache.rb),
174174
this diagram may help clarify how entry resolution works:
175175

176176
![How path searching works](https://cloud.githubusercontent.com/assets/3074765/25388270/670b5652-299b-11e7-87fb-975647f68981.png)
@@ -338,15 +338,15 @@ $ bundle exec bootsnap precompile --gemfile app/ lib/ config/
338338

339339
### QEMU environments
340340

341-
When building cross-platform Docker images, QEMU is often used for emulation and can be the source of a limitation that causes forked processes to hang. While Bootsnap includes automatic detection for this issue (as of [PR #501](https://github.com/Shopify/bootsnap/pull/501)), the detection may not always be sufficient.
341+
When building cross-platform Docker images, QEMU is often used for emulation and can be the source of a limitation that causes forked processes to hang. While Bootsnap includes automatic detection for this issue (as of [PR #501](https://github.com/rails/bootsnap/pull/501)), the detection may not always be sufficient.
342342

343343
If you encounter hangs during precompilation in QEMU-based environments (such as when using Docker buildx for cross-platform builds), you can work around this by disabling parallelization with the `-j 0` option:
344344

345345
```bash
346346
$ bundle exec bootsnap precompile -j 0 --gemfile app/ lib/ config/
347347
```
348348

349-
See [Issue #495](https://github.com/Shopify/bootsnap/issues/495) for more details about this QEMU-related issue.
349+
See [Issue #495](https://github.com/rails/bootsnap/issues/495) for more details about this QEMU-related issue.
350350

351351
## When not to use Bootsnap
352352

bootsnap.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ Gem::Specification.new do |spec|
1414

1515
spec.summary = "Boot large ruby/rails apps faster"
1616
spec.description = spec.summary
17-
spec.homepage = "https://github.com/Shopify/bootsnap"
17+
spec.homepage = "https://github.com/rails/bootsnap"
1818

1919
spec.metadata = {
20-
"bug_tracker_uri" => "https://github.com/Shopify/bootsnap/issues",
21-
"changelog_uri" => "https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md",
22-
"source_code_uri" => "https://github.com/Shopify/bootsnap",
20+
"bug_tracker_uri" => "https://github.com/rails/bootsnap/issues",
21+
"changelog_uri" => "https://github.com/rails/bootsnap/blob/main/CHANGELOG.md",
22+
"source_code_uri" => "https://github.com/rails/bootsnap",
2323
"allowed_push_host" => "https://rubygems.org",
2424
}
2525

dev.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

ext/bootsnap/bootsnap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#ifdef __APPLE__
2525
// The symbol is present, however not in the headers
26-
// See: https://github.com/Shopify/bootsnap/issues/470
26+
// See: https://github.com/rails/bootsnap/issues/470
2727
extern int fdatasync(int);
2828
#endif
2929

ext/bootsnap/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
append_cflags ["-O3", "-std=c99"]
1313

1414
# ruby.h has some -Wpedantic fails in some cases
15-
# (e.g. https://github.com/Shopify/bootsnap/issues/15)
15+
# (e.g. https://github.com/rails/bootsnap/issues/15)
1616
unless ["0", "", nil].include?(ENV["BOOTSNAP_PEDANTIC"])
1717
append_cflags([
1818
"-Wall",

0 commit comments

Comments
 (0)