search for: jruby

Displaying 20 results from an estimated 321 matches for "jruby".

Did you mean: ruby
2008 Oct 31
4
RedCloth 4.1.0 released with JRuby support
Sorry it took me a week to release the JRuby version. I was out sick most of the week. Thanks a million, Ola Bini, for implementing the Java code! Give it a go: Ruby: gem install RedCloth JRuby: jgem install RedCloth Let me know how it goes for you. Jason
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
...ested. You need to specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate() or Connection.prepareStatement().: SET SQL_AUTO_IS_NULL=0 This occurs not matter what application I run it in to e.g. rake, rails console, or from my app. Here''s the trace while running it from rake: jruby -S rake db:schema:dump --trace (in /Users/MJW/Sites/test_app) ** Invoke db:schema:dump (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:schema:dump rake aborted! ActiveRecord::JDBCError: Generated keys not requested. You need to specify Statement.RETURN_GENERATED...
2008 May 22
2
gem install of mongrel v 1.1.5 broken in jruby
Can''t install the latest mongrel (1.1.5) in JRuby (jruby revisions ranging from 6600 to 6750[trunk] checked) -- the platform is not being identified and it''s trying to do native compilation. I''m not sure it''s actually a problem with Mongrel or JRuby however -- perhaps there isn''t a mongrel-1.1.5-java.gem on...
2011 Jun 09
1
Rails 3.1 RC4 has broken migrations
Rails 3.1 RC4 has broken migrations $ jruby -v jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_24) [darwin-x86_64-java] $ jruby -S rails -v Rails 3.1.0.rc4 $ jruby -S rails new myapp -d jdbcpostgresql [...] $jruby -S rake db:create [...] $ jruby -S rails g model user name:string invoke act...
2008 Nov 20
1
running tests on gem
Is there a way to run he tests with cjust the gem installed? I wanted to run the tests on the gem and tried: $ jruby -S gem list RedCloth *** LOCAL GEMS *** RedCloth (4.1.1) $ jruby --version jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-14 rev 6586) [i386-java] [jruby.git (master)]$ jruby -S gem check -test RedCloth ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: -est...
2009 May 05
3
Oracle-JRuby error
...0.9.1) activeresource (2.2.2) activesupport (2.2.2) net-sftp (2.0.2) net-ssh (2.0.11) parseexcel (0.5.2) rails (2.2.2) rake (0.8.4) rspec (1.2.0) rubyzip (0.9.1) rufus-scheduler (1.0.13) sources (0.0.1) The error dump is: undefined method `new_date'' for JdbcSpec::Oracle::Column:Module C:/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.1/lib/jdbc_adapter/jdbc_oracle.rb:63:in `guess_date_or_time'' C:/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.1/lib/jdbc_adapter/jdbc_oracle.rb:59:in `string_to_time'' C:/jruby-1.2.0/lib/ruby/gems/1.8/gem...
2010 Sep 22
1
Bundler picking up wrong version of Ruby with Rails 3 ( possible bundler bug )
Hello All, I am developing a JRuby on Rails 3 application. Standard stuff. I am facing problems getting autotest to run. Here''s the trace: % autotest loading autotest/rails_rspec2 bundle exec /Users/manish/Foo/Foo-Server/jruby-1.5.2/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/bin/rspec ''/Users/manish/Foo/Foo...
2013 Feb 14
4
Struggling with Jruby Rails + jdbc driver
...nd added the same derby active record adaptor and jdbc-derby gem in the gem file. Unfortunately I am still having the same problem listed later in this post. Coming from the Java world, the classpath thing is pretty easy to follow even with maven. However I am totally scratching my head on how jruby & rails finds and loads the java lib and I can''t seem to find any clear info on that. I can see the Any pointers on how to solve my problem and might be potential place where I should look shall be greatly appreciated!!! I can see the jdbc-derby gem installed under my .rvm dir but...
2012 Jul 06
0
Running Rspec tests with JRuby fails
How to run RSpec tests with JRuby in a Java project? I tried to run it with JRuby 1.7.0.preview1, rspec (2.10.0) rspec-core (2.10.1) rspec-expectations (2.10.0) rspec-mocks (2.10.1) rspec-rails (2.10.1) as follows: jruby -S rspec and got the error: javix at ubuntu:~/Development/rspec_jruby$ jruby -S rspec spec NameError: cannot...
2008 Mar 23
1
redcloth gem ragel code doesn''t build in jruby
I tried to install RedCloth-3.274 in jruby (trunk) but the install failed when RedCloth tried to build the C code using mkmf: I forget whether SuperRedcloth ever did build in JRuby?? I know Hpricot (which also uses ragel which can compile to Java code) works in JRuby -- with the patch here: https://code.whytheluckystiff.net/hpricot/...
2011 Aug 11
0
JRuby + Rails3 + Unit Tests = "Log" issue?
Hey all, I am working on a Rails 3.0.7 application that is using JRuby 1.6.3, running on Debian. I keep encountering an error regarding a missing "Log" file when I am trying to run some Unit tests (among various other activities). The cryptic error in question: LoadError: No such file to load -- Log Has anyone seen anything like this before? I am baffled a...
2008 Mar 17
10
RSpec and RCov with JRuby
Hi, I am using JRuby (trunk) and wrote a bunch of specifications for my code. Everything works fine so far. Now I am trying to integrate RCov in my test run. I have installed RCov without the C extensions. I tried it with a simple script and it worked (pretty slow, but it doesn?t matter). But when I add the rcov...
2010 Sep 27
0
problem with set_sequence_name please help
...9;', :version => 0, :created_by_id => 0) it''s still using "ad_courts_seq" which not exist. ActiveRecord::StatementInvalid: ActiveRecord::ActiveRecordError: ORA-02289: sequence does not exist : select ad_courts_seq.nextval id from dual from /Users/cyberjom/.rvm/gems/jruby-1.5.2/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:202:in `log'' from /Users/cyberjom/.rvm/gems/jruby-1.5.2/gems/activerecord-jdbc-adapter-0.9.7-java/lib/active_record/connection_adapters/jdbc_adapter.rb:582:in `execute'' from /Users/cyberjom...
2007 Sep 24
2
Is Rcov working with Jruby now?
Hello everyone: I am currently assigned to test a big project which uses JRuby to build a web application. The reason of using JRuby is the web application is communicating with Java Service. I am writing test cases using Rspec and looking for a code coverage tool. Rcov is no doubt a nice code coverage tool. However, it is said that Rcov is not compatible with JRuby so far. S...
2007 Jul 18
3
Help. Acts_as_Authenticated plugin stops working for me?
...t;"erv2", "created_at"=>Wed Jul 18 02:47:19 BST 2007}, @new_record=false, @password="000000", @password_confirmation="000000">:User RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace C:/Program Files/NetBeans 6.0M10/ruby1/jruby-1.0/lib/ruby/gems/1.8/ gems/activerecord-1.15.3/lib/active_record/transactions.rb:101:in `transaction'' C:/Program Files/NetBeans 6.0M10/ruby1/jruby-1.0/lib/ruby/gems/1.8/ gems/activerecord-1.15.3/lib/active_record/transactions.rb:121:in `transaction'' C:/Program Files/NetBeans 6.0M...
2009 Sep 17
1
Load Error Using Mechanize Gem
...nks.each do |link| puts link.text end end ---------------------- Resources I''m using: Editor: Netbeans IDE 6.7.1 Gems installed (among others): mechanize-0.9.3, nokogiri-1.3.3-java Operating System: Windows Vista Home Premium, Service Pack 1, 64-Bit Error message stack: JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL C:/Program Files (x86)/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/1.8/ffi/library.rb:18:in `ffi_lib'': Could not open any of [xml2, xslt, exslt] (LoadError) from C:/Pr...
2008 Jul 16
2
Error when running my unit test...
...Execute db:test:prepare ** Invoke db:test:clone (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump ** Invoke db:test:purge (first_time) ** Invoke environment ** Execute db:test:purge rake aborted! EMULTIHOP (Reserved) /home/dk90394/netbeans-6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ activerecord-2.0.2/lib/active_record/connection_adapters/ mysql_adapter.rb:471:in `connect'' /home/dk90394/netbeans-6.1/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ activerecord-2.0.2/lib/active_record/connection_adapters/ mysql_adapter.rb:165:in `initialize''...
2007 Dec 22
12
error when installing on jruby (fastthread dependency)
I''m running jruby trunk which has integrated rubygems 1.0.0 and when I try and install mongrel with gem it blows up when the fastthread dependency tries to do a native compilation. I couldn''t find a copy of the gemspec in the svn checkout but looking at the one installed when gem installing mongrel didn...
2011 Sep 22
3
uninitialized constant Spec::Rails (NameError) when running spec command
I get the following error when trying to run a spec command on a model test. The command is :- C:\Rspec Test\spec\models>spec bank_account_spec.rb The error is :- c:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-rails-1.3.0/lib/spec/rails/ matchers/ ar_be_valid.rb:2: uninitialized constant Spec::Rails (NameError) from c:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec- rails-1.3.0/lib/spec/ra ils/matchers/ar_be_valid.rb:31:in require'' from c:/jruby-1.5.0/lib/ruby/site_r...
2009 Oct 20
3
gem installation failed
i got this error message while installing mysql gem..... kindly help me to solve this issue.... JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. C:/Program Files/NetBeans 6.7.1/ruby2/jruby-1....