Sha256: 4687a7c394d39804e80cf02579723d1965258f05de7fea39450212da0d3c366d

Contents?: true

Size: 1.92 KB

Versions: 5

Compression:

Stored size: 1.92 KB

Contents

# Object-oriented JavaScript (or CoffeeScript)

This is a bundle of tools for helping you to create well organized client-side
code to be run in browsers covered by tests (or specs) in an easy way.

It uses:

- [oojspec](https://github.com/rosenfeld/oojspec) for writing specs;
- [jQuery](http://jquery.com/), the excelent DOM manipulation library;
- [FakeAjaxServer](https://github.com/rosenfeld/fake-ajax-server) for
simulating AJAX requests made with jQuery. It uses
[Sinon.js](http://sinonjs.org/) for stubbing _jQuery.ajax()_ calls;
- [js-modules](https://github.com/rosenfeld/js-modules) for splitting
your spec "classes" in multiple files for better maintainance;
- [jQuery BBQ](https://github.com/cowboy/jquery-bbq/):
don't count on that. Currently it is there only to provide $.deparam,
for helping testing params processed by plugins, like
[jQuery form](http://jquery.malsup.com/form/). If you don't need
it, just don't include it;
- The [Rails Asset Pipeline](http://guides.rubyonrails.org/asset_pipeline.html).
Yeah, sorry if you don't use Rails, but
[this can still be helpful](https://github.com/rosenfeld/oojs_assets_enabler)
for non-Rails applications.

## Installation

Add this line to your application's Gemfile:

    gem 'oojs'

And then execute:

    $ bundle

## Usage

I intend to write an article about it soon.

For now, you'll need to create your spec helper first:

    rails g oojs:spec_helper

Then, create some spec:

    rails g oojs:spec shopping_cart

Finally, run your specs:

    rake sandbox_assets:serve

And navigate to http://localhost:5000/ to see them passing.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rosenfeld/oojs/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oojs-0.3.0 README.md
oojs-0.2.3 README.md
oojs-0.2.2 README.md
oojs-0.2.1 README.md
oojs-0.2.0 README.md