middleman-sprockets-cj 3.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.simplecov +9 -0
- data/.travis.yml +15 -0
- data/CHANGELOG.md +71 -0
- data/CONTRIBUTING.md +43 -0
- data/Gemfile +32 -0
- data/LICENSE.md +20 -0
- data/README.md +104 -0
- data/Rakefile +45 -0
- data/features/asset_hash-3.0.feature +105 -0
- data/features/asset_hash.feature +107 -0
- data/features/bower.feature +37 -0
- data/features/jst.feature +14 -0
- data/features/long_filenames.feature +17 -0
- data/features/sass_globs.feature +9 -0
- data/features/sass_partials.feature +36 -0
- data/features/sprockets.feature +129 -0
- data/features/sprockets_gems.feature +67 -0
- data/features/step_definitions/server_steps.rb +7 -0
- data/features/support/env.rb +18 -0
- data/fixtures/asset-hash-app/config.rb +7 -0
- data/fixtures/asset-hash-app/source/images/100px.gif +0 -0
- data/fixtures/asset-hash-app/source/images/100px.jpg +0 -0
- data/fixtures/asset-hash-app/source/images/100px.png +0 -0
- data/fixtures/asset-hash-app/source/index.html.erb +308 -0
- data/fixtures/asset-hash-app/source/javascripts/application.js +8 -0
- data/fixtures/asset-hash-app/source/javascripts/sprockets_base.js +5 -0
- data/fixtures/asset-hash-app/source/javascripts/sprockets_sub.js +3 -0
- data/fixtures/asset-hash-app/source/layout.erb +19 -0
- data/fixtures/asset-hash-app/source/other.html.erb +2 -0
- data/fixtures/asset-hash-app/source/partials.html.erb +2 -0
- data/fixtures/asset-hash-app/source/stylesheets/_partial.sass +2 -0
- data/fixtures/asset-hash-app/source/stylesheets/jquery-mobile.css.scss +1 -0
- data/fixtures/asset-hash-app/source/stylesheets/site.css.scss +4 -0
- data/fixtures/asset-hash-app/source/stylesheets/uses_partials.css.sass +4 -0
- data/fixtures/asset-hash-app/source/subdir/index.html.erb +308 -0
- data/fixtures/asset-hash-host-app/config.rb +6 -0
- data/fixtures/asset-hash-host-app/source/images/100px.gif +0 -0
- data/fixtures/asset-hash-host-app/source/images/100px.jpg +0 -0
- data/fixtures/asset-hash-host-app/source/images/100px.png +0 -0
- data/fixtures/asset-hash-host-app/source/index.html.erb +6 -0
- data/fixtures/asset-hash-host-app/source/layout.erb +17 -0
- data/fixtures/asset-hash-host-app/source/other.html.erb +2 -0
- data/fixtures/asset-hash-host-app/source/stylesheets/site.css.scss +4 -0
- data/fixtures/asset-hash-host-app/source/subdir/index.html.erb +6 -0
- data/fixtures/asset-paths-app/config.rb +4 -0
- data/fixtures/asset-paths-app/derp/javascripts/vendored_js.js +1 -0
- data/fixtures/asset-paths-app/source/javascripts/vendored_include.js +1 -0
- data/fixtures/bower-app/bower.json +7 -0
- data/fixtures/bower-app/bower_components/underscore/bower.json +8 -0
- data/fixtures/bower-app/bower_components/underscore/underscore.js +1343 -0
- data/fixtures/bower-app/config.rb +3 -0
- data/fixtures/bower-app/source/javascripts/application.js +1 -0
- data/fixtures/bower-individual-outputdir-app/bower.json +7 -0
- data/fixtures/bower-individual-outputdir-app/bower_components/underscore/bower.json +8 -0
- data/fixtures/bower-individual-outputdir-app/bower_components/underscore/underscore.js +1343 -0
- data/fixtures/bower-individual-outputdir-app/config.rb +6 -0
- data/fixtures/bower-individual-outputdir-app/source/javascripts/application.js +1 -0
- data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/.bower.json +34 -0
- data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/bower.json +26 -0
- data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/img/close.png +0 -0
- data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/js/lightbox.js +2 -0
- data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/package.json +37 -0
- data/fixtures/bower-json-app/config.rb +1 -0
- data/fixtures/bower-json-app/source/javascripts/application.js.coffee +1 -0
- data/fixtures/bower-json-app/source/javascripts/bower.json +5 -0
- data/fixtures/bower-multiple-assets-app/.bowerrc +4 -0
- data/fixtures/bower-multiple-assets-app/bower.json +7 -0
- data/fixtures/bower-multiple-assets-app/config.rb +7 -0
- data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/.bower.json +34 -0
- data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/bower.json +26 -0
- data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/img/close.png +0 -0
- data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/js/lightbox.js +2 -0
- data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/package.json +37 -0
- data/fixtures/glob-app/config.rb +0 -0
- data/fixtures/glob-app/source/stylesheets/main.css.scss +1 -0
- data/fixtures/glob-app/source/stylesheets/module1/_i-am-mod.scss +3 -0
- data/fixtures/glob-app/source/stylesheets/module2/_derp.sass +2 -0
- data/fixtures/glob-app/source/stylesheets/shared/3rd-party/bootstrap.sass +2 -0
- data/fixtures/glob-app/source/stylesheets/shared/shared.scss +3 -0
- data/fixtures/jquery-mobile-app/config.rb +0 -0
- data/fixtures/jquery-mobile-app/source/stylesheets/base.css.scss +2 -0
- data/fixtures/long-filenames-app/config.rb +0 -0
- data/fixtures/long-filenames-app/source/images/00000000-0000-0000-0000-000000.svg +3 -0
- data/fixtures/long-filenames-app/source/images/00000000-0000-0000-0000-0000001.svg +3 -0
- data/fixtures/preview-app/config.rb +0 -0
- data/fixtures/preview-app/source/content.html.erb +1 -0
- data/fixtures/preview-app/source/layout.erb +1 -0
- data/fixtures/preview-app/source/stylesheets/_partial.sass +2 -0
- data/fixtures/preview-app/source/stylesheets/_partial2.css.sass +2 -0
- data/fixtures/preview-app/source/stylesheets/main.css.sass +4 -0
- data/fixtures/preview-app/source/stylesheets/main2.css.sass +4 -0
- data/fixtures/preview-app/source/stylesheets/plain.css.sass +2 -0
- data/fixtures/sprockets-app-debug-assets/config.rb +1 -0
- data/fixtures/sprockets-app-debug-assets/source/index.html.erb +8 -0
- data/fixtures/sprockets-app-debug-assets/source/javascripts/dependency1.js +3 -0
- data/fixtures/sprockets-app-debug-assets/source/javascripts/dependency2.js +1 -0
- data/fixtures/sprockets-app-debug-assets/source/javascripts/main.js +4 -0
- data/fixtures/sprockets-app-debug-assets/source/stylesheets/app.css.scss +4 -0
- data/fixtures/sprockets-app-debug-assets/source/stylesheets/dependency1.css +0 -0
- data/fixtures/sprockets-app-debug-assets/source/stylesheets/dependency2.css.scss +0 -0
- data/fixtures/sprockets-app/config.rb +7 -0
- data/fixtures/sprockets-app/source/index.html.erb +6 -0
- data/fixtures/sprockets-app/source/library/css/bootstrap_include.css.scss +1 -0
- data/fixtures/sprockets-app/source/library/css/plain.css +3 -0
- data/fixtures/sprockets-app/source/library/css/sprockets_base1.css.scss +1 -0
- data/fixtures/sprockets-app/source/library/css/sprockets_base2.css.scss +1 -0
- data/fixtures/sprockets-app/source/library/css/sprockets_sub.css.scss +1 -0
- data/fixtures/sprockets-app/source/library/js/jquery_include.js +1 -0
- data/fixtures/sprockets-app/source/library/js/plain.js +3 -0
- data/fixtures/sprockets-app/source/library/js/sprockets_base.js +5 -0
- data/fixtures/sprockets-app/source/library/js/sprockets_sub.js +3 -0
- data/fixtures/sprockets-app/source/library/js/vendored_include.js +1 -0
- data/fixtures/sprockets-app/vendor/assets/javascripts/coffee.js.coffee +2 -0
- data/fixtures/sprockets-app/vendor/assets/javascripts/vendored_js.js +1 -0
- data/fixtures/sprockets-app/vendor/assets/stylesheets/vendored.css.scss +4 -0
- data/fixtures/sprockets-app2/config.rb +0 -0
- data/fixtures/sprockets-app2/data/test.yml +4 -0
- data/fixtures/sprockets-app2/data/test2.json +4 -0
- data/fixtures/sprockets-app2/source/javascripts/_templates/test.jst.ejs +1 -0
- data/fixtures/sprockets-app2/source/javascripts/_templates/test2.jst.eco +1 -0
- data/fixtures/sprockets-app2/source/javascripts/asset_path.js.erb +3 -0
- data/fixtures/sprockets-app2/source/javascripts/multiple_engines.js.coffee.erb +1 -0
- data/fixtures/sprockets-app2/source/javascripts/sprockets_base.js +5 -0
- data/fixtures/sprockets-app2/source/javascripts/sprockets_sub.js +3 -0
- data/fixtures/sprockets-app2/source/javascripts/templates.js +1 -0
- data/fixtures/sprockets-app2/source/stylesheets/sprockets_base1.css.scss +1 -0
- data/fixtures/sprockets-app2/source/stylesheets/sprockets_base2.css.scss +1 -0
- data/fixtures/sprockets-app2/source/stylesheets/sprockets_sub.css.scss +1 -0
- data/fixtures/sprockets-images-app/config.rb +1 -0
- data/fixtures/sprockets-images-app/source/index.html.erb +10 -0
- data/fixtures/sprockets-images-app/source/library/images/cat.jpg +0 -0
- data/fixtures/sprockets-images-app/vendor/assets/images/cat-2.jpg +0 -0
- data/lib/middleman-sprockets.rb +6 -0
- data/lib/middleman-sprockets/asset.rb +185 -0
- data/lib/middleman-sprockets/asset_list.rb +41 -0
- data/lib/middleman-sprockets/asset_tag_helpers.rb +54 -0
- data/lib/middleman-sprockets/config_only_environment.rb +50 -0
- data/lib/middleman-sprockets/environment.rb +228 -0
- data/lib/middleman-sprockets/extension.rb +145 -0
- data/lib/middleman-sprockets/imported_asset.rb +57 -0
- data/lib/middleman-sprockets/pathname_extensions.rb +10 -0
- data/lib/middleman-sprockets/sass_function_hack.rb +9 -0
- data/lib/middleman-sprockets/version.rb +5 -0
- data/middleman-sprockets.gemspec +22 -0
- data/spec/asset_list_spec.rb +38 -0
- data/spec/asset_spec.rb +116 -0
- data/spec/imported_asset_spec.rb +72 -0
- data/spec/spec_helper.rb +16 -0
- data/spec/support/aruba.rb +18 -0
- data/spec/support/rspec.rb +17 -0
- metadata +257 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
sprockets.append_path File.join(root, 'bower_components')
|
2
|
+
|
3
|
+
sprockets.append_path File.join(root, 'vendor/assets/components')
|
4
|
+
sprockets.import_asset('underscore/underscore.js') { 'underscore.js' }
|
5
|
+
sprockets.import_asset('lightbox2/img/close.png') { |logical_path| Pathname.new('hello_world') + logical_path }
|
6
|
+
sprockets.import_asset('lightbox2/js/lightbox.js')
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require underscore/underscore
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"name": "lightbox",
|
3
|
+
"homepage": "http://lokeshdhakar.com/projects/lightbox2/",
|
4
|
+
"authors": [
|
5
|
+
"Lokesh Dhakar <lokesh.dhakar@gmail.com>"
|
6
|
+
],
|
7
|
+
"description": "The original Lightbox script. Uses jQuery.",
|
8
|
+
"main": "js/lightbox.js",
|
9
|
+
"keywords": [
|
10
|
+
"lightbox",
|
11
|
+
"overlay",
|
12
|
+
"jquery",
|
13
|
+
"gallery",
|
14
|
+
"images"
|
15
|
+
],
|
16
|
+
"license": "CC BY 2.5",
|
17
|
+
"ignore": [
|
18
|
+
"**/.*",
|
19
|
+
"Gruntfile.js",
|
20
|
+
"node_modules",
|
21
|
+
"bower_components",
|
22
|
+
"test",
|
23
|
+
"tests"
|
24
|
+
],
|
25
|
+
"_release": "05ffb8e6d5",
|
26
|
+
"_resolution": {
|
27
|
+
"type": "branch",
|
28
|
+
"branch": "master",
|
29
|
+
"commit": "05ffb8e6d524762ded286b0c33cebab5347cf34a"
|
30
|
+
},
|
31
|
+
"_source": "https://github.com/dg-vrnetze/revealjs-lightbox2.git",
|
32
|
+
"_target": "*",
|
33
|
+
"_originalSource": "https://github.com/dg-vrnetze/revealjs-lightbox2.git"
|
34
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"name": "lightbox",
|
3
|
+
"version": "2.7.1",
|
4
|
+
"homepage": "http://lokeshdhakar.com/projects/lightbox2/",
|
5
|
+
"authors": [
|
6
|
+
"Lokesh Dhakar <lokesh.dhakar@gmail.com>"
|
7
|
+
],
|
8
|
+
"description": "The original Lightbox script. Uses jQuery.",
|
9
|
+
"main": "js/lightbox.js",
|
10
|
+
"keywords": [
|
11
|
+
"lightbox",
|
12
|
+
"overlay",
|
13
|
+
"jquery",
|
14
|
+
"gallery",
|
15
|
+
"images"
|
16
|
+
],
|
17
|
+
"license": "CC BY 2.5",
|
18
|
+
"ignore": [
|
19
|
+
"**/.*",
|
20
|
+
"Gruntfile.js",
|
21
|
+
"node_modules",
|
22
|
+
"bower_components",
|
23
|
+
"test",
|
24
|
+
"tests"
|
25
|
+
]
|
26
|
+
}
|
Binary file
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"name": "lightbox",
|
3
|
+
"version": "2.7.1",
|
4
|
+
"author": "Lokesh Dhakar",
|
5
|
+
"description": "Lightbox is small javascript library used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers.",
|
6
|
+
"keywords": [
|
7
|
+
"lightbox",
|
8
|
+
"lightbox2",
|
9
|
+
"overlay",
|
10
|
+
"image",
|
11
|
+
"gallery"
|
12
|
+
],
|
13
|
+
"homepage": "http://lokeshdhakar.com/projects/lightbox2/",
|
14
|
+
"repository": {
|
15
|
+
"type": "git",
|
16
|
+
"url": "https://github.com/lokesh/lightbox2.git"
|
17
|
+
},
|
18
|
+
"bugs": {
|
19
|
+
"url": "https://github.com/lokesh/lightbox2/issues"
|
20
|
+
},
|
21
|
+
"licenses": [
|
22
|
+
{
|
23
|
+
"type": "Creative Commons Attribution 2.5 License",
|
24
|
+
"url": "http://creativecommons.org/licenses/by/2.5/"
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"devDependencies": {
|
28
|
+
"grunt": "~0.4.2",
|
29
|
+
"grunt-contrib-compass": "^0.7.2",
|
30
|
+
"grunt-contrib-watch": "^0.5.3",
|
31
|
+
"grunt-contrib-connect": "^0.7.1",
|
32
|
+
"grunt-ftp-deploy": "^0.1.1",
|
33
|
+
"grunt-contrib-uglify": "~0.4.0",
|
34
|
+
"grunt-contrib-jshint": "~0.9.2",
|
35
|
+
"grunt-exec": "~0.4.5"
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
# foo
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"name": "lightbox",
|
3
|
+
"homepage": "http://lokeshdhakar.com/projects/lightbox2/",
|
4
|
+
"authors": [
|
5
|
+
"Lokesh Dhakar <lokesh.dhakar@gmail.com>"
|
6
|
+
],
|
7
|
+
"description": "The original Lightbox script. Uses jQuery.",
|
8
|
+
"main": "js/lightbox.js",
|
9
|
+
"keywords": [
|
10
|
+
"lightbox",
|
11
|
+
"overlay",
|
12
|
+
"jquery",
|
13
|
+
"gallery",
|
14
|
+
"images"
|
15
|
+
],
|
16
|
+
"license": "CC BY 2.5",
|
17
|
+
"ignore": [
|
18
|
+
"**/.*",
|
19
|
+
"Gruntfile.js",
|
20
|
+
"node_modules",
|
21
|
+
"bower_components",
|
22
|
+
"test",
|
23
|
+
"tests"
|
24
|
+
],
|
25
|
+
"_release": "05ffb8e6d5",
|
26
|
+
"_resolution": {
|
27
|
+
"type": "branch",
|
28
|
+
"branch": "master",
|
29
|
+
"commit": "05ffb8e6d524762ded286b0c33cebab5347cf34a"
|
30
|
+
},
|
31
|
+
"_source": "https://github.com/dg-vrnetze/revealjs-lightbox2.git",
|
32
|
+
"_target": "*",
|
33
|
+
"_originalSource": "https://github.com/dg-vrnetze/revealjs-lightbox2.git"
|
34
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"name": "lightbox",
|
3
|
+
"version": "2.7.1",
|
4
|
+
"homepage": "http://lokeshdhakar.com/projects/lightbox2/",
|
5
|
+
"authors": [
|
6
|
+
"Lokesh Dhakar <lokesh.dhakar@gmail.com>"
|
7
|
+
],
|
8
|
+
"description": "The original Lightbox script. Uses jQuery.",
|
9
|
+
"main": "js/lightbox.js",
|
10
|
+
"keywords": [
|
11
|
+
"lightbox",
|
12
|
+
"overlay",
|
13
|
+
"jquery",
|
14
|
+
"gallery",
|
15
|
+
"images"
|
16
|
+
],
|
17
|
+
"license": "CC BY 2.5",
|
18
|
+
"ignore": [
|
19
|
+
"**/.*",
|
20
|
+
"Gruntfile.js",
|
21
|
+
"node_modules",
|
22
|
+
"bower_components",
|
23
|
+
"test",
|
24
|
+
"tests"
|
25
|
+
]
|
26
|
+
}
|
Binary file
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"name": "lightbox",
|
3
|
+
"version": "2.7.1",
|
4
|
+
"author": "Lokesh Dhakar",
|
5
|
+
"description": "Lightbox is small javascript library used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers.",
|
6
|
+
"keywords": [
|
7
|
+
"lightbox",
|
8
|
+
"lightbox2",
|
9
|
+
"overlay",
|
10
|
+
"image",
|
11
|
+
"gallery"
|
12
|
+
],
|
13
|
+
"homepage": "http://lokeshdhakar.com/projects/lightbox2/",
|
14
|
+
"repository": {
|
15
|
+
"type": "git",
|
16
|
+
"url": "https://github.com/lokesh/lightbox2.git"
|
17
|
+
},
|
18
|
+
"bugs": {
|
19
|
+
"url": "https://github.com/lokesh/lightbox2/issues"
|
20
|
+
},
|
21
|
+
"licenses": [
|
22
|
+
{
|
23
|
+
"type": "Creative Commons Attribution 2.5 License",
|
24
|
+
"url": "http://creativecommons.org/licenses/by/2.5/"
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"devDependencies": {
|
28
|
+
"grunt": "~0.4.2",
|
29
|
+
"grunt-contrib-compass": "^0.7.2",
|
30
|
+
"grunt-contrib-watch": "^0.5.3",
|
31
|
+
"grunt-contrib-connect": "^0.7.1",
|
32
|
+
"grunt-ftp-deploy": "^0.1.1",
|
33
|
+
"grunt-contrib-uglify": "~0.4.0",
|
34
|
+
"grunt-contrib-jshint": "~0.9.2",
|
35
|
+
"grunt-exec": "~0.4.5"
|
36
|
+
}
|
37
|
+
}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "**/*";
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
Hola Mundo
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
@@ -0,0 +1 @@
|
|
1
|
+
set :debug_assets, true
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%= javascript_include_tag "main", :data => { :name => "main" } %>
|
2
|
+
<%= javascript_include_tag "//domain.com/script.js" %>
|
3
|
+
<%= javascript_include_tag "http://domain.com/script.js" %>
|
4
|
+
<%= javascript_include_tag "https://domain.com/script.js" %>
|
5
|
+
<%= stylesheet_link_tag "app" %>
|
6
|
+
<%= stylesheet_link_tag "//domain.com/styles.css" %>
|
7
|
+
<%= stylesheet_link_tag "http://domain.com/styles.css" %>
|
8
|
+
<%= stylesheet_link_tag "https://domain.com/styles.css" %>
|
@@ -0,0 +1 @@
|
|
1
|
+
function dependency2() {}
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require "bootstrap.scss"
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require "sprockets_sub"
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "sprockets_sub";
|
@@ -0,0 +1 @@
|
|
1
|
+
hello { world: "hi"; }
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require "jquery"
|