sundawg-sinatra-assetpack-fork 0.0.12.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +2 -0
- data/HISTORY.md +131 -0
- data/README.md +656 -0
- data/Rakefile +31 -0
- data/docsrc/style.css +32 -0
- data/examples/basic/.gitignore +1 -0
- data/examples/basic/Rakefile +7 -0
- data/examples/basic/app/css/test.sass +11 -0
- data/examples/basic/app/images/icon.png +0 -0
- data/examples/basic/app/js/app.js +4 -0
- data/examples/basic/app/js/vendor/jquery.js +2 -0
- data/examples/basic/app/js/vendor/jquery.plugin.js +2 -0
- data/examples/basic/app/js/vendor/underscore.js +2 -0
- data/examples/basic/app.rb +39 -0
- data/examples/basic/views/index.erb +26 -0
- data/examples/classic/app.rb +24 -0
- data/examples/classic/css/screen.scss +1 -0
- data/examples/compass/.gitignore +1 -0
- data/examples/compass/Rakefile +7 -0
- data/examples/compass/app/css/main.scss +64 -0
- data/examples/compass/app/images/icon/mail.png +0 -0
- data/examples/compass/app/images/icon/refresh.png +0 -0
- data/examples/compass/app/images/icon-scfd8d7d404.png +0 -0
- data/examples/compass/app/images/junk/mail.png +0 -0
- data/examples/compass/app/images/junk/refresh.png +0 -0
- data/examples/compass/app/js/app.js +3 -0
- data/examples/compass/app/js/vendor/jquery.js +2 -0
- data/examples/compass/app/js/vendor/jquery.plugin.js +2 -0
- data/examples/compass/app/js/vendor/underscore.js +2 -0
- data/examples/compass/app.rb +45 -0
- data/examples/compass/config.ru +3 -0
- data/examples/compass/views/index.erb +15 -0
- data/lib/sinatra/assetpack/buster_helpers.rb +36 -0
- data/lib/sinatra/assetpack/class_methods.rb +82 -0
- data/lib/sinatra/assetpack/compressor.rb +54 -0
- data/lib/sinatra/assetpack/configurator.rb +21 -0
- data/lib/sinatra/assetpack/css.rb +36 -0
- data/lib/sinatra/assetpack/engine.rb +20 -0
- data/lib/sinatra/assetpack/engines/closure.rb +19 -0
- data/lib/sinatra/assetpack/engines/jsmin.rb +10 -0
- data/lib/sinatra/assetpack/engines/sass.rb +11 -0
- data/lib/sinatra/assetpack/engines/simple.rb +11 -0
- data/lib/sinatra/assetpack/engines/sqwish.rb +21 -0
- data/lib/sinatra/assetpack/engines/uglify.rb +12 -0
- data/lib/sinatra/assetpack/engines/yui.rb +22 -0
- data/lib/sinatra/assetpack/hasharray.rb +66 -0
- data/lib/sinatra/assetpack/helpers.rb +62 -0
- data/lib/sinatra/assetpack/html_helpers.rb +17 -0
- data/lib/sinatra/assetpack/image.rb +59 -0
- data/lib/sinatra/assetpack/options.rb +329 -0
- data/lib/sinatra/assetpack/package.rb +126 -0
- data/lib/sinatra/assetpack/rake.rb +29 -0
- data/lib/sinatra/assetpack/version.rb +7 -0
- data/lib/sinatra/assetpack.rb +61 -0
- data/sinatra-assetpack.gemspec +26 -0
- data/test/app/.gitignore +1 -0
- data/test/app/Rakefile +7 -0
- data/test/app/app/css/behavior.htc +1 -0
- data/test/app/app/css/js2c.css +494 -0
- data/test/app/app/css/screen.sass +9 -0
- data/test/app/app/css/sqwishable.css +7 -0
- data/test/app/app/css/style.css +3 -0
- data/test/app/app/css/stylus.styl +3 -0
- data/test/app/app/css_stylus/stylus.styl +3 -0
- data/test/app/app/images/background.jpg +1 -0
- data/test/app/app/images/email.png +0 -0
- data/test/app/app/js/_ignoreme.js +1 -0
- data/test/app/app/js/hello.2.js +1 -0
- data/test/app/app/js/hello.js +1 -0
- data/test/app/app/js/helloe.js +1 -0
- data/test/app/app/js/hi.coffee +2 -0
- data/test/app/app/js/ugly.js +7 -0
- data/test/app/app/js/yoe.coffee +2 -0
- data/test/app/app/js_glob/a/b/c1/hello.js +1 -0
- data/test/app/app/js_glob/a/b/c2/hi.js +1 -0
- data/test/app/app/js_glob/a/b/c2/hola.js +1 -0
- data/test/app/app/views/index.haml +1 -0
- data/test/app/app.rb +67 -0
- data/test/arity_test.rb +26 -0
- data/test/build_test.rb +31 -0
- data/test/cache_test.rb +9 -0
- data/test/combined_test.rb +8 -0
- data/test/compressed_test.rb +30 -0
- data/test/glob_test.rb +42 -0
- data/test/helpers_test.rb +30 -0
- data/test/ignore_test.rb +30 -0
- data/test/img_test.rb +31 -0
- data/test/local_file_test.rb +21 -0
- data/test/mime_type_test.rb +33 -0
- data/test/non_existent_test.rb +45 -0
- data/test/options_test.rb +21 -0
- data/test/order_test.rb +20 -0
- data/test/preproc_test.rb +28 -0
- data/test/redundant_test.rb +11 -0
- data/test/simplecss_test.rb +16 -0
- data/test/sqwish_test.rb +31 -0
- data/test/stylus_test.rb +23 -0
- data/test/template_cache_test.rb +29 -0
- data/test/test_helper.rb +46 -0
- data/test/tilt_test.rb +11 -0
- data/test/uglifier_test.rb +23 -0
- data/test/unit_test.rb +106 -0
- data/test/yui_test.rb +22 -0
- metadata +341 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/HISTORY.md
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
v0.0.11 - Feb 21, 2012
|
2
|
+
----------------------
|
3
|
+
|
4
|
+
### Added:
|
5
|
+
* Support for 'prebuild' to build on startup.
|
6
|
+
* Support for SVG files.
|
7
|
+
* Implement UglifyJS support. (#18)
|
8
|
+
* Implement ignored files. (#17)
|
9
|
+
* Added support classic-style Sinatra apps. (#22)
|
10
|
+
|
11
|
+
### Changed:
|
12
|
+
* Built files from 'rake assetpack:build' now match the mtimes of their sources. (#12)
|
13
|
+
* Update the readme with a note on SASS compression.
|
14
|
+
* Use regular expression route matcher instead of splat pattern for Padrino compatibility. (#19)
|
15
|
+
* Made <link> and <script> tags (generated by helpers) be more HTML5-like.
|
16
|
+
|
17
|
+
### Fixed:
|
18
|
+
* Sinatra >= 1.3.0 compatibility. Use 'public_folder' in Sinatra >=1.3.0. (#25)
|
19
|
+
|
20
|
+
v0.0.10 - Sep 18, 2011
|
21
|
+
----------------------
|
22
|
+
|
23
|
+
### Added:
|
24
|
+
* Support for 'prebuild' to build on startup.
|
25
|
+
* Add UglifyJS support via `js_compression :uglify`. (#18)
|
26
|
+
* Ignore '.*' and '_*' files. (#17)
|
27
|
+
* Allow specifying of files to be ignored. (#17)
|
28
|
+
|
29
|
+
### Changed:
|
30
|
+
* Built files from 'rake assetpack:build' now match the mtimes of their
|
31
|
+
sources. (#12)
|
32
|
+
* Refactor Compressor into separate engine classes.
|
33
|
+
|
34
|
+
v0.0.9 - Sep 18, 2011
|
35
|
+
---------------------
|
36
|
+
|
37
|
+
### Fixed:
|
38
|
+
* Fixed a bad route terminating issue. (#9)
|
39
|
+
* Fix the Rake task when the main App class is in a module. (#11)
|
40
|
+
|
41
|
+
### Changed:
|
42
|
+
* Use Sinatra's `template_cache`. This makes AssetPack honor Sinatra's
|
43
|
+
`reload_templates` setting. (#15)
|
44
|
+
|
45
|
+
### Added:
|
46
|
+
* Added .htc (IE behavior files) to the list of file formats to be served.
|
47
|
+
* Added examples.
|
48
|
+
|
49
|
+
v0.0.8 - Sep 06, 2011
|
50
|
+
---------------------
|
51
|
+
|
52
|
+
### Fixed:
|
53
|
+
* Fixed the CSS preprocessing bug that gives invalid 'url()' properties to
|
54
|
+
non-existing images. (#1)
|
55
|
+
|
56
|
+
### Added:
|
57
|
+
* Allow adding CSS/JS files that don't exist. (#8)
|
58
|
+
* Support any Tilt-compatible CSS or JS engine. (#5)
|
59
|
+
|
60
|
+
### Changed:
|
61
|
+
* Default to '/assets/x.js' then using assets.css without a path. Inspiration
|
62
|
+
from Jammit.
|
63
|
+
* Ask browsers to cache assets for 1 month.
|
64
|
+
|
65
|
+
### Misc:
|
66
|
+
* Add a note on the ImageMagick requirement.
|
67
|
+
* Stop the 'img' helper from invoking ImageMagick more times than it needs to.
|
68
|
+
* Make "rake test!" abort when it encounters an error.
|
69
|
+
* Stylus tests to stub stylus compilation.
|
70
|
+
* Added .rvmrc and .sass-cache to gitignore.
|
71
|
+
* Allow overridable multiple RVM environments in tests.
|
72
|
+
|
73
|
+
v0.0.6 - Aug 30, 2011
|
74
|
+
---------------------
|
75
|
+
|
76
|
+
### Fixed:
|
77
|
+
* Redundant entries are now suppressed. (eg, when specifying
|
78
|
+
`['vendor/jquery.js', 'vendor/*.js']`)
|
79
|
+
|
80
|
+
### Added:
|
81
|
+
* Allow a parameter to the block in the `assets` configuration block.
|
82
|
+
* Update README with lots of info.
|
83
|
+
* Allow multiple packages in the js and css helpers. (eg, `css :base, :login`)
|
84
|
+
* Allow setting options for `js_compression` by passing a hash after it.
|
85
|
+
* Make the path parameter in `js` and `css` in the `assets` block optional.
|
86
|
+
|
87
|
+
v0.0.5 - Aug 30, 2011
|
88
|
+
---------------------
|
89
|
+
|
90
|
+
### Fixed:
|
91
|
+
* Fix build failing when it finds directories.
|
92
|
+
|
93
|
+
### Added:
|
94
|
+
* Added an example app in `example/`.
|
95
|
+
|
96
|
+
v0.0.4 - Aug 30, 2011
|
97
|
+
---------------------
|
98
|
+
|
99
|
+
### Fixed:
|
100
|
+
* Ruby 1.8 compatibility. Yay!
|
101
|
+
* Fixed images always being square.
|
102
|
+
* Assets are now ordered properly.
|
103
|
+
|
104
|
+
### Changed:
|
105
|
+
* the config format for `js_compression` and family. In your `assets` block,
|
106
|
+
you now have to use `js_compression :closure` instead of `js_compression =
|
107
|
+
:closure`.
|
108
|
+
* Use simple CSS compression by default.
|
109
|
+
|
110
|
+
v0.0.3 - Aug 30, 2011
|
111
|
+
---------------------
|
112
|
+
|
113
|
+
### Added:
|
114
|
+
* Images in CSS defined in `url(...)` params are now cache-busted.
|
115
|
+
* Add support for embedded images in CSS.
|
116
|
+
* `rake assetpack:build` now also outputs images.
|
117
|
+
|
118
|
+
v0.0.2 - Aug 29, 2011
|
119
|
+
---------------------
|
120
|
+
|
121
|
+
### Added:
|
122
|
+
* Added the `img` helper.
|
123
|
+
* Added support for filetypes used in @font-face.
|
124
|
+
|
125
|
+
### Fixed:
|
126
|
+
* The gem now installs the correct dependencies.
|
127
|
+
|
128
|
+
v0.0.1 - Aug 29, 2011
|
129
|
+
---------------------
|
130
|
+
|
131
|
+
Initial release.
|