Coder Social home page Coder Social logo

Comments (9)

cf-gitbot avatar cf-gitbot commented on June 1, 2024

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.

flavorjones avatar flavorjones commented on June 1, 2024

@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.

flavorjones avatar flavorjones commented on June 1, 2024

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.

cf-buildpacks-eng avatar cf-buildpacks-eng commented on June 1, 2024

@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.

liuweichu avatar liuweichu commented on June 1, 2024

@cf-buildpacks-eng
Tested on develop branch, it works!
Thank you for the quick respond.

Close this issue.

from ruby-buildpack.

liuweichu avatar liuweichu commented on June 1, 2024

@flavorjones Hi, I'm not sure what is ::Gem. Could you please give me some more explanation?

from ruby-buildpack.

allomov avatar allomov commented on June 1, 2024

@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.

allomov avatar allomov commented on June 1, 2024

@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.

liuweichu avatar liuweichu commented on June 1, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.