Comments (9)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/121730559
The labels on this github issue will be updated when the story is started.
from ruby-buildpack.
@liuweichu Have you tried using ::Gem
instead of plain-old Gem
?
If not, please do and let us know how you get on.
from ruby-buildpack.
Actually, this log message:
sh: 1: Syntax error: EOF in backquote substitution
is not good. Something else is going on. @RochesterinNYC any ideas?
from ruby-buildpack.
@liuweichu Thanks, we have added both of your examples to our test suite. We are now leveraging Bundler's DSL evaluator directly, and so the buildpack will correctly handle any Gemfile which is valid for Bundler.
Could you please push using the develop branch (eg. cf push test -b https://github.com/cloudfoundry/ruby-buildpack.git#develop
) and tell us either way. If it works we will close this issue.
from ruby-buildpack.
@cf-buildpacks-eng
Tested on develop branch, it works!
Thank you for the quick respond.
Close this issue.
from ruby-buildpack.
@flavorjones Hi, I'm not sure what is ::Gem
. Could you please give me some more explanation?
from ruby-buildpack.
@liuweichu two double-colon tells ruby to start search for constant in global scope. You can find some details here.
I already created a PR to solve this issue #57, but it was not fully accepted. This particular problem is caused, because const_missing
in LanguagePack::RubySemverVersion
doesn't return anything and ruby returns nil
as a result of such methods (link to code). And this nil
causes undefined method ... for nil:NilClass
error in your case.
I think, that ::
will help in your case.
from ruby-buildpack.
@liuweichu looks like this commit should fix this issue in following ruby-buildpack version.
You can also use develop
branch to try this fixes right now, just push your app in the following way:
cf push <app-name> -b https://github.com/cloudfoundry/ruby-buildpack#develop
from ruby-buildpack.
@allomov Thanks for telling me a new ruby trick
I tested the develop against redmine's Gemfile, and it works perfectly.
from ruby-buildpack.
Related Issues (20)
- **Release:** ruby-buildpack 1.8.44 HOT 1
- **Release:** ruby-buildpack 1.8.44 HOT 2
- IMPORTANT NOTICE: [ruby-buildpack] Deprecation Notice Policy Changes HOT 1
- **Release:** ruby-buildpack 1.8.45 HOT 1
- **Release:** ruby-buildpack 1.8.47
- Add node 16.x to ruby-buildpack HOT 1
- **Release:** ruby-buildpack 1.8.48 HOT 1
- Ruby and JRuby CVEs HOT 6
- Remove rails 5 or earlier fixtures from v2b ruby tests
- Release: ruby-buildpack (Feb) HOT 1
- Release: ruby-buildpack (Mar) HOT 1
- Dependency Deprecation Alert HOT 3
- Ruby is not available in cflinuxfs4 HOT 1
- Release: ruby-buildpack (Apr) HOT 1
- Install bootstrapped ruby into buildpack-specific namespace
- Release: ruby-buildpack (May) HOT 1
- Is there a cflinuxsf4 buildpack with ruby 2.x? HOT 2
- Release: ruby-buildpack (Jun) HOT 1
- CVE-2023-22796 HOT 2
- Release: ruby-buildpack (Jul) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-buildpack.