zfben_rails_assets 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/example/.sass-cache/686d48c4bb3405df08bdcc662a0722bb96d63df5/test.sassc +0 -0
- data/example/.sass-cache/7a5615116aa96cc45242210dec5b677975f46879/reset.sassc +0 -0
- data/example/app/assets/javascripts/reset.sass +1 -0
- data/example/app/assets/javascripts/test.js +2 -3
- data/example/{vendor/assets/stylesheets/.gitkeep → app/assets/javascripts/zff.js} +0 -0
- data/example/app/assets/stylesheets/test.css +1 -0
- data/example/app/views/test/index.haml +1 -1
- data/{vendor/assets/javascripts/zzf → example/vendor/assets/javascripts/zff/core}/core.js +1 -3
- data/example/vendor/assets/javascripts/zff/core.js +1 -0
- data/{vendor/assets/javascripts/jquery/jquery.js → example/vendor/assets/javascripts/zff/lib/jquery/core.js} +0 -0
- data/{vendor/assets/javascripts/jqGrid.js → example/vendor/assets/javascripts/zff/lib/jquery/grid.js} +0 -0
- data/{vendor/assets/javascripts/jquery/jquery-ui.js → example/vendor/assets/javascripts/zff/lib/jquery/ui.js} +0 -0
- data/{vendor/assets/javascripts/underscore/underscore.js → example/vendor/assets/javascripts/zff/lib/underscore/core.js} +0 -0
- data/{vendor/assets/javascripts/zzf-spec → example/vendor/assets/javascripts/zff/spec}/core.js +4 -4
- data/{vendor/assets/javascripts/qunit → example/vendor/assets/javascripts/zff/spec}/qunit.js +0 -0
- data/example/vendor/assets/javascripts/zff/spec.js +2 -0
- data/example/vendor/assets/javascripts/zff.js +0 -0
- data/{vendor/assets/stylesheets → example/vendor/assets/stylesheets/zff/lib}/qunit.css +0 -0
- data/example/vendor/assets/stylesheets/zff/reset.sass +1 -0
- data/example/vendor/assets/stylesheets/zff/spec.css +1 -0
- data/lib/zfben_rails_assets/Gemfile +12 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/core/core.js +57 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/core.js +1 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/core.js +8936 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/grid.js +467 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/ui.js +11631 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/lib/underscore/core.js +807 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/spec/core.js +38 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/spec/qunit.js +1448 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff/spec.js +2 -0
- data/lib/zfben_rails_assets/assets/javascripts/zff.js +0 -0
- data/lib/zfben_rails_assets/assets/stylesheets/zff/lib/qunit.css +225 -0
- data/lib/zfben_rails_assets/assets/stylesheets/zff/reset.sass +1 -0
- data/lib/zfben_rails_assets/assets/stylesheets/zff/spec.css +1 -0
- data/lib/zfben_rails_assets/config/compass.rb +11 -0
- data/lib/zfben_rails_assets/config/sass.rb +4 -0
- data/lib/zfben_rails_assets/tasks.rb +72 -0
- data/lib/zfben_rails_assets/version.rb +1 -1
- data/lib/zfben_rails_assets.rb +6 -2
- data/zfben_rails_assets.gemspec +0 -2
- metadata +44 -42
- data/vendor/assets/javascripts/jasmine/jasmine-html.js +0 -190
- data/vendor/assets/javascripts/jasmine/jasmine.js +0 -2445
- data/vendor/assets/javascripts/jasmine/mock-ajax.js +0 -114
- data/vendor/assets/javascripts/jasmine/spec-helper.js +0 -19
- data/vendor/assets/javascripts/jasmine.js +0 -4
- data/vendor/assets/javascripts/jquery/jquery-ui.js.1 +0 -843
- data/vendor/assets/javascripts/jquery.js +0 -1
- data/vendor/assets/javascripts/qunit.js +0 -1
- data/vendor/assets/javascripts/underscore.js +0 -1
- data/vendor/assets/javascripts/zzf/underscore.js +0 -6
- data/vendor/assets/javascripts/zzf-spec.js +0 -1
- data/vendor/assets/javascripts/zzf.js +0 -1
- data/vendor/assets/stylesheets/jasmine.css +0 -166
@@ -0,0 +1,38 @@
|
|
1
|
+
module('Init');
|
2
|
+
|
3
|
+
test('jQuery', function(){
|
4
|
+
ok($ === jQuery, '$ === jQuery');
|
5
|
+
});
|
6
|
+
|
7
|
+
module('Load module');
|
8
|
+
|
9
|
+
asyncTest('success load', function(){
|
10
|
+
|
11
|
+
ok($.load('zff/lib/underscore/core') === 202, 'underscore is not loaded');
|
12
|
+
|
13
|
+
var i = 0;
|
14
|
+
|
15
|
+
$.load('zff/lib/underscore/core', function(){
|
16
|
+
ok($.isFunction(_), '_ is loaded');
|
17
|
+
ok($.load('zff/lib/underscore/core') === 200, 'zff/lib/underscore/core loaded');
|
18
|
+
i++;
|
19
|
+
ok(i === 1, 'success func is loaded');
|
20
|
+
});
|
21
|
+
$.load('zff/lib/underscore/core', function(){
|
22
|
+
i++;
|
23
|
+
ok(i === 2, 'twice success func is loaded');
|
24
|
+
start();
|
25
|
+
});
|
26
|
+
});
|
27
|
+
|
28
|
+
asyncTest('error load', function(){
|
29
|
+
ok($.load('null') === 202, 'null is not loaded');
|
30
|
+
|
31
|
+
$.load('null', {
|
32
|
+
error: function(){
|
33
|
+
ok($.load('null') === 500, 'module null is error');
|
34
|
+
start();
|
35
|
+
}
|
36
|
+
});
|
37
|
+
});
|
38
|
+
|