当前位置: 首页 > 工具软件 > Java Gems > 使用案例 >

jruby gems

轩辕奕
2023-12-01

JRuby · datamapper/do Wiki

jruby --version
jruby 1.3.1 (ruby 1.8.6p287) (2009-07-10 6586) (Java HotSpot(TM) Client VM 1.6.0_15) [i386-java]

Install Rake, full JRuby-OpenSSL support, RSpec and ZenTest:

 

jruby -S gem update --system
jruby -S gem install rake
jruby -S gem install jruby-openssl
jruby -S gem install rspec ZenTest

JRuby · datamapper/do Wiki

sudo jruby -S gem install jdbc-[DBNAME]
jdbc-derby
jdbc-h2
jdbc-hsqldb
jdbc-mysql
jdbc-postgres
jdbc-sqlite3

ActiveRecord JDBC: Wiki: Home — Project Kenai

Inside Rails

 

To use activerecord-jdbc-adapter with JRuby on Rails:

1. Choose the adapter you wish to gem install. The following pre-packaged adapters are available:

  • base jdbc (activerecord-jdbc-adapter). Supports all available databases via JDBC, but requires you to download and manually install the database vendor's JDBC driver .jar file.
  • mysql (activerecord-jdbcmysql-adapter)
  • postgresql (activerecord-jdbcpostgresql-adapter)
  • derby (activerecord-jdbcderby-adapter)
  • hsqldb (activerecord-jdbchsqldb-adapter)
  • h2 (activerecord-jdbch2-adapter)

2. Run the "jdbc" generator to prepare your Rails application for JDBC.

jruby script/generate jdbc

uninstall all gems

uninstall all gems

31. May 2008
edit

To perform batch operations in MacPorts you can use the predefined pseudo-portnames. RubyGems has no such thing, but instead it can handle regular expressions. So to uninstall all gems of your default RubyGems installation you can simply issue the following command.

sudo gem uninstall --a --ignore-dependencies .+
posted on 2012-05-24 16:24  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2012/05/24/2516704.html

 类似资料:

相关阅读

相关文章

相关问答