lash 0.1.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.autotest +10 -0
- data/.gitignore +2 -1
- data/.rspec +1 -0
- data/Gemfile +2 -1
- data/LICENSE.md +48 -0
- data/README.md +117 -5
- data/Rakefile +1 -0
- data/lib/lash.rb +17 -4
- data/lib/lash/assets_host.rb +74 -0
- data/lib/lash/bundle_helper.rb +6 -24
- data/lib/lash/capistrano.rb +2 -0
- data/lib/lash/closure_minifier.rb +20 -0
- data/lib/lash/files.rb +56 -0
- data/lib/lash/java_script_bundler.rb +117 -0
- data/lib/lash/java_script_minifier.rb +67 -0
- data/lib/lash/railtie.rb +4 -33
- data/lib/lash/sprite_bundler.rb +132 -0
- data/lib/lash/tasks/lash.rake +50 -181
- data/lib/lash/version.rb +1 -1
- data/spec/lib/assets_host_spec.rb +56 -0
- data/spec/lib/bundle_helper_spec.rb +99 -0
- data/spec/lib/closure_minifier_spec.rb +67 -0
- data/spec/lib/java_script_bundler_spec.rb +46 -0
- data/spec/lib/lash_files_spec.rb +68 -0
- data/spec/spec_helper.rb +15 -25
- data/spec/support/rails_fake.rb +31 -0
- data/spec/test_app/.gitignore +4 -0
- data/spec/test_app/Rakefile +8 -0
- data/spec/test_app/public/images/rails.png +0 -0
- data/spec/test_app/public/images/ui-sprite.png +0 -0
- data/spec/test_app/public/images/ui-sprite.png.sprite +3 -0
- data/spec/test_app/public/javascripts/application/README +0 -0
- data/spec/test_app/public/javascripts/application/application.bundleVersion.js +1 -0
- data/spec/test_app/public/javascripts/application/application.js +3 -0
- data/spec/test_app/public/javascripts/application/application2.js +3 -0
- data/spec/test_app/public/javascripts/application/tools/validate.js +3 -0
- data/spec/test_app/public/javascripts/bundle_application.js +1 -0
- data/spec/test_app/public/javascripts/bundle_application.js.gz +0 -0
- data/spec/test_app/public/javascripts/cdn/jquery.js +1 -0
- data/spec/test_app/public/javascripts/cdn/jquery.js.gz +0 -0
- data/spec/test_app/public/javascripts/cdn/jquery.min.js +1 -0
- data/spec/test_app/public/javascripts/cdn/jquery.min.js.gz +0 -0
- data/spec/test_app/public/javascripts/demand/huge.js +0 -0
- data/spec/test_app/public/javascripts/demand/huge.js.gz +0 -0
- data/spec/test_app/public/javascripts/demand/huge.min.js +1 -0
- data/spec/test_app/public/javascripts/demand/huge.min.js.gz +0 -0
- data/spec/test_app/public/sprites/ui/accept.png +0 -0
- data/spec/test_app/public/sprites/ui/add.png +0 -0
- data/spec/test_app/public/stylesheets/.gitkeep +0 -0
- data/spec/test_app/public/stylesheets/sass/_ui-sprite.scss +20 -0
- data/spec/test_app/public/stylesheets/sass/_version.scss +1 -0
- metadata +81 -10
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
window.bundleVersion = '1303257262';
|
@@ -0,0 +1 @@
|
|
1
|
+
window.bundleVersion="1303257262";$(function(){});$(function(){});$(function(){});
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
jQuery = function(){}
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
jQuery=function(){};
|
Binary file
|
File without changes
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
.ui-background {
|
3
|
+
background-image: url(../images/ui-sprite.png?1303253626);
|
4
|
+
background-repeat: no-repeat;
|
5
|
+
}
|
6
|
+
|
7
|
+
.ui {
|
8
|
+
background-color: transparent;
|
9
|
+
background-image: url(../images/ui-sprite.png?1303253626);
|
10
|
+
background-repeat: no-repeat;
|
11
|
+
overflow: hidden;
|
12
|
+
text-indent: 99999px;
|
13
|
+
*text-indent: 999px; // IE 7 fix
|
14
|
+
text-align: left!important;
|
15
|
+
width: 16px;
|
16
|
+
height: 16px;
|
17
|
+
}
|
18
|
+
|
19
|
+
.ui-accept { background-position: -0px -0px; }
|
20
|
+
.ui-add { background-position: -0px -16px; }
|
@@ -0,0 +1 @@
|
|
1
|
+
$bundle-version: '1303253538'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-04-
|
12
|
+
date: 2011-04-19 00:00:00.000000000 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: grit
|
17
|
-
requirement: &
|
17
|
+
requirement: &2156047520 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2156047520
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: lash-sprites
|
28
|
-
requirement: &
|
28
|
+
requirement: &2156046980 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2156046980
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rspec
|
39
|
-
requirement: &
|
39
|
+
requirement: &2156046400 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2156046400
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rdiscount
|
50
|
-
requirement: &
|
50
|
+
requirement: &2156045840 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,7 +55,7 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2156045840
|
59
59
|
description: Lash will bundle and compress most common static assets using Googles
|
60
60
|
closure compiler for JavaScript, SASS for CSS and will package loose image files
|
61
61
|
into a single static CSS sprite.
|
@@ -65,10 +65,13 @@ executables: []
|
|
65
65
|
extensions: []
|
66
66
|
extra_rdoc_files: []
|
67
67
|
files:
|
68
|
+
- .autotest
|
68
69
|
- .gitignore
|
70
|
+
- .rspec
|
69
71
|
- .yardopts
|
70
72
|
- CHANGELOG
|
71
73
|
- Gemfile
|
74
|
+
- LICENSE.md
|
72
75
|
- README.md
|
73
76
|
- Rakefile
|
74
77
|
- bin/closure-compiler/COPYING
|
@@ -78,12 +81,49 @@ files:
|
|
78
81
|
- init.rb
|
79
82
|
- lash.gemspec
|
80
83
|
- lib/lash.rb
|
84
|
+
- lib/lash/assets_host.rb
|
81
85
|
- lib/lash/bundle_helper.rb
|
82
86
|
- lib/lash/capistrano.rb
|
87
|
+
- lib/lash/closure_minifier.rb
|
88
|
+
- lib/lash/files.rb
|
89
|
+
- lib/lash/java_script_bundler.rb
|
90
|
+
- lib/lash/java_script_minifier.rb
|
83
91
|
- lib/lash/railtie.rb
|
92
|
+
- lib/lash/sprite_bundler.rb
|
84
93
|
- lib/lash/tasks/lash.rake
|
85
94
|
- lib/lash/version.rb
|
95
|
+
- spec/lib/assets_host_spec.rb
|
96
|
+
- spec/lib/bundle_helper_spec.rb
|
97
|
+
- spec/lib/closure_minifier_spec.rb
|
98
|
+
- spec/lib/java_script_bundler_spec.rb
|
99
|
+
- spec/lib/lash_files_spec.rb
|
86
100
|
- spec/spec_helper.rb
|
101
|
+
- spec/support/rails_fake.rb
|
102
|
+
- spec/test_app/.gitignore
|
103
|
+
- spec/test_app/Rakefile
|
104
|
+
- spec/test_app/public/images/rails.png
|
105
|
+
- spec/test_app/public/images/ui-sprite.png
|
106
|
+
- spec/test_app/public/images/ui-sprite.png.sprite
|
107
|
+
- spec/test_app/public/javascripts/application/README
|
108
|
+
- spec/test_app/public/javascripts/application/application.bundleVersion.js
|
109
|
+
- spec/test_app/public/javascripts/application/application.js
|
110
|
+
- spec/test_app/public/javascripts/application/application2.js
|
111
|
+
- spec/test_app/public/javascripts/application/tools/validate.js
|
112
|
+
- spec/test_app/public/javascripts/bundle_application.js
|
113
|
+
- spec/test_app/public/javascripts/bundle_application.js.gz
|
114
|
+
- spec/test_app/public/javascripts/cdn/jquery.js
|
115
|
+
- spec/test_app/public/javascripts/cdn/jquery.js.gz
|
116
|
+
- spec/test_app/public/javascripts/cdn/jquery.min.js
|
117
|
+
- spec/test_app/public/javascripts/cdn/jquery.min.js.gz
|
118
|
+
- spec/test_app/public/javascripts/demand/huge.js
|
119
|
+
- spec/test_app/public/javascripts/demand/huge.js.gz
|
120
|
+
- spec/test_app/public/javascripts/demand/huge.min.js
|
121
|
+
- spec/test_app/public/javascripts/demand/huge.min.js.gz
|
122
|
+
- spec/test_app/public/sprites/ui/accept.png
|
123
|
+
- spec/test_app/public/sprites/ui/add.png
|
124
|
+
- spec/test_app/public/stylesheets/.gitkeep
|
125
|
+
- spec/test_app/public/stylesheets/sass/_ui-sprite.scss
|
126
|
+
- spec/test_app/public/stylesheets/sass/_version.scss
|
87
127
|
has_rdoc: true
|
88
128
|
homepage: http://github.com/appsinyourpants/lash
|
89
129
|
licenses:
|
@@ -111,4 +151,35 @@ signing_key:
|
|
111
151
|
specification_version: 3
|
112
152
|
summary: Static asset bundling for JavaScripts, CSS, CSS sprites and images.
|
113
153
|
test_files:
|
154
|
+
- spec/lib/assets_host_spec.rb
|
155
|
+
- spec/lib/bundle_helper_spec.rb
|
156
|
+
- spec/lib/closure_minifier_spec.rb
|
157
|
+
- spec/lib/java_script_bundler_spec.rb
|
158
|
+
- spec/lib/lash_files_spec.rb
|
114
159
|
- spec/spec_helper.rb
|
160
|
+
- spec/support/rails_fake.rb
|
161
|
+
- spec/test_app/.gitignore
|
162
|
+
- spec/test_app/Rakefile
|
163
|
+
- spec/test_app/public/images/rails.png
|
164
|
+
- spec/test_app/public/images/ui-sprite.png
|
165
|
+
- spec/test_app/public/images/ui-sprite.png.sprite
|
166
|
+
- spec/test_app/public/javascripts/application/README
|
167
|
+
- spec/test_app/public/javascripts/application/application.bundleVersion.js
|
168
|
+
- spec/test_app/public/javascripts/application/application.js
|
169
|
+
- spec/test_app/public/javascripts/application/application2.js
|
170
|
+
- spec/test_app/public/javascripts/application/tools/validate.js
|
171
|
+
- spec/test_app/public/javascripts/bundle_application.js
|
172
|
+
- spec/test_app/public/javascripts/bundle_application.js.gz
|
173
|
+
- spec/test_app/public/javascripts/cdn/jquery.js
|
174
|
+
- spec/test_app/public/javascripts/cdn/jquery.js.gz
|
175
|
+
- spec/test_app/public/javascripts/cdn/jquery.min.js
|
176
|
+
- spec/test_app/public/javascripts/cdn/jquery.min.js.gz
|
177
|
+
- spec/test_app/public/javascripts/demand/huge.js
|
178
|
+
- spec/test_app/public/javascripts/demand/huge.js.gz
|
179
|
+
- spec/test_app/public/javascripts/demand/huge.min.js
|
180
|
+
- spec/test_app/public/javascripts/demand/huge.min.js.gz
|
181
|
+
- spec/test_app/public/sprites/ui/accept.png
|
182
|
+
- spec/test_app/public/sprites/ui/add.png
|
183
|
+
- spec/test_app/public/stylesheets/.gitkeep
|
184
|
+
- spec/test_app/public/stylesheets/sass/_ui-sprite.scss
|
185
|
+
- spec/test_app/public/stylesheets/sass/_version.scss
|