middleman-sprockets-cj 3.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +2 -0
  4. data/.simplecov +9 -0
  5. data/.travis.yml +15 -0
  6. data/CHANGELOG.md +71 -0
  7. data/CONTRIBUTING.md +43 -0
  8. data/Gemfile +32 -0
  9. data/LICENSE.md +20 -0
  10. data/README.md +104 -0
  11. data/Rakefile +45 -0
  12. data/features/asset_hash-3.0.feature +105 -0
  13. data/features/asset_hash.feature +107 -0
  14. data/features/bower.feature +37 -0
  15. data/features/jst.feature +14 -0
  16. data/features/long_filenames.feature +17 -0
  17. data/features/sass_globs.feature +9 -0
  18. data/features/sass_partials.feature +36 -0
  19. data/features/sprockets.feature +129 -0
  20. data/features/sprockets_gems.feature +67 -0
  21. data/features/step_definitions/server_steps.rb +7 -0
  22. data/features/support/env.rb +18 -0
  23. data/fixtures/asset-hash-app/config.rb +7 -0
  24. data/fixtures/asset-hash-app/source/images/100px.gif +0 -0
  25. data/fixtures/asset-hash-app/source/images/100px.jpg +0 -0
  26. data/fixtures/asset-hash-app/source/images/100px.png +0 -0
  27. data/fixtures/asset-hash-app/source/index.html.erb +308 -0
  28. data/fixtures/asset-hash-app/source/javascripts/application.js +8 -0
  29. data/fixtures/asset-hash-app/source/javascripts/sprockets_base.js +5 -0
  30. data/fixtures/asset-hash-app/source/javascripts/sprockets_sub.js +3 -0
  31. data/fixtures/asset-hash-app/source/layout.erb +19 -0
  32. data/fixtures/asset-hash-app/source/other.html.erb +2 -0
  33. data/fixtures/asset-hash-app/source/partials.html.erb +2 -0
  34. data/fixtures/asset-hash-app/source/stylesheets/_partial.sass +2 -0
  35. data/fixtures/asset-hash-app/source/stylesheets/jquery-mobile.css.scss +1 -0
  36. data/fixtures/asset-hash-app/source/stylesheets/site.css.scss +4 -0
  37. data/fixtures/asset-hash-app/source/stylesheets/uses_partials.css.sass +4 -0
  38. data/fixtures/asset-hash-app/source/subdir/index.html.erb +308 -0
  39. data/fixtures/asset-hash-host-app/config.rb +6 -0
  40. data/fixtures/asset-hash-host-app/source/images/100px.gif +0 -0
  41. data/fixtures/asset-hash-host-app/source/images/100px.jpg +0 -0
  42. data/fixtures/asset-hash-host-app/source/images/100px.png +0 -0
  43. data/fixtures/asset-hash-host-app/source/index.html.erb +6 -0
  44. data/fixtures/asset-hash-host-app/source/layout.erb +17 -0
  45. data/fixtures/asset-hash-host-app/source/other.html.erb +2 -0
  46. data/fixtures/asset-hash-host-app/source/stylesheets/site.css.scss +4 -0
  47. data/fixtures/asset-hash-host-app/source/subdir/index.html.erb +6 -0
  48. data/fixtures/asset-paths-app/config.rb +4 -0
  49. data/fixtures/asset-paths-app/derp/javascripts/vendored_js.js +1 -0
  50. data/fixtures/asset-paths-app/source/javascripts/vendored_include.js +1 -0
  51. data/fixtures/bower-app/bower.json +7 -0
  52. data/fixtures/bower-app/bower_components/underscore/bower.json +8 -0
  53. data/fixtures/bower-app/bower_components/underscore/underscore.js +1343 -0
  54. data/fixtures/bower-app/config.rb +3 -0
  55. data/fixtures/bower-app/source/javascripts/application.js +1 -0
  56. data/fixtures/bower-individual-outputdir-app/bower.json +7 -0
  57. data/fixtures/bower-individual-outputdir-app/bower_components/underscore/bower.json +8 -0
  58. data/fixtures/bower-individual-outputdir-app/bower_components/underscore/underscore.js +1343 -0
  59. data/fixtures/bower-individual-outputdir-app/config.rb +6 -0
  60. data/fixtures/bower-individual-outputdir-app/source/javascripts/application.js +1 -0
  61. data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/.bower.json +34 -0
  62. data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/bower.json +26 -0
  63. data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/img/close.png +0 -0
  64. data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/js/lightbox.js +2 -0
  65. data/fixtures/bower-individual-outputdir-app/vendor/assets/components/lightbox2/package.json +37 -0
  66. data/fixtures/bower-json-app/config.rb +1 -0
  67. data/fixtures/bower-json-app/source/javascripts/application.js.coffee +1 -0
  68. data/fixtures/bower-json-app/source/javascripts/bower.json +5 -0
  69. data/fixtures/bower-multiple-assets-app/.bowerrc +4 -0
  70. data/fixtures/bower-multiple-assets-app/bower.json +7 -0
  71. data/fixtures/bower-multiple-assets-app/config.rb +7 -0
  72. data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/.bower.json +34 -0
  73. data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/bower.json +26 -0
  74. data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/img/close.png +0 -0
  75. data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/js/lightbox.js +2 -0
  76. data/fixtures/bower-multiple-assets-app/vendor/assets/components/lightbox2/package.json +37 -0
  77. data/fixtures/glob-app/config.rb +0 -0
  78. data/fixtures/glob-app/source/stylesheets/main.css.scss +1 -0
  79. data/fixtures/glob-app/source/stylesheets/module1/_i-am-mod.scss +3 -0
  80. data/fixtures/glob-app/source/stylesheets/module2/_derp.sass +2 -0
  81. data/fixtures/glob-app/source/stylesheets/shared/3rd-party/bootstrap.sass +2 -0
  82. data/fixtures/glob-app/source/stylesheets/shared/shared.scss +3 -0
  83. data/fixtures/jquery-mobile-app/config.rb +0 -0
  84. data/fixtures/jquery-mobile-app/source/stylesheets/base.css.scss +2 -0
  85. data/fixtures/long-filenames-app/config.rb +0 -0
  86. data/fixtures/long-filenames-app/source/images/00000000-0000-0000-0000-000000.svg +3 -0
  87. data/fixtures/long-filenames-app/source/images/00000000-0000-0000-0000-0000001.svg +3 -0
  88. data/fixtures/preview-app/config.rb +0 -0
  89. data/fixtures/preview-app/source/content.html.erb +1 -0
  90. data/fixtures/preview-app/source/layout.erb +1 -0
  91. data/fixtures/preview-app/source/stylesheets/_partial.sass +2 -0
  92. data/fixtures/preview-app/source/stylesheets/_partial2.css.sass +2 -0
  93. data/fixtures/preview-app/source/stylesheets/main.css.sass +4 -0
  94. data/fixtures/preview-app/source/stylesheets/main2.css.sass +4 -0
  95. data/fixtures/preview-app/source/stylesheets/plain.css.sass +2 -0
  96. data/fixtures/sprockets-app-debug-assets/config.rb +1 -0
  97. data/fixtures/sprockets-app-debug-assets/source/index.html.erb +8 -0
  98. data/fixtures/sprockets-app-debug-assets/source/javascripts/dependency1.js +3 -0
  99. data/fixtures/sprockets-app-debug-assets/source/javascripts/dependency2.js +1 -0
  100. data/fixtures/sprockets-app-debug-assets/source/javascripts/main.js +4 -0
  101. data/fixtures/sprockets-app-debug-assets/source/stylesheets/app.css.scss +4 -0
  102. data/fixtures/sprockets-app-debug-assets/source/stylesheets/dependency1.css +0 -0
  103. data/fixtures/sprockets-app-debug-assets/source/stylesheets/dependency2.css.scss +0 -0
  104. data/fixtures/sprockets-app/config.rb +7 -0
  105. data/fixtures/sprockets-app/source/index.html.erb +6 -0
  106. data/fixtures/sprockets-app/source/library/css/bootstrap_include.css.scss +1 -0
  107. data/fixtures/sprockets-app/source/library/css/plain.css +3 -0
  108. data/fixtures/sprockets-app/source/library/css/sprockets_base1.css.scss +1 -0
  109. data/fixtures/sprockets-app/source/library/css/sprockets_base2.css.scss +1 -0
  110. data/fixtures/sprockets-app/source/library/css/sprockets_sub.css.scss +1 -0
  111. data/fixtures/sprockets-app/source/library/js/jquery_include.js +1 -0
  112. data/fixtures/sprockets-app/source/library/js/plain.js +3 -0
  113. data/fixtures/sprockets-app/source/library/js/sprockets_base.js +5 -0
  114. data/fixtures/sprockets-app/source/library/js/sprockets_sub.js +3 -0
  115. data/fixtures/sprockets-app/source/library/js/vendored_include.js +1 -0
  116. data/fixtures/sprockets-app/vendor/assets/javascripts/coffee.js.coffee +2 -0
  117. data/fixtures/sprockets-app/vendor/assets/javascripts/vendored_js.js +1 -0
  118. data/fixtures/sprockets-app/vendor/assets/stylesheets/vendored.css.scss +4 -0
  119. data/fixtures/sprockets-app2/config.rb +0 -0
  120. data/fixtures/sprockets-app2/data/test.yml +4 -0
  121. data/fixtures/sprockets-app2/data/test2.json +4 -0
  122. data/fixtures/sprockets-app2/source/javascripts/_templates/test.jst.ejs +1 -0
  123. data/fixtures/sprockets-app2/source/javascripts/_templates/test2.jst.eco +1 -0
  124. data/fixtures/sprockets-app2/source/javascripts/asset_path.js.erb +3 -0
  125. data/fixtures/sprockets-app2/source/javascripts/multiple_engines.js.coffee.erb +1 -0
  126. data/fixtures/sprockets-app2/source/javascripts/sprockets_base.js +5 -0
  127. data/fixtures/sprockets-app2/source/javascripts/sprockets_sub.js +3 -0
  128. data/fixtures/sprockets-app2/source/javascripts/templates.js +1 -0
  129. data/fixtures/sprockets-app2/source/stylesheets/sprockets_base1.css.scss +1 -0
  130. data/fixtures/sprockets-app2/source/stylesheets/sprockets_base2.css.scss +1 -0
  131. data/fixtures/sprockets-app2/source/stylesheets/sprockets_sub.css.scss +1 -0
  132. data/fixtures/sprockets-images-app/config.rb +1 -0
  133. data/fixtures/sprockets-images-app/source/index.html.erb +10 -0
  134. data/fixtures/sprockets-images-app/source/library/images/cat.jpg +0 -0
  135. data/fixtures/sprockets-images-app/vendor/assets/images/cat-2.jpg +0 -0
  136. data/lib/middleman-sprockets.rb +6 -0
  137. data/lib/middleman-sprockets/asset.rb +185 -0
  138. data/lib/middleman-sprockets/asset_list.rb +41 -0
  139. data/lib/middleman-sprockets/asset_tag_helpers.rb +54 -0
  140. data/lib/middleman-sprockets/config_only_environment.rb +50 -0
  141. data/lib/middleman-sprockets/environment.rb +228 -0
  142. data/lib/middleman-sprockets/extension.rb +145 -0
  143. data/lib/middleman-sprockets/imported_asset.rb +57 -0
  144. data/lib/middleman-sprockets/pathname_extensions.rb +10 -0
  145. data/lib/middleman-sprockets/sass_function_hack.rb +9 -0
  146. data/lib/middleman-sprockets/version.rb +5 -0
  147. data/middleman-sprockets.gemspec +22 -0
  148. data/spec/asset_list_spec.rb +38 -0
  149. data/spec/asset_spec.rb +116 -0
  150. data/spec/imported_asset_spec.rb +72 -0
  151. data/spec/spec_helper.rb +16 -0
  152. data/spec/support/aruba.rb +18 -0
  153. data/spec/support/rspec.rb +17 -0
  154. 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
+ }
@@ -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,5 @@
1
+ {
2
+ "name": "my-project",
3
+ "version": "1.0.0",
4
+ "main": "application.js"
5
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "directory": "vendor/assets/components",
3
+ "json": "bower.json"
4
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "my title",
3
+ "dependencies": {
4
+ "jquery": "~1.11",
5
+ "lightbox2": "https://github.com/dg-vrnetze/revealjs-lightbox2.git"
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ set :css_dir, 'stylesheets'
2
+ set :js_dir, 'javascripts'
3
+ set :images_dir, 'images'
4
+
5
+ sprockets.append_path File.join(root, 'vendor/assets/components')
6
+ sprockets.import_asset 'lightbox2/img/close.png'
7
+ sprockets.import_asset 'lightbox2/js/lightbox.js'
@@ -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
+ }
@@ -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 "**/*";
@@ -0,0 +1,3 @@
1
+ .module1 {
2
+ display: block;
3
+ }
@@ -0,0 +1,2 @@
1
+ .module2
2
+ opacity: 1
@@ -0,0 +1,2 @@
1
+ .bootstrap
2
+ derp: dedoo
@@ -0,0 +1,3 @@
1
+ .shared-root {
2
+ display: inline;
3
+ }
File without changes
@@ -0,0 +1,2 @@
1
+ //= require jquery.mobile.theme
2
+ //= require jquery.mobile.structure
File without changes
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xlink="http://www.w3.org/1999/xlink" width="300" height="300">
2
+ <rect width="100" height="100" fill="#f06"></rect>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xlink="http://www.w3.org/1999/xlink" width="300" height="300">
2
+ <rect width="100" height="100" fill="#f06"></rect>
3
+ </svg>
File without changes
@@ -0,0 +1 @@
1
+ Hola Mundo
@@ -0,0 +1 @@
1
+ <%= yield %>
@@ -0,0 +1,2 @@
1
+ body
2
+ font-size: 18px
@@ -0,0 +1,2 @@
1
+ body
2
+ font-size: 18px
@@ -0,0 +1,4 @@
1
+ @import partial.sass
2
+
3
+ red
4
+ color: blue
@@ -0,0 +1,4 @@
1
+ //= require "_partial2.css.sass"
2
+
3
+ red
4
+ color: blue
@@ -0,0 +1,2 @@
1
+ red
2
+ color: blue
@@ -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,3 @@
1
+ //= require dependency2
2
+
3
+ function dependency1() {}
@@ -0,0 +1 @@
1
+ function dependency2() {}
@@ -0,0 +1,4 @@
1
+ //= require dependency1
2
+ //= require bootstrap
3
+
4
+ function main() {}
@@ -0,0 +1,4 @@
1
+ //= require_self
2
+ //= require "dependency1"
3
+ //= require "dependency2.css.scss"
4
+ body{margin:0px}
@@ -0,0 +1,7 @@
1
+ set :js_dir, "library/js"
2
+ set :css_dir, "library/css"
3
+
4
+ after_configuration do
5
+ sprockets.import_asset "vendored.css"
6
+ sprockets.import_asset "coffee.js"
7
+ end
@@ -0,0 +1,6 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <%= javascript_include_tag :plain, :data => { :name => "plain" } %>
5
+ </head>
6
+ </html>
@@ -0,0 +1 @@
1
+ //= require "bootstrap.scss"
@@ -0,0 +1,3 @@
1
+ #helloWorld {
2
+ color: red;
3
+ }
@@ -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"
@@ -0,0 +1,3 @@
1
+ function hellowWorld() {
2
+
3
+ }
@@ -0,0 +1,5 @@
1
+ //= require "sprockets_sub"
2
+
3
+ function base() {
4
+
5
+ }
@@ -0,0 +1,3 @@
1
+ function sprockets_sub_function() {
2
+
3
+ }