Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

App#upload raise => uninitialized constant CFoundry::V2::Base::JSON (NameError) #25

Closed
gramos opened this issue Dec 19, 2013 · 2 comments

Comments

@gramos
Copy link

gramos commented Dec 19, 2013

I have an script that use cfoundry to upload an app using App#upload method
it works ok when I use cfoundry 4.3.6, but when I update to 4.7.0 it raise the error below:

/var/lib/gems/1.9.1/gems/cfoundry-4.7.0/lib/cfoundry/v2/base.rb:36:in upload_app': uninitialized constant CFoundry::V2::Base::JSON (NameError) from /var/lib/gems/1.9.1/gems/cfoundry-4.7.0/lib/cfoundry/upload_helpers.rb:48:inupload'
from ./push_app:45:in `generate_app'

ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

Cheers

@ghost ghost assigned TildeWill Dec 23, 2013
@TildeWill
Copy link

I would have expected the require "multi_json" on line 1 of base.rb to take care of that. Can you run bundle list and paste the output here?

Also note that you must have your own JSON library included in your project. The use of multi_json permits the library user to pick which JSON parser you want to use.

@TildeWill
Copy link

Closing this issue since I believe the solution lies outside of cfoundry. Please re-open if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants