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
@@ -1,114 +0,0 @@
1
- /*
2
- Jasmine-Ajax : a set of helpers for testing AJAX requests under the Jasmine
3
- BDD framework for JavaScript.
4
-
5
- Supports both Prototype.js and jQuery.
6
-
7
- http://github.com/pivotal/jasmine-ajax
8
-
9
- Jasmine Home page: http://pivotal.github.com/jasmine
10
-
11
- Copyright (c) 2008-2010 Pivotal Labs
12
-
13
- Permission is hereby granted, free of charge, to any person obtaining
14
- a copy of this software and associated documentation files (the
15
- "Software"), to deal in the Software without restriction, including
16
- without limitation the rights to use, copy, modify, merge, publish,
17
- distribute, sublicense, and/or sell copies of the Software, and to
18
- permit persons to whom the Software is furnished to do so, subject to
19
- the following conditions:
20
-
21
- The above copyright notice and this permission notice shall be
22
- included in all copies or substantial portions of the Software.
23
-
24
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
-
32
- */
33
-
34
- // Jasmine-Ajax interface
35
- var ajaxRequests = [];
36
-
37
- function mostRecentAjaxRequest() {
38
- if (ajaxRequests.length > 0) {
39
- return ajaxRequests[ajaxRequests.length - 1];
40
- } else {
41
- return null;
42
- }
43
- }
44
-
45
- function clearAjaxRequests() {
46
- ajaxRequests = [];
47
- }
48
-
49
- // Fake XHR for mocking Ajax Requests & Responses
50
- function FakeXMLHttpRequest() {
51
- var xhr = {
52
- requestHeaders: {},
53
-
54
- open: function() {
55
- xhr.method = arguments[0];
56
- xhr.url = arguments[1];
57
- xhr.readyState = 1;
58
- },
59
-
60
- setRequestHeader: function(header, value) {
61
- xhr.requestHeaders[header] = value;
62
- },
63
-
64
- abort: function() {
65
- xhr.readyState = 0;
66
- },
67
-
68
- readyState: 0,
69
-
70
- onreadystatechange: function() {
71
- },
72
-
73
- status: null,
74
-
75
- send: function(data) {
76
- xhr.params = data;
77
- xhr.readyState = 2;
78
- },
79
-
80
- getResponseHeader: function(name) {
81
- return xhr.responseHeaders[name];
82
- },
83
-
84
- responseText: null,
85
-
86
- response: function(response) {
87
- xhr.status = response.status;
88
- xhr.responseText = response.responseText || "";
89
- xhr.readyState = 4;
90
- xhr.responseHeaders = response.responseHeaders ||
91
- {"Content-type": response.contentType || "application/json" };
92
-
93
- // uncomment for jquery 1.3.x support
94
- // jasmine.Clock.tick(20);
95
-
96
- xhr.onreadystatechange();
97
- }
98
- };
99
-
100
- return xhr;
101
- }
102
-
103
- // Jasmine-Ajax Glue code for Prototype.js
104
- if (typeof Prototype != 'undefined' && Ajax && Ajax.Request) {
105
- Ajax.Request.prototype.originalRequest = Ajax.Request.prototype.request;
106
- Ajax.Request.prototype.request = function(url) {
107
- this.originalRequest(url);
108
- ajaxRequests.push(this);
109
- };
110
-
111
- Ajax.Request.prototype.response = function(responseOptions) {
112
- return this.transport.response(responseOptions);
113
- };
114
- }
@@ -1,19 +0,0 @@
1
- beforeEach(function() {
2
-
3
- if (typeof jQuery != 'undefined') {
4
- spyOn(jQuery.ajaxSettings, 'xhr').andCallFake(function() {
5
- var newXhr = new FakeXMLHttpRequest();
6
- ajaxRequests.push(newXhr);
7
- return newXhr;
8
- });
9
- }
10
-
11
- if (typeof Prototype != 'undefined') {
12
- spyOn(Ajax, "getTransport").andCallFake(function() {
13
- return new FakeXMLHttpRequest();
14
- });
15
- }
16
-
17
- clearAjaxRequests();
18
-
19
- });
@@ -1,4 +0,0 @@
1
- //= require jasmine/jasmine
2
- //= require jasmine/jasmine-html
3
- //= require jasmine/mock-ajax
4
- //= require jasmine/spec-helper