Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cfc5833d5daa
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: afce13596ab0
Choose a head ref
  • 3 commits
  • 2 files changed
  • 1 contributor

Commits on Sep 7, 2015

  1. Small README tweaks

    elia committed Sep 7, 2015
    Copy the full SHA
    3c1eba3 View commit details
  2. Copy the full SHA
    7310889 View commit details
  3. Copy the full SHA
    afce135 View commit details
Showing with 8 additions and 6 deletions.
  1. +7 −6 README.md
  2. +1 −0 lib/opal/sprockets/server.rb
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -113,7 +113,8 @@ Run `bundle exec guard -i` to start `guard`.

[MSpec][] tests can be run with:

$ rake mspec
$ env SUITE=rubyspec rake mspec
$ env SUITE=opal rake mspec

Alternatively, you can just load up a rack instance using `rackup`, and
visit `http://localhost:9292/` in any web browser.
@@ -131,23 +132,23 @@ visit `http://localhost:9292/` in any web browser.
What code is supposed to run where?

* `lib/` code runs inside your Ruby env. It compiles Ruby to JavaScript.
* `opal/` is the runtime/corelib for our implementation (runs in browser)
* `stdlib/` is our implementation of Ruby's stdlib. It is optional (for browser).
* `opal/` is the runtime+corelib for our implementation (runs in browser).
* `stdlib/` is our implementation of Ruby's stdlib. It is optional (runs in browser).

### lib

The `lib` directory holds the opal parser/compiler used to compile Ruby
The `lib` directory holds the Opal parser/compiler used to compile Ruby
into JavaScript. It is also built ready for the browser into `opal-parser.js`
to allow compilation in any JavaScript environment.

### corelib

This directory holds the opal runtime and corelib implemented in Ruby and
This directory holds the Opal runtime and corelib implemented in Ruby and
JavaScript.

### stdlib

Holds the stdlib that opal currently supports. This includes `Observable`,
Holds the stdlib that Opal currently supports. This includes `Observable`,
`StringScanner`, `Date`, etc.

## Browser support
1 change: 1 addition & 0 deletions lib/opal/sprockets/server.rb
Original file line number Diff line number Diff line change
@@ -133,6 +133,7 @@ def source
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Opal Server</title>
</head>
<body>