requirejs-rails 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/app/helpers/requirejs_helper.rb +4 -4
- data/bin/r.js +300 -106
- data/lib/requirejs/rails/engine.rb +9 -0
- data/lib/requirejs/rails/rjs_driver.js.erb +1 -2
- data/lib/requirejs/rails/version.rb +2 -2
- data/lib/tasks/requirejs-rails_tasks.rake +1 -17
- data/requirejs-rails.gemspec +3 -3
- data/vendor/assets/javascripts/almond.js +379 -363
- data/vendor/assets/javascripts/require.js +7 -7
- metadata +2 -15
@@ -1,5 +1,5 @@
|
|
1
1
|
/** vim: et:ts=4:sw=4:sts=4
|
2
|
-
* @license RequireJS 2.1.
|
2
|
+
* @license RequireJS 2.1.11 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
|
3
3
|
* Available via the MIT or new BSD license.
|
4
4
|
* see: http://github.com/jrburke/requirejs for details
|
5
5
|
*/
|
@@ -12,7 +12,7 @@ var requirejs, require, define;
|
|
12
12
|
(function (global) {
|
13
13
|
var req, s, head, baseElement, dataMain, src,
|
14
14
|
interactiveScript, currentlyAddingScript, mainScript, subPath,
|
15
|
-
version = '2.1.
|
15
|
+
version = '2.1.11',
|
16
16
|
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
|
17
17
|
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
|
18
18
|
jsSuffixRegExp = /\.js$/,
|
@@ -141,7 +141,7 @@ var requirejs, require, define;
|
|
141
141
|
throw err;
|
142
142
|
}
|
143
143
|
|
144
|
-
//Allow getting a global that expressed in
|
144
|
+
//Allow getting a global that is expressed in
|
145
145
|
//dot notation, like 'a.b.c'.
|
146
146
|
function getGlobal(value) {
|
147
147
|
if (!value) {
|
@@ -567,7 +567,7 @@ var requirejs, require, define;
|
|
567
567
|
mod.usingExports = true;
|
568
568
|
if (mod.map.isDefine) {
|
569
569
|
if (mod.exports) {
|
570
|
-
return mod.exports;
|
570
|
+
return (defined[mod.map.id] = mod.exports);
|
571
571
|
} else {
|
572
572
|
return (mod.exports = defined[mod.map.id] = {});
|
573
573
|
}
|
@@ -583,7 +583,7 @@ var requirejs, require, define;
|
|
583
583
|
config: function () {
|
584
584
|
return getOwn(config.config, mod.map.id) || {};
|
585
585
|
},
|
586
|
-
exports:
|
586
|
+
exports: mod.exports || (mod.exports = {})
|
587
587
|
});
|
588
588
|
}
|
589
589
|
}
|
@@ -1502,7 +1502,7 @@ var requirejs, require, define;
|
|
1502
1502
|
/**
|
1503
1503
|
* Called to enable a module if it is still in the registry
|
1504
1504
|
* awaiting enablement. A second arg, parent, the parent module,
|
1505
|
-
* is passed in for context, when this method is
|
1505
|
+
* is passed in for context, when this method is overridden by
|
1506
1506
|
* the optimizer. Not shown here to keep code compact.
|
1507
1507
|
*/
|
1508
1508
|
enable: function (depMap) {
|
@@ -2065,4 +2065,4 @@ var requirejs, require, define;
|
|
2065
2065
|
|
2066
2066
|
//Set up with config info.
|
2067
2067
|
req(cfg);
|
2068
|
-
}(this));
|
2068
|
+
}(this));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: requirejs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Whitley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.1.1
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '4.1'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 3.1.1
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '4.1'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: rails
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +31,6 @@ dependencies:
|
|
37
31
|
- - ">="
|
38
32
|
- !ruby/object:Gem::Version
|
39
33
|
version: 3.1.1
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '4.1'
|
43
34
|
type: :development
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,9 +38,6 @@ dependencies:
|
|
47
38
|
- - ">="
|
48
39
|
- !ruby/object:Gem::Version
|
49
40
|
version: 3.1.1
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '4.1'
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: sqlite3
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,4 +176,3 @@ test_files:
|
|
188
176
|
- test/dummy/script/rails
|
189
177
|
- test/requirejs-rails_test.rb
|
190
178
|
- test/test_helper.rb
|
191
|
-
has_rdoc:
|