Skip to content

Commit 8c4e9c9

Browse files
committed
feat: support bun
1 parent 1ccd2ff commit 8c4e9c9

14 files changed

+20
-13
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
installer: yarn
6666
- name: pnpm
6767
installer: pnpm
68+
- name: bun
69+
installer: bun
6870
ruby: [2.7]
6971
gemfile:
7072
# These have shakapacker:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ source "http://rubygems.org"
44

55
gemspec
66

7-
gem "package_json", github: "G-Rath/package_json"
7+
gem "package_json", github: "G-Rath/package_json", branch: "add-bun-support"
88

99
# This is an optional dev-dependency, required whenever sprockets is required

Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GIT
22
remote: https://github.com/G-Rath/package_json.git
3-
revision: d48f2c0db14bb1305f249fffb52fd2e0065678ee
3+
revision: 72e742afb7ea8c19369fa9a4ce0d74ce098e2678
4+
branch: add-bun-support
45
specs:
56
package_json (0.1.0)
67

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Bundler::GemHelper.install_tasks
1111
def require_package_json_gem
1212
require "bundler/inline"
1313

14-
gemfile { gem "package_json", github: "G-Rath/package_json" }
14+
gemfile { gem "package_json", github: "G-Rath/package_json", branch: "add-bun-support" }
1515

1616
puts "using package_json v#{PackageJson::VERSION}"
1717
end

gemfiles/base.gemfile

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

33
source "http://rubygems.org"
44

5-
gem "package_json", github: "G-Rath/package_json"
5+
gem "package_json", github: "G-Rath/package_json", branch: "add-bun-support"
66
gem "rails", "~> 7.0.x"
77

88
gemspec path: "../"

gemfiles/base.gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GIT
22
remote: https://github.com/G-Rath/package_json.git
3-
revision: d48f2c0db14bb1305f249fffb52fd2e0065678ee
3+
revision: 72e742afb7ea8c19369fa9a4ce0d74ce098e2678
4+
branch: add-bun-support
45
specs:
56
package_json (0.1.0)
67

gemfiles/shakapacker.gemfile

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

33
source "http://rubygems.org"
44

5-
gem "package_json", github: "G-Rath/package_json"
5+
gem "package_json", github: "G-Rath/package_json", branch: "add-bun-support"
66
gem "rails", "~> 7.0.x"
77
gem "shakapacker", github: "G-Rath/shakapacker", branch: "use-package_json"
88

gemfiles/shakapacker.gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GIT
22
remote: https://github.com/G-Rath/package_json.git
3-
revision: d48f2c0db14bb1305f249fffb52fd2e0065678ee
3+
revision: 72e742afb7ea8c19369fa9a4ce0d74ce098e2678
4+
branch: add-bun-support
45
specs:
56
package_json (0.1.0)
67

gemfiles/sprockets_3.gemfile

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

33
source "http://rubygems.org"
44

5-
gem "package_json", github: "G-Rath/package_json"
5+
gem "package_json", github: "G-Rath/package_json", branch: "add-bun-support"
66
gem "rails", "~> 7.0.x"
77
gem "sprockets", "~> 3.5"
88
gem "sprockets-rails"

gemfiles/sprockets_3.gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GIT
22
remote: https://github.com/G-Rath/package_json.git
3-
revision: d48f2c0db14bb1305f249fffb52fd2e0065678ee
3+
revision: 72e742afb7ea8c19369fa9a4ce0d74ce098e2678
4+
branch: add-bun-support
45
specs:
56
package_json (0.1.0)
67

gemfiles/sprockets_4.gemfile

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

33
source "http://rubygems.org"
44

5-
gem "package_json", github: "G-Rath/package_json"
5+
gem "package_json", github: "G-Rath/package_json", branch: "add-bun-support"
66
gem "rails", "~> 7.0.x"
77
gem "sprockets", "~> 4.0.x"
88
gem "sprockets-rails"

gemfiles/sprockets_4.gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GIT
22
remote: https://github.com/G-Rath/package_json.git
3-
revision: d48f2c0db14bb1305f249fffb52fd2e0065678ee
3+
revision: 72e742afb7ea8c19369fa9a4ce0d74ce098e2678
4+
branch: add-bun-support
45
specs:
56
package_json (0.1.0)
67

lib/generators/react/install_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def setup_react_sprockets
107107
def require_package_json_gem
108108
require "bundler/inline"
109109

110-
gemfile { gem "package_json", github: "G-Rath/package_json" }
110+
gemfile { gem "package_json", github: "G-Rath/package_json", branch: "add-bun-support" }
111111

112112
puts "using package_json v#{PackageJson::VERSION}"
113113
end

test/bin/create-fake-js-package-managers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if ENV["GITHUB_ACTIONS"]
1515
File.write(ENV.fetch("GITHUB_PATH"), "#{bin_dir}\n", mode: "a+")
1616
end
1717

18-
managers = %w[npm yarn pnpm]
18+
managers = %w[npm yarn pnpm bun]
1919
manager_in_use = ARGV[0]
2020

2121
Dir.chdir(bin_dir) do

0 commit comments

Comments
 (0)