https://github.com/opal/opal-cdn-legacy
Legacy support for the old cdn.opalrb.org
https://github.com/opal/opal-cdn-legacy
Last synced: 8 days ago
JSON representation
Legacy support for the old cdn.opalrb.org
- Host: GitHub
- URL: https://github.com/opal/opal-cdn-legacy
- Owner: opal
- Created: 2017-09-19T00:09:08.000Z (over 8 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-09-19T00:34:19.000Z (over 8 years ago)
- Last Synced: 2024-12-31T03:12:43.325Z (about 1 year ago)
- Language: JavaScript
- Size: 6.6 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Opal CDN distribution (Legacy)
*For more recent releases see [cdn.opalrb.com](https://cdn.opalrb.com)*
## URL scheme
//cdn.opalrb.org/opal//opal.js
//cdn.opalrb.org/opal//opal.min.js
//cdn.opalrb.org/opal//opal.min.js.gz
Where `` is the desired version number or `current`, examples:
//cdn.opalrb.org/opal/0.10.1/opal.js
//cdn.opalrb.org/opal/0.9.4/date.min.js
//cdn.opalrb.org/opal/current/base64.min.js.gz
## Embedding in your HTML
```html
Opal.load('opal-parser')
Opal.load('native')
#<![CDATA[
puts 'Hello from the console!'
$$[:document].write %{
<!doctype html>
<html>
<head>
<style>body{font-family:sans-serif;font-weight:100;}</style>
</head>
<body>
<h1 id="opal_cdn_distribution">Opal CDN distribution</h1>
<h2 id="url_scheme">URL scheme</h2>
<pre><code>//cdn.opalrb.org/opal/<VERSION>/opal.js
//cdn.opalrb.org/opal/<VERSION>/opal.min.js
//cdn.opalrb.org/opal/<VERSION>/opal.min.js.gz
</code></pre>
<p>Where <code><VERSION></code> is the desired version number or <code>current</code>, examples:</p>
<pre><code>//cdn.opalrb.org/opal/0.10.1/opal.js
//cdn.opalrb.org/opal/0.9.4/date.min.js
//cdn.opalrb.org/opal/current/base64.min.js.gz
</code></pre>
<h2 id="license">License</h2>
<p>See <a href="http://example.com/">http://opalrb.org</a>.</p>
</body>
</html>
}
#]]>
```
## Updating
### Opal
From the `opal` dir, assuming there's a checkout of the `gh-pages` branch of `opal-cdn` in the `cdn/` folder:
$ rake dist DIR=cdn/opal/0.7.0.dev
$ rake dist DIR=cdn/opal/master
### External libraries
$ opal-build -ropal/browser browser > cdn/external/0.6.2/opal-browser-0.2.0.beta1.js
$ opal-build -ropal-jquery opal-jquery > cdn/external/0.6.2/opal-jquery-0.2.0.js
## License
See [http://opalrb.org](http://opalrb.org).