Skip to content

ruboto/ruboto-irb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

71a4e95 · May 28, 2015
Apr 5, 2015
Jan 18, 2014
Sep 23, 2011
Jul 23, 2014
May 10, 2015
Jul 23, 2014
Aug 27, 2013
Jan 1, 2012
Jan 29, 2012
Jan 18, 2014
May 28, 2015
Jul 3, 2012
Jan 18, 2013
Jul 23, 2014
Jun 16, 2010
Jul 3, 2012
Jan 1, 2012
Aug 28, 2013

Repository files navigation

#Ruboto-IRB

http://ruboto.org

##Installation

The simplest way to get started with ruboto-irb is to install a prebuilt binary package. These packages can be found at https://github.com/ruboto/ruboto-irb/tree/master/dist.

If you'd like more control over the build and installation process, you can do it manually using the following instructions.

###Customize the local.properties file

Copy local.properties.EXAMPLE to local.properties and edit local.properties to specify the SDK's location on your system. For example:

 $ cp local.properties.EXAMPLE local.properties
 $ vi local.properties
 # In the editor, change the sdk.dir to point to the correct directory.

(The vi command in this and other sample command lines can be replaced with any editor command, such as nano or mate.)

###Override default memory settings (SDK Version 4 only):

If you are using API SDK version 4 (or earlier?), you'll probably need to override the low default memory setting for that platform (more recent SDKs default to 1024 MB and generally do not need to be changed). To do this:

 $ vi $ANDROID_SDK_PATH/platforms/android-4/tools/dx
 #
 # *$ANDROID_SDK_PATH* should point to, or be replaced by, the root of your Android SDK directory tree. 
 # Uncomment the line starting with *javaOpts* and set it to 1024 MB, or higher, if necessary, e.g:
 # javaOpts="-Xmx1024M"

###Update the project:

 android update project -n rubuto-irb --path . --subprojects 

###Build and install the project:

To build the debug version, issue the command:

 $ ant debug     # build package

To both build the debug version and install it on the currently selected target device or emulator, do this:

 $ ant debug install   # build and install package

If you'd like control of the install at a lower level, you can use adb:

 $ adb -[e|d] install -r bin/IRB-debug.apk # manual install (emulator, device)

NOTE: To install it to an emulator image, you need to have the emulator running.

Resources

You can also check out the JRuby on Android Google group for more information.

That's it! Have fun!

##Screenshot

Ruboto-IRB screenshot

##Credits

Ruby Icon obtained from Ruby Visual Identity Team, CC ShareAlike 2.5. Editor/script support from Pascal Chatterjee's jruby-for-android project, adapted by Scott Moyer.