bundlebun 0.4.1.1.3.11-aarch64-linux → 0.4.2.1.3.12-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57ff384f94afad535921488b1c634599ab75aca32ba5197428cf23bbe890d329
4
- data.tar.gz: 0b8c7cb7140ce12c8902d45a36d5b56b6174e50103f573e10a07d73a04697b39
3
+ metadata.gz: d46378df9bc46fb97e5cd1278cb57ad2621b9a9316263dc5b148e7e58095c85d
4
+ data.tar.gz: 84eb4f31141ce1cceddc581195f9989234b1366bced7674dd0b98c658a62fda4
5
5
  SHA512:
6
- metadata.gz: ac3ee80f94fa2ed0ca2ecf3bacb39a397a2e51565b5e95ade9013d9338edab0036ecc19d3d07c03712c1d20d983d40fc56afa750ddade1932842787779825fde
7
- data.tar.gz: 66243d08ce6e8cd94cb7c0e5de5340540abec16da2d2658fd5ff00160acd5c62fb5ddcc9613fca12a922b518c8eda81ef75582a37cd5999d02e87b7dc48361a3
6
+ metadata.gz: fdf8f79a11869a23bdde766ebf1b5c3232018a43f1d8fbee248a761e693857265b84d103ff9444979cb7edf782508608899d903d5e65f7431c546a8b86a5c400
7
+ data.tar.gz: d13a09c93e6c3cf9f5eab5433af3d1dd6dc91da4bea082724a796a26123ee4f888c02879ead26549491a93fcb7425f77d51537eeea523aa703a97123201e9252
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.4.2] - 2026-04-12
2
+
3
+ - It makes no sense to run Bun without arguments, so no-argument `Bundlebun.call` / `exec` / `system` calls now raise `ArgumentError`.
4
+ - `Bundlebun::Runner.binstub_path` and `full_binstub_path` are now memoized, matching the existing pattern used by `binary_path` and `full_directory`. Avoids redundant string and `File.expand_path` work on every integration command build.
5
+
1
6
  ## [0.4.1] - 2026-03-08
2
7
 
3
8
  - Bun is now executed with argv-safe `exec` / `system` calls instead of flattening arguments into a single string to preserve values with spaces correctly.
@@ -99,7 +99,9 @@ module Bundlebun
99
99
  #
100
100
  # @return [String]
101
101
  def binstub_path
102
- Bundlebun::Platform.windows? ? "#{BINSTUB_PATH}.cmd" : BINSTUB_PATH
102
+ return @binstub_path if defined?(@binstub_path)
103
+
104
+ @binstub_path = Bundlebun::Platform.windows? ? "#{BINSTUB_PATH}.cmd" : BINSTUB_PATH
103
105
  end
104
106
 
105
107
  # A full path to binstub that bundlebun usually generates with installation Rake tasks.
@@ -108,7 +110,9 @@ module Bundlebun
108
110
  #
109
111
  # @return [String]
110
112
  def full_binstub_path
111
- File.expand_path(binstub_path)
113
+ return @full_binstub_path if defined?(@full_binstub_path)
114
+
115
+ @full_binstub_path = File.expand_path(binstub_path)
112
116
  end
113
117
 
114
118
  # A relative directory path to the bundled Bun executable from the root of the gem.
@@ -175,7 +179,7 @@ module Bundlebun
175
179
  #
176
180
  # @see #system
177
181
  # @see #exec
178
- def initialize(arguments = '')
182
+ def initialize(arguments)
179
183
  @arguments = arguments
180
184
  end
181
185
 
Binary file
@@ -8,5 +8,5 @@ module Bundlebun
8
8
  # a Bun runtime with version `1.1.38`.
9
9
  #
10
10
  # This constant always points to the "own" version of the gem.
11
- VERSION = '0.4.1'
11
+ VERSION = '0.4.2'
12
12
  end
@@ -21,7 +21,7 @@ module Bundlebun
21
21
  def self.binstub_or_binary_path: () -> String
22
22
  def self.binstub_exist?: () -> bool
23
23
 
24
- def initialize: (?String | Array[String] arguments) -> void
24
+ def initialize: (String | Array[String] arguments) -> void
25
25
 
26
26
  # Replaces the current Ruby process with Bun. Never returns.
27
27
  def exec: () -> bot
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.1.1.3.11
4
+ version: 0.4.2.1.3.12
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Yaroslav Markin