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.
Files changed (55) hide show
  1. data/.gitignore +4 -0
  2. data/example/.sass-cache/686d48c4bb3405df08bdcc662a0722bb96d63df5/test.sassc +0 -0
  3. data/example/.sass-cache/7a5615116aa96cc45242210dec5b677975f46879/reset.sassc +0 -0
  4. data/example/app/assets/javascripts/reset.sass +1 -0
  5. data/example/app/assets/javascripts/test.js +2 -3
  6. data/example/{vendor/assets/stylesheets/.gitkeep → app/assets/javascripts/zff.js} +0 -0
  7. data/example/app/assets/stylesheets/test.css +1 -0
  8. data/example/app/views/test/index.haml +1 -1
  9. data/{vendor/assets/javascripts/zzf → example/vendor/assets/javascripts/zff/core}/core.js +1 -3
  10. data/example/vendor/assets/javascripts/zff/core.js +1 -0
  11. data/{vendor/assets/javascripts/jquery/jquery.js → example/vendor/assets/javascripts/zff/lib/jquery/core.js} +0 -0
  12. data/{vendor/assets/javascripts/jqGrid.js → example/vendor/assets/javascripts/zff/lib/jquery/grid.js} +0 -0
  13. data/{vendor/assets/javascripts/jquery/jquery-ui.js → example/vendor/assets/javascripts/zff/lib/jquery/ui.js} +0 -0
  14. data/{vendor/assets/javascripts/underscore/underscore.js → example/vendor/assets/javascripts/zff/lib/underscore/core.js} +0 -0
  15. data/{vendor/assets/javascripts/zzf-spec → example/vendor/assets/javascripts/zff/spec}/core.js +4 -4
  16. data/{vendor/assets/javascripts/qunit → example/vendor/assets/javascripts/zff/spec}/qunit.js +0 -0
  17. data/example/vendor/assets/javascripts/zff/spec.js +2 -0
  18. data/example/vendor/assets/javascripts/zff.js +0 -0
  19. data/{vendor/assets/stylesheets → example/vendor/assets/stylesheets/zff/lib}/qunit.css +0 -0
  20. data/example/vendor/assets/stylesheets/zff/reset.sass +1 -0
  21. data/example/vendor/assets/stylesheets/zff/spec.css +1 -0
  22. data/lib/zfben_rails_assets/Gemfile +12 -0
  23. data/lib/zfben_rails_assets/assets/javascripts/zff/core/core.js +57 -0
  24. data/lib/zfben_rails_assets/assets/javascripts/zff/core.js +1 -0
  25. data/lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/core.js +8936 -0
  26. data/lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/grid.js +467 -0
  27. data/lib/zfben_rails_assets/assets/javascripts/zff/lib/jquery/ui.js +11631 -0
  28. data/lib/zfben_rails_assets/assets/javascripts/zff/lib/underscore/core.js +807 -0
  29. data/lib/zfben_rails_assets/assets/javascripts/zff/spec/core.js +38 -0
  30. data/lib/zfben_rails_assets/assets/javascripts/zff/spec/qunit.js +1448 -0
  31. data/lib/zfben_rails_assets/assets/javascripts/zff/spec.js +2 -0
  32. data/lib/zfben_rails_assets/assets/javascripts/zff.js +0 -0
  33. data/lib/zfben_rails_assets/assets/stylesheets/zff/lib/qunit.css +225 -0
  34. data/lib/zfben_rails_assets/assets/stylesheets/zff/reset.sass +1 -0
  35. data/lib/zfben_rails_assets/assets/stylesheets/zff/spec.css +1 -0
  36. data/lib/zfben_rails_assets/config/compass.rb +11 -0
  37. data/lib/zfben_rails_assets/config/sass.rb +4 -0
  38. data/lib/zfben_rails_assets/tasks.rb +72 -0
  39. data/lib/zfben_rails_assets/version.rb +1 -1
  40. data/lib/zfben_rails_assets.rb +6 -2
  41. data/zfben_rails_assets.gemspec +0 -2
  42. metadata +44 -42
  43. data/vendor/assets/javascripts/jasmine/jasmine-html.js +0 -190
  44. data/vendor/assets/javascripts/jasmine/jasmine.js +0 -2445
  45. data/vendor/assets/javascripts/jasmine/mock-ajax.js +0 -114
  46. data/vendor/assets/javascripts/jasmine/spec-helper.js +0 -19
  47. data/vendor/assets/javascripts/jasmine.js +0 -4
  48. data/vendor/assets/javascripts/jquery/jquery-ui.js.1 +0 -843
  49. data/vendor/assets/javascripts/jquery.js +0 -1
  50. data/vendor/assets/javascripts/qunit.js +0 -1
  51. data/vendor/assets/javascripts/underscore.js +0 -1
  52. data/vendor/assets/javascripts/zzf/underscore.js +0 -6
  53. data/vendor/assets/javascripts/zzf-spec.js +0 -1
  54. data/vendor/assets/javascripts/zzf.js +0 -1
  55. 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
+