Comments (5)
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.
"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
- remote origin
Fetch URL: https://github.com/ohler55/oj.git
...
$ 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.
I added a comment in the README.md to note that JRuby must be built with extensions enabled.
from oj.
@ohler55 Thanks so much and I really appreciate all your hard work with this gem!
from oj.
Always nice to hear, thanks.
from oj.
Related Issues (20)
- Segfault in 3.13.23 when attempting to benchmark :saj HOT 7
- 3.13.17 - Oj.load method takes cpu to 100% and doesn't return on malformed JSON strings HOT 3
- Benchmarking Oj Parsers against each other HOT 2
- oj 3.14.1 tests fail on armel/armhf HOT 15
- Support for Ruby's `Singleton` module? HOT 1
- RangeError for Time value HOT 2
- Inconsistent behavior for malformed utf-8 HOT 2
- Segmentation fault in Oj HOT 14
- Behavior difference in rails to_json of decimal numbers with Oj.optimize_rails() HOT 5
- So what should be done to avoid this in output HOT 5
- Skipping null bytes on dump HOT 9
- stack level too deep when using `JSON.parse`. HOT 10
- Oj::Rails.mimic_JSON() raises Oj::ParseError invalid float HOT 4
- `v3.15.1` causes a warning to be output when calling `Oj.mimic_JSON` HOT 6
- Not initialised stack_buffer HOT 6
- How to avoid outputting small floats in scientific notation HOT 6
- Does `max_nesting` work? HOT 14
- Getting `TypeError: wrong argument type nil (expected Class)` instead of expected `Oj::ParseError`
- oj_parse_xml_time parses incorrectly unless there are exactly 9 fractional digits HOT 1
- Optimize JSON for pub sub transmission? 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 oj.