Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

SproutCore sample application w/ statecharts

branch: dispatch

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 apps
Octocat-spinner-32 bin
Octocat-spinner-32 design
Octocat-spinner-32 frameworks
Octocat-spinner-32 themes
Octocat-spinner-32 .gitattributes
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Buildfile
Octocat-spinner-32 CHANGELOG
Octocat-spinner-32 README.md
Octocat-spinner-32 license.js
README.md

OtherInBox Web Application in SproutCore with testing in Jasmine

TODO: explain what this app does

Development Status

This is currently being upgraded with the following:

  • Use statecharts
  • Upgrade with jasmine automated regression tests.

Presently the application doesn't work very well yet (on this branch); however you are welcome to download it and fool around.

Prerequisites

  • Has been tested under Ruby 1.9.2-p136.
  • Has been tested under SproutCore gem sproutcore version 1.5.0.pre.5
  • I develop under OSX 10.6.8. On other systems, YMMV.

Pre-installation

If you really want to avoid "gem hell" issues, use Ruby Version Manager (rvm) to configure a pristine "exactly right" Ruby version and exactly the gem set you need. I show you the versions I'm presently using for the "rubie" and gemset; I recommend you use those until you get things running. Then change either one to your taste if you like.

Here's how:

  1. Install rvm
  2. Then $ rvm install ruby-1.9.2-p136 $ rvm gemset create otherinbox $ rvm gemset use otherinbox $ gem install sproutcore -v 1.5.0.pre.5

The last command will take several minutes.

Installation

$ cd <your directory containing your projects>
$ git clone git@github.com:erichocean/otherinbox.git
$ cd otherinbox
$ cd frameworks
$ git clone https://github.com/gmoeck/jasmine-sproutcore.git
$ git clone https://github.com/FrozenCanuck/Ki.git ki
$ cd ..

Setting the Default Rubie and Gemset for this SproutCore Application

NOTE: Only do this if you are using **rvm* as described in the top section:*

So that rvm configures automatically to the rubie and gemset specified above, create a command file named '.rvmrc' with the following contents as in the following commands:

$ echo rvm 1.9.2-p136@otherinbox >.rvmrc

Configure the rubie and gemset by executing the .rvmrc file using the following command:

$ cd ../otherinbox

Note: you only have to do this once. The next time you enter the project directory, this will happen automatically.

Running the Application

$ sc-server

To see the application

http://localhost:4020/other_inbox shows the application.

To run the tests

http://localhost:4020/other_inbox/en/current/tests.html

Something went wrong with that request. Please try again.