Giter Site home page Giter Site logo

Can't use with ActiveRecord about jruby-pg HOT 8 CLOSED

headius avatar headius commented on August 19, 2024
Can't use with ActiveRecord

from jruby-pg.

Comments (8)

headius avatar headius commented on August 19, 2024

Yeah, this is kinda why we'd really like to get jruby-pg rolled into the pg gem, so that dependencies are just resolved as normal.

from jruby-pg.

headius avatar headius commented on August 19, 2024

I just filed this, so hopefully sometime soon we might be able to get a -java version of the pg gem: https://bitbucket.org/ged/ruby-pg/issue/177/incorporate-jruby-version-of-pg-gem-for-a

In the short term, one thing you could do to help us would be to clone jruby-pg and modify it to produce a pg-####-java.gem instead of jruby-pg-####-java.gem. That should allow your dependencies to resolve and you can see if it works.

from jruby-pg.

dwbutler avatar dwbutler commented on August 19, 2024

I was able to get the dependencies to work by changing:

 Gem::Specification.new do |s|
-  s.name = "pg_jruby"
+  s.name = "pg"

I'm also working on some other fixes to make this compatible with Discourse, which I'll probably submit in a separate pull request.

Thanks!

from jruby-pg.

headius avatar headius commented on August 19, 2024

@dwbutler That works too! Thanks for giving this a try. We'd really like to prove the jruby-pg library is ready (or close to ready) for inclusion into the standard pg gem, and the best way to do that (other than running test cases, which @jvshahid has done a lot of) is getting real users trying it out.

This issue isn't really a bug in jruby-pg per se, but we'll leave it open as a placeholder for getting jruby-pg merged into ruby-pg.

from jruby-pg.

jvshahid avatar jvshahid commented on August 19, 2024

I'm working on making the gem compatible with version 0.16 of the C pg gem. I'm getting very close to implementing all the new features. As soon as this is done, I'll open a pull request in https://github.com/ged/ruby-pg?source=c to merge my changes.

from jruby-pg.

jvshahid avatar jvshahid commented on August 19, 2024

See ged/ruby-pg#1

from jruby-pg.

pmontrasio avatar pmontrasio commented on August 19, 2024

I run into this problem now, after having seen the announcement of JRuby 9000 and tried to run a Rails 4.2 application with it. I could fork the gem and apply the patch from @dwbutler but haven't been any progresses since December 2013?

from jruby-pg.

Ch4s3 avatar Ch4s3 commented on August 19, 2024

👍

from jruby-pg.

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.