-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support installing Ruby local deps (#477)
* don't have any file deps for ruby to support installing local deps * update snapshot tests * ruby local deps test * add ruby local snapshot test * fix ruby local deps procfile * update snapshot tests
- Loading branch information
1 parent
bf8edfe
commit 41ea665
Showing
15 changed files
with
116 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem "local", path: "libs/local" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
PATH | ||
remote: libs/local | ||
specs: | ||
local (0.1.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
|
||
PLATFORMS | ||
arm64-darwin-21 | ||
|
||
DEPENDENCIES | ||
local! | ||
|
||
RUBY VERSION | ||
ruby 3.1.2p20 | ||
|
||
BUNDLED WITH | ||
2.3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: bundle exec ruby app.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require "local" | ||
|
||
Local.hi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "https://rubygems.org" | ||
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Local | ||
def self.hi | ||
puts "Hello world from Local lib" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Describe your gem and declare its dependencies: | ||
Gem::Specification.new do |s| | ||
s.name = "local" | ||
s.version = "0.1.0" | ||
s.authors = ["Nixpacks"] | ||
s.homepage = "" | ||
s.summary = "" | ||
s.description = "" | ||
s.license = "MIT" | ||
s.files = ["lib/local.rb"] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
puts "Hello from Ruby" | ||
puts "Hello from Ruby with Node" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
source: tests/generate_plan_tests.rs | ||
expression: plan | ||
--- | ||
{ | ||
"nixpacksVersion": "[version]", | ||
"buildImage": "[build_image]", | ||
"variables": { | ||
"BUNDLE_GEMFILE": "/app/Gemfile", | ||
"GEM_HOME": "/usr/local/rvm/gems/ruby-3.1.2", | ||
"GEM_PATH": "/usr/local/rvm/gems/ruby-3.1.2:/usr/local/rvm/gems/ruby-3.1.2@global" | ||
}, | ||
"phases": [ | ||
{ | ||
"name": "setup", | ||
"aptPackages": [ | ||
"procps" | ||
], | ||
"commands": [ | ||
"curl -sSL https://get.rvm.io | bash -s stable && . /etc/profile.d/rvm.sh", | ||
"rvm install ruby-3.1.2", | ||
"rvm --default use ruby-3.1.2", | ||
"gem install bundler:2.3.7", | ||
"echo 'source /usr/local/rvm/scripts/rvm' >> /root/.profile" | ||
] | ||
}, | ||
{ | ||
"name": "install", | ||
"dependsOn": [ | ||
"setup" | ||
], | ||
"commands": [ | ||
"bundle install" | ||
], | ||
"cacheDirectories": [ | ||
"/root/.bundle/cache" | ||
], | ||
"paths": [ | ||
"/usr/local/rvm/rubies/ruby-3.1.2/bin", | ||
"/usr/local/rvm/gems/ruby-3.1.2/bin", | ||
"/usr/local/rvm/gems/ruby-3.1.2@global/bin" | ||
] | ||
}, | ||
{ | ||
"name": "build", | ||
"dependsOn": [ | ||
"install" | ||
] | ||
} | ||
], | ||
"startPhase": { | ||
"cmd": "bundle exec ruby app.rb" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters