jruby

pik Error: private method `gsub' called for nil:NilClass

≡放荡痞女 提交于 2019-12-05 18:00:18
I´m getting an error when adding JRuby 1.3.1 to pik. Error: Error: private method `gsub' called for nil:NilClass this is my path environment variable: C:\Users\Owner>echo %path% C:\Program Files\Java\jdk1.7.0_05\bin;c:\jruby-1.7.0.preview1\bin;C:\jruby-1.3.1\bin;c:\pik this is when trying to add 1.3.1 version: C:\Users\Owner>pik add C:\jruby-1.3.1\bin There was an error. Error: private method `gsub' called for nil:NilClass in: pik/commands/command.rb:124:in `get_version' in: pik/commands/add_command.rb:23:in `add' in: pik/commands/add_command.rb:13:in `execute' in: pik_runner:33 It´s not the

Why does logstash take so long to start/load?

寵の児 提交于 2019-12-05 17:43:10
问题 Edit : I changed the title because the issue was not what I initially thought. The fact is that logstash takes more than a minute to starts, which can be misinterpreted as "silence"... I'm trying to make logstash running, so I've followed the instruction on the official site for a standalone installation : http://logstash.net/docs/1.1.4/tutorials/getting-started-simple Basically, I got the logstash-1.1.4-monolithic.jar file, then build a very simple config file : ( example.conf ) input {

Rails console issues using JRuby: no prompt character, no tab completion, broken arrow keys, etc

帅比萌擦擦* 提交于 2019-12-05 17:01:06
问题 I'm having various issues with my Rails console under JRuby, including No prompt character Tab completion not working (literal tab gets inserted) Up/down arrows not browsing history ( ^[[A or ^[[B gets inserted, respectively) Left/right arrows not moving cursor ( ^[[D or ^[[C gets inserted, respectively) Home / End keys not moving cursor to beginning/end of line (instead 1~ or 4~ inserted, respectively); Ctrl + a / Ctrl + e work though Ctrl + c killing console instead of killing the line I'm

JRuby Heroku Gem

邮差的信 提交于 2019-12-05 15:27:13
Is it possible to use Heroku client with JRuby? I have installed heroku gem successfully with all dependencies, but I can't login. PS D:\Projects\myproject> heroku login Enter your Heroku credentials. Email: myname@mydomain.com Password (typing will be hidden): mypassword ! Heroku client internal error. ! Search for help at: https://help.heroku.com ! Or report a bug at: https://github.com/heroku/heroku/issues/new Error: write would raise (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError) Backtrace: org/jruby/ext/openssl/SSLSocket.java:626:in `syswrite_nonblock' C:/JRuby/lib/ruby/1.9/openssl

Getting started programming in dynamic languages in Android ((J)Ruby, Clojure…)

℡╲_俬逩灬. 提交于 2019-12-05 09:28:30
I've been looking around, and I can't seem to find any definitive answer or headway that seems "up to date". I've seen some interesting projects like Mirah (formerly Duby), and am looking into it a bit. I've seen JRuby unsuccessfully used to compile ruby into .dex. I've also been looking, independently, into Clojure and have realized that they might all be linked to the same thing. Does anyone have any tips on how to get started and make headway? I ask not only what frameworks could help, but more importantly, a philosophy/direction in which to guide my efforts, just to get started. dbyrne See

Require Nokogiri? No such file to load

夙愿已清 提交于 2019-12-05 07:09:29
I'm trying to get started with using Nokogiri. I ran the command gem install nokogiri as an administrator in Windows 7 (64-Bit). The console said "successfully installed" and "1 gem installed". When I type in gem list --local OR gem q --local I see Nokogiri on the list of "Local Gems". However, when I try to use it via the require statement (in NetBeans), I get an error that there is "no such file to load". What am I doing wrong? I'm not a Ruby professional. This is also the first gem I've installed. Please dumb it down for me. Netbeans comes with built-in jRuby. You can specify or check wich

many errors installing mysql on jruby

断了今生、忘了曾经 提交于 2019-12-05 06:26:53
I'm trying to get mysql gem installed for use on rails, using jruby, can't figure this out...any help is appreciated! $ sudo gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/masedesign/Work/repos/code/conf/vms/ruby/jruby/bin/jruby extconf.rb WARNING: JRuby does not support native extensions or the `mkmf' library very well. Check http://kenai.com/projects/jruby/pages/Home for alternatives. checking for rb_thread_blocking_region()... checking for rb_wait_for_single_fd()... no checking for

How can I determine if a different process id is running using Java or JRuby on Linux?

霸气de小男生 提交于 2019-12-05 05:39:19
问题 I need to see if a given process id is running, and it must work in either Java or JRuby (preferably a Ruby solution). It can be system dependent for Linux (specifically Debian and/or Ubuntu). I already have the PID I am looking for, just need to see if it is currently running. UPDATE: Thanks for all the responses everyone! I appreciate it, however it's not QUITE what I'm looking for... I am hoping for something in a standard Ruby library (or Java, but preferably Ruby)... if no such library

Cannot install SQLITE3 with JRuby

无人久伴 提交于 2019-12-05 05:32:34
I am brand new to Ruby and using Windows 7. It is a different environment to what I am normally used to so I am having problems getting a simple project going. After reading several tutorials, it appears that JRuby is the simplest way to go on windows which I have done. I am now trying to create a web application from scratch but I am confused about this shell style method of working. I have downloaded sqliste3.def, sqlite3.dll and sqlite3 which I have put in the: C:jruby-1.6.4>bin directory. However, I am now trying to install sqlite but with no avail. Firstly what I would like to know is

Is it possible to compile a Rails app to a Java VM JAR file?

穿精又带淫゛_ 提交于 2019-12-05 02:17:54
Essentially the only thing I can deploy to my deployment machine is a JAR file. I can't install JRuby, nor can I install Glassfish or Tomcat. Is it possible to package up a Rails application (including Rails, vendored, of course) to a JAR file such that I can do c:\my_server> java rails_app.jar and have it run WEBRick or Mongrel within the JVM? I'd recommend that you checkout Jetty. The process for Embedding Jetty is surprisingly easy, and it should be possible to give it your servlets from your current jar file. I haven't used Ruby/Rails, though, so I'm not sure if there are any complications