Data dodania Pytanie
2018-02-15 15:02 Why do ruby's stack trance contain non matching quotations? »
Why are method names in ruby stack trace aren't quoted with matching quotations? For example: `eval'. Opens with a backtick (grave accent) and closes ...
(1) odpowiedzi
2018-02-15 14:02 JRuby - Exception caught inside terminated while block »
In my code I have a begin/rescue block inside a while loop. After the while loop has been terminated by a break statement, an exception raised will go...
(0) odpowiedzi
2018-02-14 17:02 How can I make sure threads inside my class end after each rspec test? »
I have a jruby class which contains a heartbeat that does something every certain number of seconds: (simplified code below) class Client def initi...
(1) odpowiedzi
2018-02-02 10:02 Path issue when calling chromedriver from Jruby on Rails »
I'm trying to open chrome browser using chromedriver (which is added to my path) running Jruby on Rails on Windows 7. The code is inside the worker cl...
(0) odpowiedzi
2018-01-31 04:01 JRUBY .war file migration »
I'm planning to deploy a compiled JRuby project to Apache, the project contains migration files. Is there any way to deploy a war file with database (...
(1) odpowiedzi
2018-01-26 05:01 rvm fails to install jruby »
I am unable to install jruby(tried 9.1.5.0) using rvm on OSX 10.1.3.2 $ rvm install jruby-9.1.5.0 Searching for binary rubies, this might take so...
(0) odpowiedzi
2018-01-25 15:01 Any specific reason why reconnect Database inside Celluloid does not work? »
I'm chasing an issue wherein our script is unable to reconnect if in case the database(postgresql) connection broke. I have created a 2 sample script...
(0) odpowiedzi
2018-01-23 17:01 JRuby, gemstash and sqlite3 »
I'm trying to run gemstash with JRuby, but it seems to have a dependency with sqlite3-1.3.13 which of course fails because it requires a C native exte...
(1) odpowiedzi
2018-01-22 16:01 Single sidekiq failing job causes all other jobs to fail »
Ruby version: jruby 9.1.5.0 (2.3.1) 2016-09-07 036ce39 Java HotSpot(TM) 64-Bit Server VM 25.144-b01 on 1.8.0_144-b01 +jit [linux-x86_64] Sidekiq (5.0....
(0) odpowiedzi
2018-01-21 11:01 Java Scripting (JRuby, Groovy) »
I'm looking for a simple code where I can use Scripting in one of those two engines (JRuby or Groovy). ...
(0) odpowiedzi
2018-01-20 14:01 PayPal express ActiveMerchant gateway not working »
According to this, the ActiveMerchant PayPal Express Gateway is initialized like this: paypal_options = { login: "API_USERNAME_HERE", password: "...
(1) odpowiedzi
2018-01-17 14:01 org.jruby.exceptions.RaiseException: (NameError) uninitialized constant »
I'm getting the following error from a JRuby wrapping of the ActiveMerchant library: org.jruby.exceptions.RaiseException: (NameError) uninitialized c...
(1) odpowiedzi
2018-01-17 13:01 Why key type ecdsa-sha2-nistp256 is unsupported? »
I'am trying to use ruby gem net-ssh and receive the error described bellow jruby-9.1.15.0 :001 > require "net/ssh" => true jruby-9.1.15.0 :0...
(1) odpowiedzi
2018-01-16 21:01 RSpec Stubbing Java Static Method ArgumentError »
I am attempting to stub a Java static method in my specs for my JRuby class which imports some Java libraries. I get the following error for the metho...
(0) odpowiedzi
2018-01-16 19:01 How to obtain a macOS transparent titlebar effect in SWT/Shoes via JRuby »
I'm trying to obtain this effect (transparent title bar and full sized content) while using Shoes. However, I figured SWT doesn't even offer this opti...
(1) odpowiedzi
2018-01-16 03:01 JRuby 9.1.7.0 bundler don't install json-1.8.6 (Windows 10) »
Windows 10 JRuby 9.1.7.0 when I call bundle install I get the following error: Fetching json 1.8.6 Installing json 1.8.6 with native extensions C:/j...
(0) odpowiedzi
2018-01-13 19:01 Created jar from JRuby file using warbler. Application exit/goes in a blink when run »
I have created a JRuby desktop application. Now I need to create installation file for different platforms(Windows, Linux, Mac). I have created .jar ...
(1) odpowiedzi
2018-01-12 11:01 How to create distribution files(.exe) with jruby »
I have created a JRuby desktop application. Now I need to install on different platforms(Windows, Linux, Mac). Can any one help me on this Which is t...
(0) odpowiedzi
2018-01-06 00:01 Debug JRuby rack runtime error in tomcat »
We recently upgraded an old rails app from rails 3 to 4.2, along with many other gem updates. Now I can't get my rails app to load any pages. We were ...
(1) odpowiedzi
2018-01-05 17:01 Puppet Jruby NetHttp get request seems to have bad ciphers »
We wrote a puppet function which needs to do a http get request over tls to a server. The http request is done directly from the puppet master. The re...
(0) odpowiedzi
2018-01-05 07:01 Can't find ruby gem in Spring Boot application »
I have created a jar file that contains a Ruby gem (activemerchant) that is wrapped by a Spring service, which uses the JRuby ScriptContainer to invok...
(1) odpowiedzi
2017-12-26 12:12 Unable to pass the following rspec »
class Admins::Setting < ActiveRecord::Base serialize :config scope :default_ip, -> () { where(title: 'default-route-ip'.freeze).first } ...
(1) odpowiedzi
2017-12-25 06:12 Accessing static field in Java class from jruby »
In java class Bytes I have: public final static Comparator<byte []> BYTES_COMPARATOR = new ByteArrayComparator(); From ruby, how can I access...
(1) odpowiedzi
2017-12-21 10:12 Parsing Large xml file »
I have an XML file with size around 2GB. I found parsers which loads everything into memory. Can anyone suggest a parser/method that lazy loads the fi...
(0) odpowiedzi
2017-12-20 14:12 Phusion Passenger Standalone: How to pass a command line flag to ruby? »
As part of a performance analysis, I'd like to run my rails app with several different rubies. All of them have the gem passenger (v5) installed and a...
(0) odpowiedzi
2017-12-19 11:12 Overriding 2 methods with the same name in a Java class implementation in JRuby »
I would like to create an implementation of Apache Jena's OpVisitorByType in JRuby but I want to also override two super methods with the same method ...
(0) odpowiedzi
2017-12-19 03:12 How to embed overwrite in jruby when I instantiate Java objects »
I want to overwrite some method when I instantiate a Java Object using ruby when I use Java,the implement like this Class name = new Class() { @...
(0) odpowiedzi
2017-12-13 16:12 Process spawned by tomcat7 pauses »
I have simple ServletContextListener that runs a process when tomcat starts and shuts it down when tomcat shuts down. Process: java -jar application...
(1) odpowiedzi
2017-12-13 08:12 compile jruby files to a different directory »
I have a jruby application in the following folder structure : lib/*.class files src/*.rb files I want to compile all the .rb files in src using jr...
(1) odpowiedzi
2017-12-08 15:12 get back ruby files (*.rb) files from .class »
I have a java bytecode (.class) generated from jruby code sources, Please, i need to know if there is a way to decompile it to get back the code ...
(0) odpowiedzi
2017-12-08 10:12 Access java classes inside .jar in Jruby »
I am currently developing my Jruby application which is contained inside a .jar file. Within the jar, my file structure looks like this: lib/launch....
(1) odpowiedzi
2017-12-07 08:12 import class file in Jruby »
I have several scripts written in Jruby that I would like to obfuscate by converting them to .class files. But I am running into an error when I tried...
(1) odpowiedzi
2017-12-07 05:12 multithreading in Ruby vs JRuby vs Java »
I am new to Ruby and the JRuby and I was trying to implement multithreaded code in Ruby and came to know that GIL doesn't allow my code to run in para...
(1) odpowiedzi
2017-12-06 01:12 ActiveRecord could not connect to database server when running Rspec »
So I'm running rspec tests with jruby-1.7.16.1 after completing a bundle install, and they are all failing to the same error: Failure/Error: Una...
(1) odpowiedzi
2017-11-26 00:11 Java JRuby differences in Multithreading »
I am new to JRuby and Ruby.Is there any difference in multi threading in JRuby and Java.As JRuby is just an implementation of Ruby on JVM where Java a...
(1) odpowiedzi