Git Product home page Git Product logo

Comments (5)

ezkl avatar ezkl commented on July 18, 2024

See Travis' docs regarding JRuby and C extensions:

JRuby: C extensions support is disabled

Please note that C extensions are disabled for JRuby on travis-ci.org. The reason for doing so is to bring it to developers attention that their project may have dependencies that should not be used on JRuby in production. Using C extensions on JRuby is technically possible but is not a good idea performance and stability-wise and we believe continuous integration services like Travis should highlight it.

So if you want to run CI against JRuby, please check that your Gemfile takes JRuby into account. Most of popular C extensions these days also have Java implementations (jsom gem, nokogiri, eventmachine, bson gem) or Java alternatives (like JDBC-based drivers for MySQL, PostgreSQL and so on).

from oj.

simeonwillbanks avatar simeonwillbanks commented on July 18, 2024

"Please note that C extensions are disabled for JRuby on travis-ci.org. The reason for doing so is to bring it to developers attention that their project may have dependencies that should not be used on JRuby in production."

Should Oj's documentation mention that JRuby support requires C extensions to be enabled?

I don't see this mentioned within the repository.

$ git remote show origin

$ ack -i jruby *

README.md
60:Oj is compatible with Ruby 1.8.7, 1.9.2, 1.9.3, JRuby, RBX, and the latest 2.0dev.

build_test.sh
7: jruby-1.6.7\

ext/oj/fast.c
365:#ifdef JRUBY_RUBY

ext/oj/oj.c
313:#ifndef JRUBY_RUBY
314: // JRuby gets confused with what is the real fileno.

test/test_mimic.rb
75: if 'rubinius' == $ruby || 'jruby' == $ruby || '1.8.7' == RUBY_VERSION
(END)

from oj.

ohler55 avatar ohler55 commented on July 18, 2024

I added a comment in the README.md to note that JRuby must be built with extensions enabled.

from oj.

simeonwillbanks avatar simeonwillbanks commented on July 18, 2024

@ohler55 Thanks so much and I really appreciate all your hard work with this gem!

from oj.

ohler55 avatar ohler55 commented on July 18, 2024

Always nice to hear, thanks.

from oj.

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.