Giter Site home page Giter Site logo

Comments (9)

ragaskar avatar ragaskar commented on July 23, 2024

Most people have this auto-loaded via Rails or their Gemfile. I mentioned this on the pull, but I think explicitly adding a require 'json' line caused pain to people using alternate versions of JSON.

from jasmine-gem.

potomak avatar potomak commented on July 23, 2024

Same error: http://travis-ci.org/#!/hackatron/sveglia/jobs/991356

Here's project code: https://github.com/hackatron/sveglia

What solution would you suggest?

from jasmine-gem.

potomak avatar potomak commented on July 23, 2024

Here's my solution: hackatron/sveglia@cd60364

from jasmine-gem.

zilkey avatar zilkey commented on July 23, 2024

This is now fixed on the prerelease version:

gem "jasmine", "1.2.0.rc3"

In this commit: 5bc6dec

from jasmine-gem.

daaain avatar daaain commented on July 23, 2024

This issue still happens in my pure Ruby project, even with v1.2.1 and even if I install the gem from the master branch as of now :(

from jasmine-gem.

JamesFerguson avatar JamesFerguson commented on July 23, 2024

It seems the fix for this was removed in 8642ce5. lib/jasmine/config.rb doesn't require json on HEAD and when I bundle against HEAD I get the above error.

If I add require 'json' after require 'erb' in lib/jasmine/config.rb then the error goes away.

I'm seeing either this error or issue #94 when I try rake jasmine:ci on 1.2.0rc3, 1.2.0, 1.2.1 and HEAD so there's currently not a workable version of the gem available for me.

from jasmine-gem.

ragaskar avatar ragaskar commented on July 23, 2024

We took James' pull, please check and see if you're still having problems (also keep an eye out for this in the future -- require 'json' has been a constant problem for us, because the JSON constant gets defined by about a billion different libraries, so specifically require-ing one has a high chance of breakage.)

from jasmine-gem.

ragaskar avatar ragaskar commented on July 23, 2024

Closing, re-open if you have problems.

from jasmine-gem.

mmb avatar mmb commented on July 23, 2024

We are experiencing this issue in 1.3.1, but not in 1.3.0. Regression?

from jasmine-gem.

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.