psyho_juicer 1.0.0 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/Gemfile +11 -0
  2. data/History.txt +33 -0
  3. data/Readme.rdoc +16 -4
  4. data/VERSION +1 -1
  5. data/lib/juicer/asset/path.rb +6 -10
  6. data/lib/juicer/cache_buster.rb +53 -13
  7. data/lib/juicer/command/merge.rb +14 -6
  8. data/lib/juicer/css_cache_buster.rb +6 -4
  9. data/lib/juicer/dependency_resolver/css_dependency_resolver.rb +1 -1
  10. data/lib/juicer/image_embed.rb +18 -20
  11. data/lib/juicer/install/yui_compressor_installer.rb +2 -1
  12. data/lib/juicer/merger/stylesheet_merger.rb +5 -5
  13. data/lib/juicer/minifyer/closure_compiler.rb +1 -1
  14. data/lib/juicer.rb +1 -1
  15. data/lib/psyho_juicer.rb +1 -0
  16. data/test/data/Changelog.txt +10 -0
  17. data/test/data/a.css +3 -0
  18. data/test/data/a.js +5 -0
  19. data/test/data/a1.css +5 -0
  20. data/test/data/b.css +1 -0
  21. data/test/data/b.js +5 -0
  22. data/test/data/b1.css +5 -0
  23. data/test/data/b2.css +5 -0
  24. data/test/data/c1.css +3 -0
  25. data/test/data/css/2.gif +1 -0
  26. data/test/data/css/test.css +15 -0
  27. data/test/data/css/test2.css +1 -0
  28. data/test/data/css/test3.css +12 -0
  29. data/test/data/d1.css +3 -0
  30. data/test/data/images/1.png +1 -0
  31. data/test/data/my_app.js +2 -0
  32. data/test/data/not-ok.js +2 -0
  33. data/test/data/ok.js +3 -0
  34. data/test/data/path_test.css +5 -0
  35. data/test/data/path_test2.css +14 -0
  36. data/test/data/pkg/module/moda.js +2 -0
  37. data/test/data/pkg/module/modb.js +3 -0
  38. data/test/data/pkg/pkg.js +1 -0
  39. data/test/fixtures/git-tracked-file.txt +1 -0
  40. data/test/fixtures/yui-download.html +103 -243
  41. data/test/test_helper.rb +27 -1
  42. data/test/unit/juicer/asset/path_test.rb +7 -1
  43. data/test/unit/juicer/cache_buster_test.rb +95 -5
  44. data/test/unit/juicer/command/util_test.rb +1 -1
  45. data/test/unit/juicer/css_cache_buster_test.rb +127 -32
  46. data/test/unit/juicer/image_embed_test.rb +35 -0
  47. data/test/unit/juicer/merger/stylesheet_merger_test.rb +175 -109
  48. data/test/unit/juicer/minifyer/closure_compressor_test.rb +3 -3
  49. metadata +68 -21
@@ -8,22 +8,17 @@
8
8
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
9
9
  <link rel="icon" href="/favicon.ico" type="image/x-icon">
10
10
  <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0/build/reset-fonts-grids/reset-fonts-grids.css">
11
- <link rel="stylesheet" type="text/css" href="/assets/skin/yuilib-11.30.2009.css">
12
- <script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.0r4/build/yuiloader-dom-event/yuiloader-dom-event.js&3.0.0/build/yui/yui-min.js&3.0.0/build/loader/loader-min.js&3.0.0/build/oop/oop-min.js&3.0.0/build/dom/dom-min.js&3.0.0/build/event-custom/event-custom-base-min.js&3.0.0/build/event/event-base-min.js&3.0.0/build/pluginhost/pluginhost-min.js&3.0.0/build/node/node-min.js&3.0.0/build/event/event-delegate-min.js"></script>
11
+ <link rel="stylesheet" type="text/css" href="/assets/skin/yuilib-04.02.2010.css">
12
+ <script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.0r4/build/yuiloader-dom-event/yuiloader-dom-event.js&3.1.0/build/yui/yui-min.js&3.1.0/build/loader/loader-min.js&3.1.0/build/oop/oop-min.js&3.1.0/build/dom/dom-min.js&3.1.0/build/event-custom/event-custom-base-min.js&3.1.0/build/event/event-base-min.js&3.1.0/build/pluginhost/pluginhost-min.js&3.1.0/build/node/node-min.js&3.1.0/build/event/event-delegate-min.js"></script>
13
13
  <script>
14
14
  var YUIConfig = {
15
15
  baseyui2: 'http://yui.yahooapis.com/2.8.0r4/build/',
16
- base: 'http://yui.yahooapis.com/3.0.0/build/',
17
- debug: false,
16
+ base: 'http://yui.yahooapis.com/3.1.0/build/',
17
+ debug: false//,
18
18
  //filter: 'DEBUG',
19
- combine: true
19
+ //combine: false
20
20
  };
21
21
  </script>
22
- <style>
23
- #downloads tr.hide {
24
- display: none;
25
- }
26
- </style>
27
22
  </head>
28
23
  <body>
29
24
  <div id="wrap">
@@ -48,23 +43,18 @@ var YUIConfig = {
48
43
  <li><a href="/" title="Home">Home</a></li>
49
44
  <li><a href="/gallery" title="Gallery">Gallery</a></li>
50
45
  <li><a href="/forum" title="Forums">Forums</a></li>
51
- <li><a href="/projects/yui2/wiki">YUI 2.x</a></li>
52
- <li><a href="/projects/yui3/wiki">YUI 3.x</a></li>
53
- <li><a href="/projects/yuicompressor/wiki">YUICompressor</a></li>
54
- <li><a href="/projects/yuidoc/wiki">YUIDoc</a></li>
46
+ <li><a href="/projects/yui2/">YUI 2</a></li>
47
+ <li><a href="/projects/yui3/">YUI 3</a></li>
48
+ <li><a href="/projects/yuicompressor/">YUI Compressor</a></li>
49
+ <li><a href="/projects/yuidoc/">YUI Doc</a></li>
55
50
  <li><a href="/projects" class="more">More</a></li>
56
51
  </ul>
57
52
 
58
53
  <div id="sections" class="clearfix">
59
54
  <ul class="clearfix">
60
-
61
- <!-- <div id="subnav" class="navtabs clearfix">
62
- <ul> -->
63
- <li><a href="/forum/ucp.php?mode=register">Register</a></li>
55
+ <li><a href="/forum/ucp.php?mode=register">Register</a></li>
64
56
  <li><a href="/forum/ucp.php?mode=login&redirect=/downloads/">Login</a></li>
65
- <!-- </ul>
66
- </div> -->
67
- </ul>
57
+ </ul>
68
58
  </div>
69
59
  </div>
70
60
  <div id="bd">
@@ -74,218 +64,71 @@ var YUIConfig = {
74
64
 
75
65
 
76
66
 
77
-
78
- <h1><a href="http://feeds.feedburner.com/YuiDownloads"><img src="/assets/rss.png"></a> YUI Downloads</h1>
67
+ <h1>All YUI Downloads</h1>
79
68
 
80
69
  <div id="downloads">
81
- <table id="yui2_downloads">
82
- <thead>
83
- <tr class="odd">
84
- <th class="release"><h2 id="yui2">YUI 2.x</h2></th>
85
- <th class="date">Date</th>
86
- <th class="md5">MD5</th>
87
- </tr>
88
- </thead>
89
- <tbody>
90
- <tr class="even">
91
- <td><a href="yui2/yui_2.8.0r4.zip" title="Version 2.8.0r4">Version 2.8.0r4</a></td>
92
- <td>09/14/2009</td>
93
- <td><em class="md5">9528eeab1bc4291eea329bccc9caa5de</em></td>
94
- </tr>
95
- <tr class="odd">
96
- <td><a href="yui2/yui_2.7.0b.zip" title="Version 2.7.0b">Version 2.7.0b</a></td>
97
- <td>02/19/2009</td>
98
- <td><em class="md5">90778a161ce9108a23a590e5198b8116</em></td>
99
- </tr>
100
- <tr class="even">
101
- <td><a href="yui2/yui_2.6.0.zip" title="Version 2.6.0">Version 2.6.0</a></td>
102
- <td>10/01/2008</td>
103
- <td><em class="md5">41bed4b882c9148cebff5dd1a0dd8727</em></td>
104
- </tr>
105
- <tr class="odd hide">
106
- <td><a href="yui2/yui_2.5.2.zip" title="Version 2.5.2">Version 2.5.2</a></td>
107
- <td>05/28/2008</td>
108
- <td><em class="md5">eaadfcbcb651c50092bb679266aa3c20</em></td>
109
- </tr>
110
- <tr class="even hide">
111
- <td><a href="yui2/yui_2.5.1.zip" title="Version 2.5.1">Version 2.5.1</a></td>
112
- <td>03/19/2008</td>
113
- <td><em class="md5">7416914904daa7d953583483db67609c</em></td>
114
- </tr>
115
- <tr class="odd hide">
116
- <td><a href="yui2/yui_2.5.0.zip" title="Version 2.5.0">Version 2.5.0</a></td>
117
- <td>02/20/2008</td>
118
- <td><em class="md5">85d26357f8413de437318a9e2333dfce</em></td>
119
- </tr>
120
- <tr class="even hide">
121
- <td><a href="yui2/yui_2.4.1.zip" title="Version 2.4.1">Version 2.4.1</a></td>
122
- <td>12/19/2007</td>
123
- <td><em class="md5">2a4b302cd94a6612b2799717eecdbfdb</em></td>
124
- </tr>
125
- <tr class="odd hide">
126
- <td><a href="yui2/yui_2.4.0.zip" title="Version 2.4.0">Version 2.4.0</a></td>
127
- <td>12/04/2007</td>
128
- <td><em class="md5">749ff89f77b4cf9e5ec330e60b507776</em></td>
129
- </tr>
130
- <tr class="even hide">
131
- <td><a href="yui2/yui_2.3.1.zip" title="Version 2.3.1">Version 2.3.1</a></td>
132
- <td>09/19/2007</td>
133
- <td><em class="md5">172ad5e3fa4c3e9424b29fb2fd854fb6</em></td>
134
- </tr>
135
- <tr class="odd hide">
136
- <td><a href="yui2/yui_2.3.0.zip" title="Version 2.3.0">Version 2.3.0</a></td>
137
- <td>07/30/2007</td>
138
- <td><em class="md5">d085f77a00c4b4e30c0c748dd4680f60</em></td>
139
- </tr>
140
- <tr class="even hide">
141
- <td><a href="yui2/yui_2.2.2.zip" title="Version 2.2.2">Version 2.2.2</a></td>
142
- <td>04/18/2007</td>
143
- <td><em class="md5">79483d2f16f597d46f92257744b46406</em></td>
144
- </tr>
145
- <tr class="odd hide">
146
- <td><a href="yui2/yui_2.2.0a.zip" title="Version 2.2.0a">Version 2.2.0a</a></td>
147
- <td>02/22/2007</td>
148
- <td><em class="md5">a4ebf4e3c8413079edd0abaca99d8cb3</em></td>
149
- </tr>
150
- <tr class="even hide">
151
- <td><a href="yui2/yui_0.12.2.zip" title="Version 0.12.2">Version 0.12.2</a></td>
152
- <td>01/08/2007</td>
153
- <td><em class="md5">312c580eb5368b5cae11cba6c1d325bb</em></td>
154
- </tr>
155
- <tr class="odd hide">
156
- <td><a href="yui2/yui_0.11.4.zip" title="Version 0.11.4">Version 0.11.4</a></td>
157
- <td>09/26/2006</td>
158
- <td><em class="md5">8c8e7a3d9c770b82d57546d5fb60ef34</em></td>
159
- </tr>
160
- <tr class="even hide">
161
- <td><a href="yui2/yui_0.10.0.zip" title="Version 0.10.0">Version 0.10.0</a></td>
162
- <td>06/27/2006</td>
163
- <td><em class="md5">4a631c55506e0814b174af3e81f8c94b</em></td>
164
- </tr>
165
- <tr class="show_more_yui2"><td colspan="3"><a href="?show=yui2" class="show_hidden" id="yui2_show_hidden">[Show older files]</a></td></tr> </tbody>
166
- </table>
167
- <table>
168
- <thead>
169
- <tr class="odd">
170
- <th class="release"><h2 id="yui3">YUI 3.x</h2></th>
171
- <th class="date">Date</th>
172
- <th class="md5">MD5</th>
173
- </tr>
174
- </thead>
175
- <tbody>
176
- <tr class="even">
177
- <td><a href="yui3/yui_3.0.0.zip">3.0.0</a></td><td>09/29/2009</td><td><em class="md5">da4b9cd0e92204a2b7c27a3a3686cec5</em></td>
178
- </tr>
179
- <tr class="odd">
180
- <td><a href="yui3/yui_3.0.0b1.zip">3.0.0 Beta 1</a></td><td>06/24/2009</td><td><em class="md5">36921bfc07adce63dd3c9cb62dceb4fd</em></td>
181
- </tr>
182
- <tr class="even">
183
- <td><a href="yui3/yui_3.0.0pr2.zip">Preview Release 2</a></td><td>12/09/2008</td><td><em class="md5">9e5d0fe289454ca11586d904142530d1</em></td>
184
- </tr>
185
- <tr class="odd">
186
- <td><a href="yui3/yui_3.0.0pr1.zip">Preview Release 1</a></td><td>08/13/2008</td><td><em class="md5">a7f6c1237d89ca7d85afaf0978e55bfb</em></td>
187
- </tr>
188
- </tbody>
189
- </table>
190
- <table>
191
- <thead>
192
- <tr class="odd">
193
- <th class="release"><h2 id="yuidoc">YUI Doc</h2></th>
194
- <th class="date">Date</th>
195
- <th class="md5">MD5</th>
196
- </tr>
197
- </thead>
198
- <tbody>
199
- <tr class="even">
200
- <td><a href="yuidoc/yuidoc_1.0.0b1.zip">1.0.0b1</a></td><td>12/08/2008</td><td><em class="md5">cd5545d2dec8f7afe3d18e793538162c</em></td>
201
- </tr>
202
- </tbody>
203
- </table>
204
- <table>
205
- <thead>
206
- <tr class="odd">
207
- <th class="release"><h2 id="builder">YUI Builder</h2></th>
208
- <th class="date">Date</th>
209
- <th class="md5">MD5</th>
210
- </tr>
211
- </thead>
212
- <tbody>
213
- <tr class="even">
214
- <td><a href="builder/builder_1.0.0b1.zip">1.0.0b1</a></td><td>03/10/2009</td><td><em class="md5">aa21f55cffd83ea2f02f2c0fb87265ae</em></td>
215
- </tr>
216
- </tbody>
217
- </table>
218
- <table>
219
- <thead>
220
- <tr class="odd">
221
- <th class="release"><h2 id="yuicompressor">YUI Compressor</h2></th>
222
- <th class="date">Date</th>
223
- <th class="md5">MD5</th>
224
- </tr>
225
- </thead>
226
- <tbody>
227
- <tr class="even">
228
- <td><a href="yuicompressor/yuicompressor-2.4.2.zip">2.4.2</a></td><td>06/10/2009</td><td><em class="md5">2a526a9aedfe2affceed1e1c3f9c0579</em></td>
229
- </tr>
230
- </tbody>
231
- </table>
232
- <table>
233
- <thead>
234
- <tr class="odd">
235
- <th class="release"><h2 id="phploader">YUI PHP Loader</h2></th>
236
- <th class="date">Date</th>
237
- <th class="md5">MD5</th>
238
- </tr>
239
- </thead>
240
- <tbody>
241
- <tr class="even">
242
- <td><a href="phploader/yuiphploader-1.0.0b2.zip">1.0.0b2</a></td><td>12/02/2009</td><td><em class="md5">963292134958e2a60aa5473cb148db3b</em></td>
243
- </tr>
244
- <tr class="odd">
245
- <td><a href="phploader/yuiphploader-1.0.0b1.zip">1.0.0b1</a></td><td>09/09/2009</td><td><em class="md5">f141af403d076abaf98be362658a61e1</em></td>
246
- </tr>
247
- </tbody>
248
- </table>
70
+ <ul>
71
+ <li><h3 id="yui3">YUI 3</h3>
72
+ <ul>
73
+ <li><a href="/downloads/download.php?file=9c36ac648283d656c4a4bab4991e14a6" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=9c36ac648283d656c4a4bab4991e14a6" title="3.1.0 - 03/31/2010 - 9c36ac648283d656c4a4bab4991e14a6">3.1.0</a><em>03/31/2010</em><strong title="9c36ac648283d656c4a4bab4991e14a6">MD5: 9c36ac648</strong></li><li><a href="/downloads/download.php?file=da4b9cd0e92204a2b7c27a3a3686cec5" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=da4b9cd0e92204a2b7c27a3a3686cec5" title="3.0.0 - 09/29/2009 - da4b9cd0e92204a2b7c27a3a3686cec5">3.0.0</a><em>09/29/2009</em><strong title="da4b9cd0e92204a2b7c27a3a3686cec5">MD5: da4b9cd0e</strong></li><li class="hidden"><a href="/downloads/download.php?file=36921bfc07adce63dd3c9cb62dceb4fd" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=36921bfc07adce63dd3c9cb62dceb4fd" title="3.0.0 Beta1 - 06/24/2009 - 36921bfc07adce63dd3c9cb62dceb4fd">3.0.0 Beta1</a><em>06/24/2009</em><strong title="36921bfc07adce63dd3c9cb62dceb4fd">MD5: 36921bfc0</strong></li><li class="hidden"><a href="/downloads/download.php?file=9e5d0fe289454ca11586d904142530d1" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=9e5d0fe289454ca11586d904142530d1" title="3.0.0 PR2 - 12/09/2008 - 9e5d0fe289454ca11586d904142530d1">3.0.0 PR2</a><em>12/09/2008</em><strong title="9e5d0fe289454ca11586d904142530d1">MD5: 9e5d0fe28</strong></li><li class="hidden"><a href="/downloads/download.php?file=a7f6c1237d89ca7d85afaf0978e55bfb" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=a7f6c1237d89ca7d85afaf0978e55bfb" title="3.0.0 PR1 - 08/13/2008 - a7f6c1237d89ca7d85afaf0978e55bfb">3.0.0 PR1</a><em>08/13/2008</em><strong title="a7f6c1237d89ca7d85afaf0978e55bfb">MD5: a7f6c1237</strong></li><li><a href="?show=yui3" class="show-more" title="Show more download files.">Show more files.</a></li></ul></li>
74
+ <li><h3 id="yui2">YUI 2</h3>
75
+ <ul>
76
+ <li><a href="/downloads/download.php?file=9528eeab1bc4291eea329bccc9caa5de" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=9528eeab1bc4291eea329bccc9caa5de" title="2.8.0 - 09/14/2009 - 9528eeab1bc4291eea329bccc9caa5de">2.8.0</a><em>09/14/2009</em><strong title="9528eeab1bc4291eea329bccc9caa5de">MD5: 9528eeab1</strong></li><li><a href="/downloads/download.php?file=90778a161ce9108a23a590e5198b8116" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=90778a161ce9108a23a590e5198b8116" title="2.7.0 - 02/18/2009 - 90778a161ce9108a23a590e5198b8116">2.7.0</a><em>02/18/2009</em><strong title="90778a161ce9108a23a590e5198b8116">MD5: 90778a161</strong></li><li class="hidden"><a href="/downloads/download.php?file=41bed4b882c9148cebff5dd1a0dd8727" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=41bed4b882c9148cebff5dd1a0dd8727" title="2.6.0 - 10/01/2008 - 41bed4b882c9148cebff5dd1a0dd8727">2.6.0</a><em>10/01/2008</em><strong title="41bed4b882c9148cebff5dd1a0dd8727">MD5: 41bed4b88</strong></li><li class="hidden"><a href="/downloads/download.php?file=eaadfcbcb651c50092bb679266aa3c20" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=eaadfcbcb651c50092bb679266aa3c20" title="2.5.2 - 05/28/2008 - eaadfcbcb651c50092bb679266aa3c20">2.5.2</a><em>05/28/2008</em><strong title="eaadfcbcb651c50092bb679266aa3c20">MD5: eaadfcbcb</strong></li><li class="hidden"><a href="/downloads/download.php?file=7416914904daa7d953583483db67609c" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=7416914904daa7d953583483db67609c" title="2.5.1 - 03/19/2008 - 7416914904daa7d953583483db67609c">2.5.1</a><em>03/19/2008</em><strong title="7416914904daa7d953583483db67609c">MD5: 741691490</strong></li><li class="hidden"><a href="/downloads/download.php?file=85d26357f8413de437318a9e2333dfce" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=85d26357f8413de437318a9e2333dfce" title="2.5.0 - 02/20/2008 - 85d26357f8413de437318a9e2333dfce">2.5.0</a><em>02/20/2008</em><strong title="85d26357f8413de437318a9e2333dfce">MD5: 85d26357f</strong></li><li class="hidden"><a href="/downloads/download.php?file=2a4b302cd94a6612b2799717eecdbfdb" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=2a4b302cd94a6612b2799717eecdbfdb" title="2.4.1 - 12/19/2007 - 2a4b302cd94a6612b2799717eecdbfdb">2.4.1</a><em>12/19/2007</em><strong title="2a4b302cd94a6612b2799717eecdbfdb">MD5: 2a4b302cd</strong></li><li class="hidden"><a href="/downloads/download.php?file=749ff89f77b4cf9e5ec330e60b507776" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=749ff89f77b4cf9e5ec330e60b507776" title="2.4.0 - 12/04/2007 - 749ff89f77b4cf9e5ec330e60b507776">2.4.0</a><em>12/04/2007</em><strong title="749ff89f77b4cf9e5ec330e60b507776">MD5: 749ff89f7</strong></li><li class="hidden"><a href="/downloads/download.php?file=172ad5e3fa4c3e9424b29fb2fd854fb6" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=172ad5e3fa4c3e9424b29fb2fd854fb6" title="2.3.1 - 09/19/2007 - 172ad5e3fa4c3e9424b29fb2fd854fb6">2.3.1</a><em>09/19/2007</em><strong title="172ad5e3fa4c3e9424b29fb2fd854fb6">MD5: 172ad5e3f</strong></li><li class="hidden"><a href="/downloads/download.php?file=d085f77a00c4b4e30c0c748dd4680f60" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=d085f77a00c4b4e30c0c748dd4680f60" title="2.3.0 - 07/30/2007 - d085f77a00c4b4e30c0c748dd4680f60">2.3.0</a><em>07/30/2007</em><strong title="d085f77a00c4b4e30c0c748dd4680f60">MD5: d085f77a0</strong></li><li class="hidden"><a href="/downloads/download.php?file=79483d2f16f597d46f92257744b46406" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=79483d2f16f597d46f92257744b46406" title="2.2.2 - 04/18/2007 - 79483d2f16f597d46f92257744b46406">2.2.2</a><em>04/18/2007</em><strong title="79483d2f16f597d46f92257744b46406">MD5: 79483d2f1</strong></li><li class="hidden"><a href="/downloads/download.php?file=a4ebf4e3c8413079edd0abaca99d8cb3" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=a4ebf4e3c8413079edd0abaca99d8cb3" title="2.2.0 - 02/22/2007 - a4ebf4e3c8413079edd0abaca99d8cb3">2.2.0</a><em>02/22/2007</em><strong title="a4ebf4e3c8413079edd0abaca99d8cb3">MD5: a4ebf4e3c</strong></li><li><a href="?show=yui2" class="show-more" title="Show more download files.">Show more files.</a></li></ul></li>
77
+ <li><h3 id="builder">YUI Build Tool</h3>
78
+ <ul>
79
+ <li><a href="/downloads/download.php?file=aa21f55cffd83ea2f02f2c0fb87265ae" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=aa21f55cffd83ea2f02f2c0fb87265ae" title="1.0.0b1 - 03/10/2009 - aa21f55cffd83ea2f02f2c0fb87265ae">1.0.0b1</a><em>03/10/2009</em><strong title="aa21f55cffd83ea2f02f2c0fb87265ae">MD5: aa21f55cf</strong></li></ul></li>
80
+ <li><h3 id="phploader">YUI PHP Loader</h3>
81
+ <ul>
82
+ <li><a href="/downloads/download.php?file=963292134958e2a60aa5473cb148db3b" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=963292134958e2a60aa5473cb148db3b" title="1.0.0b2 - 12/02/2009 - 963292134958e2a60aa5473cb148db3b">1.0.0b2</a><em>12/02/2009</em><strong title="963292134958e2a60aa5473cb148db3b">MD5: 963292134</strong></li><li><a href="/downloads/download.php?file=f141af403d076abaf98be362658a61e1" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=f141af403d076abaf98be362658a61e1" title="1.0.0b1 - 09/09/2009 - f141af403d076abaf98be362658a61e1">1.0.0b1</a><em>09/09/2009</em><strong title="f141af403d076abaf98be362658a61e1">MD5: f141af403</strong></li></ul></li>
83
+ <li><h3 id="yuicompressor">YUI Compressor</h3>
84
+ <ul>
85
+ <li><a href="/downloads/download.php?file=2a526a9aedfe2affceed1e1c3f9c0579" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=2a526a9aedfe2affceed1e1c3f9c0579" title="2.4.2 - 06/10/2009 - 2a526a9aedfe2affceed1e1c3f9c0579">2.4.2</a><em>06/10/2009</em><strong title="2a526a9aedfe2affceed1e1c3f9c0579">MD5: 2a526a9ae</strong></li></ul></li>
86
+ <li><h3 id="yuidoc">YUI Doc</h3>
87
+ <ul>
88
+ <li><a href="/downloads/download.php?file=cd5545d2dec8f7afe3d18e793538162c" class="icon"><img src="/assets/archive_zip.png"></a> <a href="/downloads/download.php?file=cd5545d2dec8f7afe3d18e793538162c" title="1.0.0b1 - 12/05/2008 - cd5545d2dec8f7afe3d18e793538162c">1.0.0b1</a><em>12/05/2008</em><strong title="cd5545d2dec8f7afe3d18e793538162c">MD5: cd5545d2d</strong></li></ul></li>
89
+ </ul>
249
90
  </div>
250
-
91
+ <script src="/assets/download-min.js"></script>
251
92
  </div>
252
93
  </div>
253
94
  <div class="yui-b secondary sidebar">
254
- <div class="mod">
95
+ <div id="site-notice" class="bubble-note">
96
+ YUI 3.1.0 is now available, <a href="http://www.yuiblog.com/blog/2010/03/31/announcing-yui-3-1-0/">visit YUI Blog</a> for more information.
97
+ </div><div class="mod">
255
98
  <div class="hd"><h4><a href="/forum/recent.php">Recent Forums Posts</a></h4></div>
256
99
  <div class="bd">
257
100
  <ul>
258
101
  <li>
259
- <h5><a href="/forum/viewtopic.php?p=8069#p8069">Tooltips on Hover over TabView Tabs</a></h5>
260
- <cite class="author">Craig Cassata</cite> <cite class="date">Jan 20th</cite>
102
+ <h5><a href="/forum/viewtopic.php?p=11417#p11417">Direct link to tabs</a></h5>
103
+ <cite class="author"><img src="http://www.gravatar.com/avatar/b82c5d778260c134db7f6a5fc7c2c21b?s=14&d=http://yuilibrary.com/assets/gravatar-14.png"> Dream Team</cite> <cite class="date">Apr 15th</cite>
261
104
  </li>
262
105
  <li>
263
- <h5><a href="/forum/viewtopic.php?p=8068#p8068">TreeView - configure setDynamicLoad()</a></h5>
264
- <cite class="author">koalabruder</cite> <cite class="date">Jan 20th</cite>
106
+ <h5><a href="/forum/viewtopic.php?p=11416#p11416">Re: Easy YUI Compressor for Windows.</a></h5>
107
+ <cite class="author"><img src="http://www.gravatar.com/avatar/4771a4a77a5c90d84a4168d27d08024b?s=14&d=http://yuilibrary.com/assets/gravatar-14.png"> hani</cite> <cite class="date">Apr 15th</cite>
265
108
  </li>
266
109
  <li>
267
- <h5><a href="/forum/viewtopic.php?p=8067#p8067">Re: Prevent onclick from inside mousedown event?</a></h5>
268
- <cite class="author">Adam Moore</cite> <cite class="date">Jan 20th</cite>
110
+ <h5><a href="/forum/viewtopic.php?p=11415#p11415">Re: Easy YUI Compressor for Windows.</a></h5>
111
+ <cite class="author"><img src="http://www.gravatar.com/avatar/3cb68a0b4204139bd4747f7803f440c4?s=14&d=http://yuilibrary.com/assets/gravatar-14.png"> royce</cite> <cite class="date">Apr 14th</cite>
269
112
  </li>
270
113
  <li>
271
- <h5><a href="/forum/viewtopic.php?p=8066#p8066">Re: Datatable &quot;grays out&quot; after updating a column's data.</a></h5>
272
- <cite class="author">Satyam</cite> <cite class="date">Jan 20th</cite>
114
+ <h5><a href="/forum/viewtopic.php?p=11414#p11414">Re: Integration of RTE into XForms</a></h5>
115
+ <cite class="author"><img src="http://www.gravatar.com/avatar/c2d8dcb414ae7efa4aaae037625bebbf?s=14&d=http://yuilibrary.com/assets/gravatar-14.png"> Claudius Teodorescu</cite> <cite class="date">Apr 14th</cite>
273
116
  </li>
274
117
  <li>
275
- <h5><a href="/forum/viewtopic.php?p=8065#p8065">Re: Datatable &quot;grays out&quot; after updating a column's data.</a></h5>
276
- <cite class="author">Lonnie Broadnax</cite> <cite class="date">Jan 20th</cite>
118
+ <h5><a href="/forum/viewtopic.php?p=11413#p11413">Re: YuiLoader and css flicker</a></h5>
119
+ <cite class="author"><img src="http://www.gravatar.com/avatar/4479397d42c17503323ae88bf8932e42?s=14&d=http://yuilibrary.com/assets/gravatar-14.png"> Adam Moore</cite> <cite class="date">Apr 14th</cite>
277
120
  </li>
278
121
  <li>
279
- <h5><a href="/forum/viewtopic.php?p=8064#p8064">Re: Datatable &quot;grays out&quot; after updating a column's data.</a></h5>
280
- <cite class="author">Lonnie Broadnax</cite> <cite class="date">Jan 20th</cite>
122
+ <h5><a href="/forum/viewtopic.php?p=11412#p11412">YuiLoader and css flicker</a></h5>
123
+ <cite class="author"><img src="http://www.gravatar.com/avatar/6c65bf90850933eb9a5222e5740f49ef?s=14&d=http://yuilibrary.com/assets/gravatar-14.png"> David McArdle</cite> <cite class="date">Apr 14th</cite>
281
124
  </li>
282
125
  <li>
283
- <h5><a href="/forum/viewtopic.php?p=8063#p8063">Re: AutoComplete doesn't ignore keydown events for shift keys</a></h5>
284
- <cite class="author">Luke Smith</cite> <cite class="date">Jan 20th</cite>
126
+ <h5><a href="/forum/viewtopic.php?p=11411#p11411">Re: Client Side Filtering on JSON data</a></h5>
127
+ <cite class="author"><img src="http://www.gravatar.com/avatar/e5f7bcbb12686b89c17e2d80d5573ccf?s=14&d=http://yuilibrary.com/assets/gravatar-14.png"> Jean Charles</cite> <cite class="date">Apr 14th</cite>
285
128
  </li>
286
129
  <li>
287
- <h5><a href="/forum/viewtopic.php?p=8062#p8062">Re: Cross domain file upload issue</a></h5>
288
- <cite class="author">Alex Led</cite> <cite class="date">Jan 20th</cite>
130
+ <h5><a href="/forum/viewtopic.php?p=11410#p11410">removing nodes by setting innerHTML=&quot;&quot; - removing listeners?</a></h5>
131
+ <cite class="author"><img src="http://www.gravatar.com/avatar/6eb0d06190c46a6d8ec340b342f74c26?s=14&d=http://yuilibrary.com/assets/gravatar-14.png"> kevin furze</cite> <cite class="date">Apr 14th</cite>
289
132
  </li>
290
133
  </ul>
291
134
 
@@ -295,31 +138,31 @@ var YUIConfig = {
295
138
  <div class="hd"><h4>Recent <a href="http://yuiblog.com">YUI Blog</a> Posts</h4></div>
296
139
  <div class="bd">
297
140
 
298
- <!-- Auto-generated Sidebar (Wed, 20 Jan 2010 23:03:01 +0000) -->
141
+ <!-- Auto-generated Sidebar (Thu, 15 Apr 2010 07:30:01 +0000) -->
299
142
  <ul>
300
143
  <li>
301
- <h5><a href="http://www.yuiblog.com/blog/2010/01/19/in-the-wild-for-january-19-2010/">In the Wild for January 19, 2010</a></h5>
302
- <cite class="author">Eric Miraglia</cite> <cite class="date">Jan 19th</cite>
144
+ <h5><a href="http://www.yuiblog.com/blog/2010/04/14/treeble-using-nested-yui-2-datasources-for-row-expansion/">Treeble: Using Nested YUI 2 DataSources for Row Expansion</a></h5>
145
+ <cite class="author">John Lindal</cite> <cite class="date">Apr 14th</cite>
303
146
  </li>
304
147
  <li>
305
- <h5><a href="http://www.yuiblog.com/blog/2010/01/08/in-the-wild-for-january-10-2010/">In the Wild for January 10, 2010</a></h5>
306
- <cite class="author">Eric Miraglia</cite> <cite class="date">Jan 8th</cite>
148
+ <h5><a href="http://www.yuiblog.com/blog/2010/04/13/yui4java-a-new-java-to-javascript-translator-using-yui-2/">yui4java: A New Java-to-JavaScript Translator Using YUI 2</a></h5>
149
+ <cite class="author">Eric Miraglia</cite> <cite class="date">Apr 13th</cite>
307
150
  </li>
308
151
  <li>
309
- <h5><a href="http://www.yuiblog.com/blog/2010/01/07/more-code-reuse-patterns-in-yui3/">More code reuse patterns in YUI3</a></h5>
310
- <cite class="author">Stoyan Stefanov</cite> <cite class="date">Jan 7th</cite>
152
+ <h5><a href="http://www.yuiblog.com/blog/2010/04/12/vitalist/">Implementation Focus: Vitalist, a Getting Things Done (GTD) Web App Built with YUI 2</a></h5>
153
+ <cite class="author">Matt Berg</cite> <cite class="date">Apr 12th</cite>
311
154
  </li>
312
155
  <li>
313
- <h5><a href="http://www.yuiblog.com/blog/2010/01/06/inheritance-patterns-in-yui-3/">Inheritance Patterns in YUI 3</a></h5>
314
- <cite class="author">Stoyan Stefanov</cite> <cite class="date">Jan 6th</cite>
156
+ <h5><a href="http://www.yuiblog.com/blog/2010/04/09/in-the-wild-for-april-9-2010/">In the Wild for April 9, 2010</a></h5>
157
+ <cite class="author">Eric Miraglia</cite> <cite class="date">Apr 9th</cite>
315
158
  </li>
316
159
  <li>
317
- <h5><a href="http://www.yuiblog.com/blog/2010/01/05/crockford-at-accu/">Crockford delivering “State and Future of JavaScript” talk at ACCU in Mountain View on January 13</a></h5>
318
- <cite class="author">Eric Miraglia</cite> <cite class="date">Jan 5th</cite>
160
+ <h5><a href="http://www.yuiblog.com/blog/2010/04/09/node-js-yui-3-dom-manipulation-oh-my/">Node.js, YUI 3 & Dom Manipulation… Oh My!</a></h5>
161
+ <cite class="author">Dav Glass</cite> <cite class="date">Apr 9th</cite>
319
162
  </li>
320
163
  <li>
321
- <h5><a href="http://www.yuiblog.com/blog/2010/01/05/enterprise-web-developer/">Implementation Focus: Enterprise Web Developer, a Python/YUI Framework</a></h5>
322
- <cite class="author">Rob Tweed</cite> <cite class="date">Jan 5th</cite>
164
+ <h5><a href="http://www.yuiblog.com/blog/2010/04/08/introducing-yui-open-hours/">Introducing YUI Open Hours</a></h5>
165
+ <cite class="author">Luke Smith</cite> <cite class="date">Apr 8th</cite>
323
166
  </li>
324
167
  </ul>
325
168
 
@@ -328,21 +171,46 @@ var YUIConfig = {
328
171
  </div>
329
172
  </div>
330
173
  <div class="mod">
331
- <div class="hd"><h4>Online Users</h4></div>
174
+ <div class="hd"><h4>Latest <a href="http://developer.yahoo.com/yui/theater">YUI Theater</a> Videos</h4></div>
332
175
  <div class="bd">
333
- <ul>
176
+
177
+ <!-- Auto-generated Sidebar (Thu, 15 Apr 2010 07:30:01 +0000) -->
178
+ <ul>
179
+ <li>
180
+ <h5><a href="http://www.yuiblog.com/blog/2010/04/08/video-crockonjs-5/">YUI Theater — Douglas Crockford: “Crockford on JavaScript — Part 5: The End of All Things” (94 min.)</a></h5>
181
+ <cite class="author">Eric Miraglia</cite> <cite class="date">Apr 8th</cite>
182
+ </li>
183
+ <li>
184
+ <h5><a href="http://www.yuiblog.com/blog/2010/03/09/video-crockonjs-4/">YUI Theater — Douglas Crockford: “Crockford on JavaScript — Episode IV: The Metamorphosis of Ajax” (93 min.)</a></h5>
185
+ <cite class="author">Eric Miraglia</cite> <cite class="date">Mar 9th</cite>
186
+ </li>
334
187
  <li>
335
- <h5><a href="/forum/memberlist.php?mode=viewprofile&amp;u=906">paolo nesti poggi</a></h5>
188
+ <h5><a href="http://www.yuiblog.com/blog/2010/02/26/video-plh-nextweb/">YUI Theater — Philippe Le Hégaret: “The Next Open Web Platform” (52 min.)</a></h5>
189
+ <cite class="author">Eric Miraglia</cite> <cite class="date">Feb 26th</cite>
336
190
  </li>
337
191
  <li>
338
- <h5><a href="/forum/memberlist.php?mode=viewprofile&amp;u=5327">FiZ</a></h5>
192
+ <h5><a href="http://www.yuiblog.com/blog/2010/02/24/video-crockonjs-3/">YUI Theater — Douglas Crockford: “Crockford on JavaScript — Act III: Function the Ultimate (73 min.)”</a></h5>
193
+ <cite class="author">Eric Miraglia</cite> <cite class="date">Feb 24th</cite>
339
194
  </li>
340
195
  <li>
341
- <h5><a href="/forum/memberlist.php?mode=viewprofile&amp;u=54">Dav Glass</a></h5>
196
+ <h5><a href="http://www.yuiblog.com/blog/2010/02/11/video-heilmann-yql/">YUI Theater — Christian Heilmann: “YQL and YUI: Building Blocks for Quick Applications” (48 min.) [English and German versions available]</a></h5>
197
+ <cite class="author">Eric Miraglia</cite> <cite class="date">Feb 11th</cite>
342
198
  </li>
343
199
  <li>
344
- <h5><a href="/forum/memberlist.php?mode=viewprofile&amp;u=58">Adam Moore</a></h5>
200
+ <h5><a href="http://www.yuiblog.com/blog/2010/02/09/video-crockonjs-2/">YUI Theater — Douglas Crockford: “Crockford on JavaScript — Chapter 2: And Then There Was JavaScript” (90 min.)</a></h5>
201
+ <cite class="author">Eric Miraglia</cite> <cite class="date">Feb 9th</cite>
345
202
  </li>
203
+ </ul>
204
+
205
+ <!-- End Auto-generated Sidebar -->
206
+
207
+ </div>
208
+ </div>
209
+ <div class="mod">
210
+ <div class="hd"><h4>Online Users</h4></div>
211
+ <div class="bd">
212
+ <ul>
213
+ <li><img src="http://www.gravatar.com/avatar/f9c6936e3a1c4e3d7995817d1f9baf9e?s=16&d=http://yuilibrary.com/assets/gravatar-16.png"> <a href="/forum/memberlist.php?mode=viewprofile&amp;u=57">Eric Miraglia</a></li>
346
214
  </ul>
347
215
 
348
216
  </div>
@@ -358,10 +226,10 @@ var YUIConfig = {
358
226
  <h5>YUI Projects</h5>
359
227
  <ul>
360
228
  <li><a href="/downloads">All YUI Downloads</a></li>
361
- <li><a href="/projects/yui2">YUI 2.x</a></li>
362
- <li><a href="/projects/yui3">YUI 3.x</a></li>
363
- <li><a href="/projects/yuidoc">YUIDoc</a></li>
364
- <li><a href="/projects/yuicompressor">YUICompressor</a></li>
229
+ <li><a href="/projects/yui2">YUI 2</a></li>
230
+ <li><a href="/projects/yui3">YUI 3</a></li>
231
+ <li><a href="/projects/yuidoc">YUI Doc</a></li>
232
+ <li><a href="/projects/yuicompressor">YUI Compressor</a></li>
365
233
  <li class="more"><a href="/projects/yuilibrary">YUILibrary.com</a></li>
366
234
  <li class="more"><a href="/projects/builder">YUI Build Tool</a></li>
367
235
  <li class="more"><a href="/projects/phploader">YUI PHP Loader</a></li>
@@ -376,6 +244,7 @@ var YUIConfig = {
376
244
  <li><a href="/contrib">Contribute to YUI</a></li>
377
245
  <li><a href="/forum/stats">Forum Stats</a></li>
378
246
  <li><a href="/gallery/stats">Gallery Stats</a></li>
247
+ <li><a href="/calendar">YUI Calendar</a></li>
379
248
  </ul>
380
249
  </div>
381
250
  </div>
@@ -383,8 +252,8 @@ var YUIConfig = {
383
252
  <div class="yui-u first">
384
253
  <h5>Contribute</h5>
385
254
  <ul>
386
- <li><a href="http://developer.yahoo.com/yui/articles/reportingbugs/" class="ext-link" title="Submit a Bug"><span class="icon">Submit a Bug</span></a></li>
387
- <li><a href="http://developer.yahoo.com/yui/articles/reportingbugs/" class="ext-link" title="Request a Feature"><span class="icon">Request a Feature</span></a></li>
255
+ <li><a href="/projects/yuilibrary/wiki/Process/FilingATicket">Submit a Bug</a></li>
256
+ <li><a href="/projects/yuilibrary/wiki/Process/FilingATicket">Request a Feature</a></li>
388
257
  <li><a href="http://developer.yahoo.com/yui/community/contribute.html" class="ext-link" title="Write Code"><span class="icon">Write Code</span></a></li>
389
258
  <li><a href="/team">Meet the Team</a></li>
390
259
  </ul>
@@ -412,14 +281,5 @@ var YUIConfig = {
412
281
  </div>
413
282
  <script type="text/javascript" src="http://track2.mybloglog.com/js/jsserv.php?mblID=2008112513433661"></script>
414
283
  <script type="text/javascript" src="/assets/more-09.17.2009.js"></script>
415
- <script>
416
- YUI(YUIConfig).use('node', function(Y) {
417
- Y.on('click', function(e) {
418
- e.halt();
419
- Y.all('#yui2_downloads tr').removeClass('hide');
420
- e.target.get('parentNode.parentNode').setStyle('display', 'none');
421
- }, '#yui2_show_hidden');
422
- });
423
- </script>
424
284
  </body>
425
285
  </html>
data/test/test_helper.rb CHANGED
@@ -1,3 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ Bundler.setup
4
+
1
5
  require 'fileutils'
2
6
  require 'test/unit'
3
7
  require 'shoulda'
@@ -94,6 +98,7 @@ module Juicer
94
98
  mkfile(@dir, 'b.js', "/**\n * @depends a.js\n */\n\n/* Dette er b.css */")
95
99
  mkfile(@dir, 'a1.css', "@import\t'b1.css';\n@import 'c1.css';\nbody {\n width: 800px;\n}\n")
96
100
  mkfile(@dir, 'b1.css', "@import url('d1.css');\n\nhtml {\n background: red;\n}\n")
101
+ mkfile(@dir, 'b2.css', "@import url(\"d1.css\");\n\nhtml {\n background: red;\n}\n")
97
102
  mkfile(@dir, 'c1.css', "h1 {\n font-size: 12px;\n}\n")
98
103
  mkfile(@dir, 'd1.css', "h2 {\n font-size: 10px;\n}\n")
99
104
  mkfile(@dir, 'ok.js', "function hey() {\n return \"Hey\";\n}\n")
@@ -111,10 +116,14 @@ body {
111
116
  }
112
117
 
113
118
  h1 {
114
- background: url(../a1.css) 0 0 no-repeat;
119
+ background: url('../a1.css') 0 0 no-repeat;
115
120
  }
116
121
 
117
122
  h2 {
123
+ background: url("2.gif") no-repeat;
124
+ }
125
+
126
+ p {
118
127
  background: url(2.gif) no-repeat;
119
128
  }
120
129
  CSS
@@ -142,6 +151,23 @@ p { background: url(/a2.css); }
142
151
 
143
152
  mkfile(@dir, 'path_test2.css', css)
144
153
 
154
+ css = <<-CSS
155
+ body {
156
+ background: url(http://assets1/images/1.png);
157
+ }
158
+
159
+ h1 {
160
+ background: url(http://assets2/css/2.gif);
161
+ background: url(http://assets3/a1.css) 0 0 no-repeat;
162
+ }
163
+
164
+ h2 {
165
+ background: url(http://assets2/css/2.gif) no-repeat;
166
+ }
167
+ CSS
168
+
169
+ mkfile(css_dir, 'test3.css', css)
170
+
145
171
  mkfile(@dir, 'Changelog.txt', "2008.02.09 | stb-base 1.29\n\nFEATURE: Core | Bla bla bla bla bla\nFEATURE: UI: | Bla bla bla bla bla\n\n\n2008.02.09 | stb-base 1.29\n\nFEATURE: Core | Bla bla bla bla bla\nFEATURE: UI: | Bla bla bla bla bla\n")
146
172
 
147
173
  # my_app.js depends on the pkg directory
@@ -55,6 +55,12 @@ class AssetPathTest < Test::Unit::TestCase
55
55
 
56
56
  assert_equal ["http://localhost", "http://dev.server", "http://some.server"], asset.hosts
57
57
  end
58
+
59
+ should "accept protocol-less hosts" do
60
+ asset = Juicer::Asset::Path.new "../images/logo.png", :hosts => ["localhost/", "//dev.server", "some.server/"]
61
+
62
+ assert_equal ["http://localhost", "//dev.server", "http://some.server"], asset.hosts
63
+ end
58
64
  end
59
65
 
60
66
  context "asset absolute path" do
@@ -165,7 +171,7 @@ class AssetPathTest < Test::Unit::TestCase
165
171
  should "return URL with mtime query parameter and default parameter name" do
166
172
  mtime = File.mtime(@filename).to_i
167
173
  result = "#@filename?jcb=#{mtime}"
168
- Juicer::CacheBuster.stubs(:soft).with(File.expand_path(@filename)).returns(result)
174
+ Juicer::CacheBuster.stubs(:soft).with(File.expand_path(@filename), :revision_type => nil).returns(result)
169
175
 
170
176
  assert_equal result, @asset.relative_path(:cache_buster_type => :soft)
171
177
  end