dojox-rails 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -1
- data/CONTRIBUTORS.md +1 -1
- data/README.md +19 -2
- data/lib/dojox/rails/version.rb +1 -1
- data/lib/dojox-rails.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/CONTRIBUTORS.md
CHANGED
data/README.md
CHANGED
@@ -15,9 +15,26 @@ Just run the `bundle` command to install the gems. Then, in your javascript file
|
|
15
15
|
|
16
16
|
```coffeescript
|
17
17
|
require(["dojox/charting/Chart", "dojox/charting/themes/Claro"], (chart, theme) ->
|
18
|
-
# ... Here your code
|
18
|
+
# ... Here is your code
|
19
19
|
)
|
20
20
|
```
|
21
|
+
## Usage with Asset Pipeline in Production
|
22
|
+
|
23
|
+
To use with production and asset pipeline from Rails 3.1 you will need to have the [djConfig](http://dojotoolkit.org/documentation/tutorials/1.8/dojo_config/) hash set before you load the dojo/dojo library
|
24
|
+
|
25
|
+
*This is critical for production mode because otherwise the require[ ] statements will not load libraries correctly*
|
26
|
+
|
27
|
+
Example contents of application.js
|
28
|
+
```coffeescript
|
29
|
+
//= require dojo_config
|
30
|
+
//= require dojo/dojo
|
31
|
+
```
|
32
|
+
Contents of dojo_config.js
|
33
|
+
```javascript
|
34
|
+
dojoConfig = {
|
35
|
+
baseUrl: '/assets/dojo/'
|
36
|
+
};
|
37
|
+
```
|
21
38
|
|
22
39
|
## Contributing
|
23
40
|
|
@@ -38,4 +55,4 @@ For issues and bugs, please open a [new ticket](https://github.com/robin850/dojo
|
|
38
55
|
|
39
56
|
## License
|
40
57
|
|
41
|
-
This project is released under the MIT license. See the `LICENSE` file for more information. Dojo Toolkit is available under either the terms of the modified BSD license or the Academic Free License version 2.1. Please see the `DOJO_LICENSE` file or [visit the official page](http://dojotoolkit.org/license) for more information.
|
58
|
+
This project is released under the MIT license. See the `LICENSE` file for more information. Dojo Toolkit is available under either the terms of the modified BSD license or the Academic Free License version 2.1. Please see the `DOJO_LICENSE` file or [visit the official page](http://dojotoolkit.org/license) for more information.
|
data/lib/dojox/rails/version.rb
CHANGED
data/lib/dojox-rails.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dojox-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Dojox with Ruby on Rails
|
15
15
|
email:
|