A simple IRB application for JRuby on Android
Java Ruby
Clone or download
Failed to load latest commit information.
assets/demo-scripts Correct Morse code for letter V Apr 5, 2015
doc Add screenshot to doc dir. Sep 23, 2011
rakelib Update to Ruboto 1.1.2 Jul 23, 2014
res Set typface=monospace' in IRB tab May 10, 2015
src Update to Ruboto 1.1.3-dev Jul 23, 2014
test Updated to the latest ruboto version (0.14) Aug 27, 2013
.gitignore * Issue #6 Port to Ruboto Core Jan 1, 2012
.project * Issue #6 Port to Ruboto Core Jan 29, 2012
AndroidManifest.xml Version 0.9.1(18) Jan 18, 2014
README.markdown Merge pull request #26 from benjaminoakes/patch-1 May 28, 2015
Rakefile * Updated to Ruboto 0.7.0.dev Jul 3, 2012
ant.properties * Added properties for keystore in user home directory. Jan 18, 2013
build.xml Update to Ruboto 1.1.2 Jul 23, 2014
local.properties.EXAMPLE sdk-location has been renamed to sdk.dir Jun 16, 2010
proguard-project.txt * Updated to Ruboto 0.7.0.dev Jul 3, 2012
proguard.cfg * Issue #6 Port to Ruboto Core Jan 1, 2012
project.properties Increased API target Aug 28, 2013





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.


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

That's it! Have fun!


Ruboto-IRB screenshot


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.