bundlebun 0.4.0.1.3.10-aarch64-linux → 0.4.1.1.3.10-aarch64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +86 -148
- data/lib/bundlebun/runner.rb +16 -3
- data/lib/bundlebun/version.rb +1 -1
- data/lib/tasks/install.rake +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db70acaece97c93641cc36082ddf679909e69e1b2eb3965c19b5d9ec160445f8
|
|
4
|
+
data.tar.gz: 6a0946fbe5e68358032be2fcab29097f304aeb8d4d5ac3f683a01c08913d8791
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c559c1197f9293d8c167252228470e82ce85b80738fcb2fc7b4c6210e45a9ecedd53f4009e0c476a7f4a3f65d98b342cf78d52e75399a6d3451794c875a4ced
|
|
7
|
+
data.tar.gz: 66d977514ed3fbf8f55d1b9c697f2cd605f6e1784b5ee0558d63dee5f35d1ff690a0c1d2628274e283ac5da3225d453f133d43116dcb191726ef3b436f2dd060
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [0.4.1] - 2026-03-08
|
|
2
|
+
|
|
3
|
+
- Bun is now executed with argv-safe `exec` / `system` calls instead of flattening arguments into a single string to preserve values with spaces correctly.
|
|
4
|
+
- `rake bun:install:package` and `rake bun:install:procfile` no longer crash in non-interactive environments when stdin is closed.
|
|
5
|
+
|
|
1
6
|
## [0.4.0] - 2026-02-01
|
|
2
7
|
|
|
3
8
|
- `Bundlebun.system(args)` method: runs Bun as a subprocess and returns to Ruby. Returns `true` if Bun exited successfully. Use this when you need to continue executing Ruby code after Bun finishes.
|
data/README.md
CHANGED
|
@@ -1,13 +1,38 @@
|
|
|
1
1
|
# bundlebun
|
|
2
2
|
|
|
3
|
-
**bundlebun bundles [Bun](https://bun.sh)
|
|
3
|
+
**bundlebun** bundles [Bun](https://bun.sh)—the all-in-one JavaScript runtime, package manager, and build tool—directly into your Ruby gem bundle. No Docker, no `curl | sh`, no Homebrew required.
|
|
4
|
+
|
|
5
|
+
<div align="center">
|
|
6
|
+
<img src="https://raw.githubusercontent.com/yaroslav/bundlebun/refs/heads/main/assets/mr-bundlebun-512.png" width="256" height="256" alt="Mr. Bundlebun" title="Mr. Bundlebun">
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
* **Zero setup.** `bundle add bundlebun && rake bun:install` and you're done.
|
|
10
|
+
* **Team-friendly.** Everyone runs the same Bun version, pinned in `Gemfile.lock`.
|
|
11
|
+
* **Auto-updating.** New Bun release? bundlebun ships it automatically. Or freeze your preferred version.
|
|
12
|
+
* **Integrates automatically.** Works out of the box with vite-ruby, cssbundling-rails, jsbundling-rails, and ExecJS.
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
bundle add bundlebun
|
|
16
|
+
rake bun:install
|
|
17
|
+
bin/bun --version
|
|
18
|
+
```
|
|
4
19
|
|
|
5
20
|
[](https://github.com/yaroslav/bundlebun/releases)
|
|
6
21
|
[](https://rubydoc.info/gems/bundlebun)
|
|
7
22
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Table of Contents
|
|
26
|
+
|
|
27
|
+
- [Rationale](#rationale)
|
|
28
|
+
- [Install](#install)
|
|
29
|
+
- [Usage](#usage)
|
|
30
|
+
- [Integrations](#integrations)
|
|
31
|
+
- [Versioning](#versioning)
|
|
32
|
+
- [Uninstall](#uninstall)
|
|
33
|
+
- [Acknowledgements](#acknowledgements)
|
|
34
|
+
- [Contributing](#contributing)
|
|
35
|
+
- [License](#license)
|
|
11
36
|
|
|
12
37
|
## Rationale
|
|
13
38
|
|
|
@@ -24,101 +49,53 @@ So, how about we just pack it into a Ruby gem as a binary and allow developers t
|
|
|
24
49
|
|
|
25
50
|
**Enter bundlebun**. With a fast JavaScript runtime and a package manager included, you can even skip the build tool and use Bun itself.
|
|
26
51
|
|
|
27
|
-
## Quickstart
|
|
28
|
-
|
|
29
|
-
Starting with your Ruby or Rails project, no Bun or anything like that required:
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
bundle add bundlebun
|
|
33
|
-
rake bun:install
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
and then:
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
> bin/bun ...
|
|
40
|
-
Bun is a fast JavaScript runtime, package manager, bundler, and test runner. (1.1.38+bf2f153f5)
|
|
41
|
-
|
|
42
|
-
Usage: bun <command> [...flags] [...args]
|
|
43
|
-
...
|
|
44
|
-
```
|
|
45
|
-
|
|
46
52
|
## Install
|
|
47
53
|
|
|
48
54
|
bundlebun gem releases include a binary distribution of Bun for each supported Bun platform (macOS, Linux, Windows) and architecture. bundlebun is tested for Unix-like environments and Windows.
|
|
49
55
|
|
|
50
|
-
|
|
56
|
+
Add bundlebun to your `Gemfile`, placing it _after_ your existing frontend-related gems:
|
|
51
57
|
|
|
52
58
|
```ruby
|
|
53
|
-
# ...
|
|
54
|
-
|
|
55
59
|
# Frontend-related gems go here
|
|
56
|
-
# For example, Vite integration
|
|
57
60
|
# gem "vite_rails"
|
|
58
61
|
|
|
59
62
|
gem "bundlebun"
|
|
60
63
|
```
|
|
61
64
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
```sh
|
|
65
|
-
bundle install
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
(or just):
|
|
65
|
+
Then run:
|
|
69
66
|
|
|
70
67
|
```sh
|
|
71
68
|
bundle add bundlebun
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
_If you're seeing a message like `Could not find gems matching 'bundlebun' valid for all resolution platforms
|
|
75
|
-
(aarch64-linux, aarch64-linux-gnu <...> )`, [check this article](https://github.com/yaroslav/bundlebun/wiki/Could-not-find-gems-matching-'bundlebun'-valid-for-all-resolution-platforms)._
|
|
76
|
-
|
|
77
|
-
Next, run:
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
69
|
rake bun:install
|
|
81
70
|
```
|
|
82
71
|
|
|
83
|
-
|
|
72
|
+
`rake bun:install` creates a `bin/bun` binstub and auto-detects which integrations to enable. It will also offer to migrate `package.json` scripts and `Procfile` entries to use `bin/bun`.
|
|
84
73
|
|
|
85
|
-
|
|
74
|
+
_If you're seeing a message like `Could not find gems matching 'bundlebun' valid for all resolution platforms (aarch64-linux, aarch64-linux-gnu <...> )`, [check this article](https://github.com/yaroslav/bundlebun/wiki/Could-not-find-gems-matching-'bundlebun'-valid-for-all-resolution-platforms)._
|
|
86
75
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
_Windows tip:_ If you're on Windows, the `bin\bun.cmd` file will be created. If you've joined an existing project where only the Unix-like binstub exists at that location, just run `rake bun:install` again.
|
|
90
|
-
|
|
91
|
-
Next, the Rake task will try to detect the integrations we need to install based on the classes and modules Rake can see in your project. See: _Integrations_.
|
|
92
|
-
|
|
93
|
-
**By default, on load, bundlebun:**
|
|
94
|
-
|
|
95
|
-
- adds the path to the bundled `bun` executable to the start of your application's `PATH`. That simplifies the integration in cases where we don't really need to monkey-patch a lot of code, and we just need to make sure it "sees" our `bun` executable as available.
|
|
96
|
-
- tries to detect and load all possible integrations.
|
|
76
|
+
_Windows:_ `bin\bun.cmd` is created instead. If you joined a project with only the Unix binstub, run `rake bun:install` again.
|
|
97
77
|
|
|
98
78
|
## Usage
|
|
99
79
|
|
|
100
80
|
### Binstub
|
|
101
81
|
|
|
102
|
-
The easiest way to
|
|
82
|
+
The easiest way to run Bun is via the `bin/bun` binstub:
|
|
103
83
|
|
|
104
84
|
```sh
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
Usage: bun <command> [...flags] [...args]
|
|
109
|
-
|
|
110
|
-
...
|
|
85
|
+
bin/bun install
|
|
86
|
+
bin/bun add postcss
|
|
87
|
+
bin/bun run build
|
|
111
88
|
```
|
|
112
89
|
|
|
113
|
-
###
|
|
90
|
+
### PATH
|
|
114
91
|
|
|
115
|
-
|
|
92
|
+
bundlebun prepends the bundled Bun directory to your application's `PATH`. Tools that detect a `bun` executable (like vite-ruby) find it automatically—no extra configuration needed.
|
|
116
93
|
|
|
117
94
|
### Rake
|
|
118
95
|
|
|
119
|
-
Alternatively, you can use a Rake task. The syntax is far from perfect
|
|
96
|
+
Alternatively, you can use a Rake task. The syntax is far from perfect—that's a limitation of Rake—but it's an option if you cannot install the binstub. Note the quotes around the parameters:
|
|
120
97
|
|
|
121
|
-
```
|
|
98
|
+
```sh
|
|
122
99
|
rake bun[command] # Run bundled Bun with parameters
|
|
123
100
|
```
|
|
124
101
|
|
|
@@ -128,160 +105,121 @@ bun outdated v1.1.38 (bf2f153f)
|
|
|
128
105
|
...
|
|
129
106
|
```
|
|
130
107
|
|
|
131
|
-
### Ruby
|
|
132
|
-
|
|
133
|
-
**Check bundlebun API: https://rubydoc.info/gems/bundlebun**.
|
|
134
|
-
|
|
135
|
-
The easiest way to call Bun from Ruby is via `Bundlebun.()` (shortcut for `Bundlebun.call()`).
|
|
136
|
-
|
|
137
|
-
**Note:** `Bundlebun.call` replaces the current Ruby process with Bun: it never returns.
|
|
108
|
+
### Ruby API
|
|
138
109
|
|
|
139
110
|
```ruby
|
|
140
|
-
Bundlebun.('
|
|
141
|
-
Bundlebun.call(['add', 'postcss'])
|
|
111
|
+
Bundlebun.('install') # exec: replaces the current Ruby process with Bun
|
|
112
|
+
Bundlebun.call(['add', 'postcss']) # same thing, array form
|
|
142
113
|
```
|
|
143
114
|
|
|
144
|
-
|
|
115
|
+
**Note:** `Bundlebun.call` (and the `()` shortcut) replaces the current process—it never returns. Use `Bundlebun.system` to run Bun and continue executing Ruby:
|
|
145
116
|
|
|
146
117
|
```ruby
|
|
147
118
|
if Bundlebun.system('install')
|
|
148
119
|
puts 'Dependencies installed!'
|
|
149
|
-
else
|
|
150
|
-
puts 'Installation failed'
|
|
151
120
|
end
|
|
152
121
|
|
|
153
|
-
# Run tests and check result
|
|
154
122
|
success = Bundlebun.system('test')
|
|
123
|
+
# => true if Bun exited successfully, false or nil otherwise
|
|
155
124
|
```
|
|
156
125
|
|
|
157
|
-
|
|
126
|
+
See the [API documentation](https://rubydoc.info/gems/bundlebun) for full details on `Bundlebun::Runner`.
|
|
158
127
|
|
|
159
|
-
|
|
128
|
+
### Instrumentation
|
|
160
129
|
|
|
161
|
-
|
|
130
|
+
When ActiveSupport is available, bundlebun emits events you can subscribe to:
|
|
162
131
|
|
|
163
|
-
|
|
132
|
+
```ruby
|
|
133
|
+
ActiveSupport::Notifications.subscribe('system.bundlebun') do |event|
|
|
134
|
+
Rails.logger.info "Bun: #{event.payload[:command]} (#{event.duration.round(1)}ms)"
|
|
135
|
+
end
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Events: `system.bundlebun` (for `Bundlebun.system`) and `exec.bundlebun` (for `Bundlebun.call`). Payload: `{ command: args }`.
|
|
139
|
+
|
|
140
|
+
## Integrations
|
|
164
141
|
|
|
165
|
-
|
|
142
|
+
bundlebun auto-detects and loads integrations when you run `rake bun:install`—as long as `gem "bundlebun"` is placed _after_ the relevant gems in your `Gemfile`.
|
|
166
143
|
|
|
167
|
-
|
|
144
|
+
### vite-ruby / vite-rails
|
|
168
145
|
|
|
169
146
|
[vite-ruby](https://github.com/ElMassimo/vite_ruby) and [vite-rails](https://vite-ruby.netlify.app/) are gems that make Ruby and Rails integration with [Vite](https://vite.dev/), a great JavaScript build tool and platform, seamless and easy.
|
|
170
147
|
|
|
171
|
-
The bundlebun integration
|
|
148
|
+
The bundlebun integration is installed automatically with `rake bun:install`, or you can run it explicitly:
|
|
172
149
|
|
|
173
150
|
```sh
|
|
174
151
|
rake bun:install:vite
|
|
175
152
|
```
|
|
176
153
|
|
|
177
|
-
That will make sure you have a `bin/bun` binstub. Next,
|
|
154
|
+
That will make sure you have a `bin/bun` binstub. Next, it installs a custom `bin/bun-vite` binstub to use in build scripts, and creates or updates `vite.json` to use that binstub for building. See the [Vite Ruby configuration manual](https://vite-ruby.netlify.app/config/index.html) for details on `vite.json`.
|
|
178
155
|
|
|
179
|
-
|
|
156
|
+
To enable the integration manually:
|
|
180
157
|
|
|
181
158
|
```ruby
|
|
182
159
|
Bundlebun::Integrations::ViteRuby.bun!
|
|
183
160
|
```
|
|
184
161
|
|
|
185
|
-
|
|
162
|
+
### cssbundling-rails / jsbundling-rails
|
|
186
163
|
|
|
187
|
-
[cssbundling](https://github.com/rails/cssbundling-rails) and [jsbundling](https://github.com/rails/jsbundling-rails) are Rails gems that support the traditional CSS and JS building pipeline for Ruby on Rails.
|
|
164
|
+
[cssbundling-rails](https://github.com/rails/cssbundling-rails) and [jsbundling-rails](https://github.com/rails/jsbundling-rails) are Rails gems that support the traditional CSS and JS building pipeline for Ruby on Rails.
|
|
188
165
|
|
|
189
|
-
Be sure to check both gems for documentation on bootstrapping your frontend build pipeline
|
|
190
|
-
|
|
191
|
-
To quote their READMEs, try this for cssbundling:
|
|
166
|
+
Be sure to check both gems for documentation on bootstrapping your frontend build pipeline instead of duplicating approaches here. cssbundling-rails, for instance, includes an excellent sample build configuration for Bun.
|
|
192
167
|
|
|
193
168
|
```sh
|
|
169
|
+
# Bootstrap cssbundling-rails
|
|
194
170
|
bundle add cssbundling-rails
|
|
195
171
|
bin/rails css:install:[tailwind|bootstrap|bulma|postcss|sass]
|
|
196
|
-
bin/rails css:build
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
and this jsbundling:
|
|
200
172
|
|
|
201
|
-
|
|
173
|
+
# Bootstrap jsbundling-rails
|
|
202
174
|
bundle add jsbundling-rails
|
|
203
175
|
bin/rails javascript:install:bun
|
|
204
|
-
```
|
|
205
176
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
```sh
|
|
177
|
+
# Ensure bundlebun integration
|
|
209
178
|
rake bun:install:bundling-rails
|
|
210
179
|
```
|
|
211
180
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
#### ExecJS
|
|
181
|
+
### ExecJS
|
|
215
182
|
|
|
216
|
-
[ExecJS](https://github.com/rails/execjs) runs JavaScript code straight from Ruby.
|
|
183
|
+
[ExecJS](https://github.com/rails/execjs) runs JavaScript code straight from Ruby. It supports a number of runtimes it can launch—and get a result from. Bun runtime support already exists in ExecJS; bundlebun just ensures it uses the bundled version.
|
|
217
184
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
Alternatively, you can load the monkey-patch manually:
|
|
185
|
+
Works automatically when bundlebun loads after ExecJS in your `Gemfile`. To enable manually:
|
|
221
186
|
|
|
222
187
|
```ruby
|
|
223
188
|
Bundlebun::Integrations::ExecJS.bun!
|
|
224
189
|
```
|
|
225
190
|
|
|
226
|
-
#### ActiveSupport::Notifications (Instrumentation)
|
|
227
|
-
|
|
228
|
-
When ActiveSupport is available, bundlebun emits instrumentation events that you can subscribe to for logging or monitoring:
|
|
229
|
-
|
|
230
|
-
- `system.bundlebun` for `Bundlebun.system` (calling Bun and returning to Ruby code);
|
|
231
|
-
- `exec.bundlebun` for `Bundlebun.call` / `Bundlebun.exec` (binstubs and wrappers: exiting to Bun).
|
|
232
|
-
|
|
233
|
-
The payload is `{ command: args }`: the arguments you passed to the method (string or array).
|
|
234
|
-
|
|
235
|
-
Example subscriber:
|
|
236
|
-
|
|
237
|
-
```ruby
|
|
238
|
-
ActiveSupport::Notifications.subscribe('system.bundlebun') do |event|
|
|
239
|
-
Rails.logger.info "Bun: #{event.payload[:command]} (#{event.duration.round(1)}ms)"
|
|
240
|
-
end
|
|
241
|
-
```
|
|
242
|
-
|
|
243
191
|
## Versioning
|
|
244
192
|
|
|
245
|
-
bundlebun
|
|
193
|
+
bundlebun versions follow the `#{gem.version}.#{bun.version}` scheme. For example, `0.1.0.1.1.38` = gem version `0.1.0` + Bun `1.1.38`.
|
|
246
194
|
|
|
247
|
-
|
|
195
|
+
New gem versions are published automatically on each Bun release. Lock to a specific Bun version in your `Gemfile`, or leave it unspecified to always get the latest.
|
|
248
196
|
|
|
249
197
|
## Uninstall
|
|
250
198
|
|
|
251
|
-
To uninstall, remove the gem:
|
|
252
|
-
|
|
253
199
|
```sh
|
|
254
200
|
bundle remove bundlebun
|
|
255
201
|
```
|
|
256
202
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
Next, remove the integrations you might have in place:
|
|
203
|
+
Then clean up:
|
|
260
204
|
|
|
261
|
-
- `bin/bun`
|
|
262
|
-
-
|
|
263
|
-
-
|
|
264
|
-
-
|
|
265
|
-
-
|
|
205
|
+
- `bin/bun` (and `bin\bun.cmd` on Windows)
|
|
206
|
+
- `bin/bun-vite` if present
|
|
207
|
+
- `tasks/bundlebun.rake` if present
|
|
208
|
+
- Any `bin/bun` references in scripts and configs
|
|
209
|
+
- Any `Bundlebun` references in your code
|
|
266
210
|
|
|
267
211
|
## Acknowledgements
|
|
268
212
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
[Bun](https://bun.sh) was created by Jarred Sumner [@jarred-sumner](https://github.com/jarred-sumner) & co. and is distributed under MIT. Check their [LICENSE](https://github.com/oven-sh/bun/blob/main/LICENSE.md).
|
|
213
|
+
Bun binaries are sourced directly from [oven-sh/bun releases](https://github.com/oven-sh/bun/releases). [Bun](https://bun.sh) was created by Jarred Sumner ([@jarred-sumner](https://github.com/jarred-sumner)) and distributed under MIT.
|
|
272
214
|
|
|
273
|
-
Big thanks to Jason Meller [@terracatta](https://github.com/terracatta) for his work on
|
|
215
|
+
Big thanks to Jason Meller ([@terracatta](https://github.com/terracatta)) for his work on Bun's Ruby on Rails ecosystem integration—jsbundling-rails, cssbundling-rails, turbo-rails, stimulus-rails, and ExecJS support—in [this Pull Request](https://github.com/rails/rails/pull/49241).
|
|
274
216
|
|
|
275
217
|
## Contributing
|
|
276
218
|
|
|
277
|
-
Make sure you have up-to-date Ruby. Run `bin/setup` to install
|
|
219
|
+
Make sure you have up-to-date Ruby. Run `bin/setup` to install gems, install [lefthook](https://github.com/evilmartians/lefthook), and run `rake bundlebun:download` to fetch a local Bun build for tests.
|
|
278
220
|
|
|
279
|
-
`rake rspec` to check
|
|
280
|
-
|
|
281
|
-
Open an issue or a PR.
|
|
221
|
+
Run `rake rspec` to check tests. Open an issue or a PR.
|
|
282
222
|
|
|
283
223
|
## License
|
|
284
224
|
|
|
285
|
-
The gem is available as open source under the terms of the MIT License.
|
|
286
|
-
|
|
287
|
-
See [LICENSE.txt](LICENSE.txt).
|
|
225
|
+
The gem is available as open source under the terms of the MIT License. See [LICENSE.txt](LICENSE.txt).
|
data/lib/bundlebun/runner.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'shellwords'
|
|
4
|
+
|
|
3
5
|
module Bundlebun
|
|
4
6
|
# {Runner} is the class that bundlebun uses to run the bundled Bun executable.
|
|
5
7
|
#
|
|
@@ -194,7 +196,7 @@ module Bundlebun
|
|
|
194
196
|
def exec
|
|
195
197
|
check_executable!
|
|
196
198
|
instrument('exec.bundlebun')
|
|
197
|
-
Kernel.exec(command)
|
|
199
|
+
Kernel.exec(*command)
|
|
198
200
|
end
|
|
199
201
|
|
|
200
202
|
# Replaces the current Ruby process with Bun. Alias for {#exec}.
|
|
@@ -228,7 +230,7 @@ module Bundlebun
|
|
|
228
230
|
def system
|
|
229
231
|
check_executable!
|
|
230
232
|
instrument('system.bundlebun') do
|
|
231
|
-
Kernel.system(command)
|
|
233
|
+
Kernel.system(*command)
|
|
232
234
|
end
|
|
233
235
|
end
|
|
234
236
|
|
|
@@ -255,7 +257,18 @@ module Bundlebun
|
|
|
255
257
|
end
|
|
256
258
|
|
|
257
259
|
def command
|
|
258
|
-
[self.class.binary_path, *
|
|
260
|
+
[self.class.binary_path, *command_arguments]
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
def command_arguments
|
|
264
|
+
case arguments
|
|
265
|
+
when Array
|
|
266
|
+
arguments.flatten.compact.map(&:to_s)
|
|
267
|
+
when nil
|
|
268
|
+
[]
|
|
269
|
+
else
|
|
270
|
+
Shellwords.split(arguments.to_s)
|
|
271
|
+
end
|
|
259
272
|
end
|
|
260
273
|
end
|
|
261
274
|
end
|
data/lib/bundlebun/version.rb
CHANGED
data/lib/tasks/install.rake
CHANGED
|
@@ -242,7 +242,7 @@ namespace :bun do
|
|
|
242
242
|
print "Apply these changes? [Y/n] "
|
|
243
243
|
answer = $stdin.gets&.strip&.downcase
|
|
244
244
|
|
|
245
|
-
if answer.empty? || answer == 'y' || answer == 'yes'
|
|
245
|
+
if answer.nil? || answer.empty? || answer == 'y' || answer == 'yes'
|
|
246
246
|
changes.each do |change|
|
|
247
247
|
package['scripts'][change[:name]] = change[:new]
|
|
248
248
|
end
|
|
@@ -294,7 +294,7 @@ namespace :bun do
|
|
|
294
294
|
print "Apply these changes? [Y/n] "
|
|
295
295
|
answer = $stdin.gets&.strip&.downcase
|
|
296
296
|
|
|
297
|
-
if answer.empty? || answer == 'y' || answer == 'yes'
|
|
297
|
+
if answer.nil? || answer.empty? || answer == 'y' || answer == 'yes'
|
|
298
298
|
File.write(procfile, new_content)
|
|
299
299
|
puts "Updated #{procfile} successfully.\n\n"
|
|
300
300
|
else
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bundlebun
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1.1.3.10
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Yaroslav Markin
|
|
@@ -87,7 +87,7 @@ licenses:
|
|
|
87
87
|
metadata:
|
|
88
88
|
homepage_uri: https://github.com/yaroslav/bundlebun
|
|
89
89
|
source_code_uri: https://github.com/yaroslav/bundlebun
|
|
90
|
-
changelog_uri: https://github.com/yaroslav/bundlebun/blob/
|
|
90
|
+
changelog_uri: https://github.com/yaroslav/bundlebun/blob/main/CHANGELOG.md
|
|
91
91
|
bug_tracker_uri: https://github.com/yaroslav/bundlebun/issues
|
|
92
92
|
documentation_uri: https://rubydoc.info/gems/bundlebun
|
|
93
93
|
rbs_source: sig
|