zoukankan      html  css  js  c++  java
  • jruby gems

    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

    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 .+
  • 相关阅读:
    平台总体技术架构
    防控激活
    dse测试说明
    设置内核tcp连接数
    删除topic的尝试
    用Jmeter进行接口压力测试的步骤
    性能测试
    配置文件的修改
    mysql 监控
    电子栅栏sql和接口查询
  • 原文地址:https://www.cnblogs.com/lexus/p/2516704.html
Copyright © 2011-2022 走看看