bpm 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. data/.gitmodules +3 -0
  2. data/Gemfile +0 -13
  3. data/TODO.md +1 -0
  4. data/bpm.gemspec +8 -3
  5. data/lib/bpm/cli/base.rb +22 -20
  6. data/lib/bpm/generator.rb +3 -3
  7. data/lib/bpm/libgems_ext/dependency_installer.rb +4 -4
  8. data/lib/bpm/libgems_ext/installer.rb +1 -1
  9. data/lib/bpm/package.rb +13 -9
  10. data/lib/bpm/pipeline/generated_asset.rb +30 -3
  11. data/lib/bpm/pipeline/transport_processor.rb +20 -12
  12. data/lib/bpm/pipeline.rb +17 -9
  13. data/lib/bpm/project.rb +42 -10
  14. data/lib/bpm/server.rb +5 -0
  15. data/lib/bpm/version.rb +1 -1
  16. data/lib/bpm.rb +2 -0
  17. data/lib/vendored_sprockets.rb +7 -0
  18. data/spec/cli/add_spec.rb +40 -37
  19. data/spec/cli/build_spec.rb +5 -5
  20. data/spec/cli/new_spec.rb +49 -23
  21. data/spec/cli/push_spec.rb +5 -5
  22. data/spec/cli/unpack_spec.rb +14 -14
  23. data/spec/fixtures/{badrake-0.8.7.spd → badrake-0.8.7.bpkg} +0 -0
  24. data/spec/fixtures/{builder-3.0.0.spd → builder-3.0.0.bpkg} +0 -0
  25. data/spec/fixtures/{bundler-1.1.pre.spd → bundler-1.1.pre.bpkg} +0 -0
  26. data/spec/fixtures/{coffee-1.0.1.pre.spd → coffee-1.0.1.pre.bpkg} +0 -0
  27. data/spec/fixtures/{core-test-0.4.9.spd → core-test-0.4.9.bpkg} +0 -0
  28. data/spec/fixtures/{custom_generator-1.0.spd → custom_generator-1.0.bpkg} +0 -0
  29. data/spec/fixtures/custom_name/MyProject.json +4 -0
  30. data/spec/fixtures/hello_world/css/dummy.css +3 -0
  31. data/spec/fixtures/{highline-1.6.1.spd → highline-1.6.1.bpkg} +0 -0
  32. data/spec/fixtures/{ivory-0.0.1.spd → ivory-0.0.1.bpkg} +0 -0
  33. data/spec/fixtures/{jquery-1.4.3.spd → jquery-1.4.3.bpkg} +0 -0
  34. data/spec/fixtures/minitest/assets/bpm_packages.js +1 -0
  35. data/spec/fixtures/minitest/assets/bpm_styles.css +0 -0
  36. data/spec/fixtures/minitest/assets/minitest/app_package.js +1 -0
  37. data/spec/fixtures/minitest/lib/main.js +1 -0
  38. data/spec/fixtures/minitest/minitest.json +22 -0
  39. data/spec/fixtures/minitest/packages/uglyduck/lib/main.js +1 -0
  40. data/spec/fixtures/minitest/packages/uglyduck/minifier/main.js +4 -0
  41. data/spec/fixtures/minitest/packages/uglyduck/package.json +21 -0
  42. data/spec/fixtures/{optparse-1.0.1.spd → optparse-1.0.1.bpkg} +0 -0
  43. data/spec/fixtures/{rake-0.8.6.spd → rake-0.8.6.bpkg} +0 -0
  44. data/spec/fixtures/{rake-0.8.7.spd → rake-0.8.7.bpkg} +0 -0
  45. data/spec/fixtures/{spade-0.5.0.spd → spade-0.5.0.bpkg} +0 -0
  46. data/spec/fixtures/transporter/packages/transport/lib/main.js +1 -0
  47. data/spec/fixtures/transporter/packages/transport/package.json +1 -1
  48. data/spec/fixtures/transporter/packages/transport/transports/wrapper.js +5 -0
  49. data/spec/gauntlet_spec.rb +2 -2
  50. data/spec/package_spec.rb +3 -3
  51. data/spec/pipeline_spec.rb +175 -54
  52. data/spec/project_spec.rb +19 -3
  53. data/spec/support/fake_gem_server.rb +4 -4
  54. data/templates/init/project.json +3 -1
  55. data/templates/project/index.html +1 -1
  56. data/vendor/sprockets/.gitignore +7 -0
  57. data/vendor/sprockets/.travis.yml +6 -0
  58. data/vendor/sprockets/Gemfile +8 -0
  59. data/vendor/sprockets/LICENSE +20 -0
  60. data/vendor/sprockets/README.md +22 -0
  61. data/vendor/sprockets/Rakefile +8 -0
  62. data/vendor/sprockets/lib/sprockets/asset.rb +203 -0
  63. data/vendor/sprockets/lib/sprockets/asset_attributes.rb +161 -0
  64. data/vendor/sprockets/lib/sprockets/base.rb +147 -0
  65. data/vendor/sprockets/lib/sprockets/bundled_asset.rb +222 -0
  66. data/vendor/sprockets/lib/sprockets/cache/file_store.rb +41 -0
  67. data/vendor/sprockets/lib/sprockets/caching.rb +121 -0
  68. data/vendor/sprockets/lib/sprockets/charset_normalizer.rb +41 -0
  69. data/vendor/sprockets/lib/sprockets/context.rb +191 -0
  70. data/vendor/sprockets/lib/sprockets/digest.rb +73 -0
  71. data/vendor/sprockets/lib/sprockets/directive_processor.rb +380 -0
  72. data/vendor/sprockets/lib/sprockets/eco_template.rb +39 -0
  73. data/vendor/sprockets/lib/sprockets/ejs_template.rb +38 -0
  74. data/vendor/sprockets/lib/sprockets/engines.rb +92 -0
  75. data/vendor/sprockets/lib/sprockets/environment.rb +93 -0
  76. data/vendor/sprockets/lib/sprockets/errors.rb +17 -0
  77. data/vendor/sprockets/lib/sprockets/index.rb +80 -0
  78. data/vendor/sprockets/lib/sprockets/jst_processor.rb +26 -0
  79. data/vendor/sprockets/lib/sprockets/processing.rb +310 -0
  80. data/vendor/sprockets/lib/sprockets/processor.rb +32 -0
  81. data/vendor/sprockets/lib/sprockets/safety_colons.rb +28 -0
  82. data/vendor/sprockets/lib/sprockets/server.rb +270 -0
  83. data/vendor/sprockets/lib/sprockets/static_asset.rb +87 -0
  84. data/vendor/sprockets/lib/sprockets/static_compilation.rb +82 -0
  85. data/vendor/sprockets/lib/sprockets/trail.rb +122 -0
  86. data/vendor/sprockets/lib/sprockets/utils.rb +67 -0
  87. data/vendor/sprockets/lib/sprockets/version.rb +3 -0
  88. data/vendor/sprockets/lib/sprockets.rb +31 -0
  89. data/vendor/sprockets/sprockets.gemspec +30 -0
  90. data/vendor/sprockets/test/fixtures/asset/POW.png +0 -0
  91. data/vendor/sprockets/test/fixtures/asset/application.js +6 -0
  92. data/vendor/sprockets/test/fixtures/asset/bar-utf8.css +2 -0
  93. data/vendor/sprockets/test/fixtures/asset/charset.css +2 -0
  94. data/vendor/sprockets/test/fixtures/asset/circle/a.js +2 -0
  95. data/vendor/sprockets/test/fixtures/asset/circle/b.js +2 -0
  96. data/vendor/sprockets/test/fixtures/asset/circle/c.js +2 -0
  97. data/vendor/sprockets/test/fixtures/asset/compat.js +4 -0
  98. data/vendor/sprockets/test/fixtures/asset/constants.js +2 -0
  99. data/vendor/sprockets/test/fixtures/asset/constants.yml +1 -0
  100. data/vendor/sprockets/test/fixtures/asset/default_mime_type.js +1 -0
  101. data/vendor/sprockets/test/fixtures/asset/filename.js.erb +1 -0
  102. data/vendor/sprockets/test/fixtures/asset/foo-utf8.css +2 -0
  103. data/vendor/sprockets/test/fixtures/asset/included_header.js +4 -0
  104. data/vendor/sprockets/test/fixtures/asset/jquery.tmpl.min.js +1 -0
  105. data/vendor/sprockets/test/fixtures/asset/mismatch.js +1 -0
  106. data/vendor/sprockets/test/fixtures/asset/multiple.js +2 -0
  107. data/vendor/sprockets/test/fixtures/asset/multipleengine.js +1 -0
  108. data/vendor/sprockets/test/fixtures/asset/noengine.js +1 -0
  109. data/vendor/sprockets/test/fixtures/asset/noformat.coffee +1 -0
  110. data/vendor/sprockets/test/fixtures/asset/one.css +1 -0
  111. data/vendor/sprockets/test/fixtures/asset/oneengine.js +1 -0
  112. data/vendor/sprockets/test/fixtures/asset/project.css +1 -0
  113. data/vendor/sprockets/test/fixtures/asset/project.js.erb +4 -0
  114. data/vendor/sprockets/test/fixtures/asset/relative/include.js +4 -0
  115. data/vendor/sprockets/test/fixtures/asset/relative/require.js +1 -0
  116. data/vendor/sprockets/test/fixtures/asset/relative/require_outside_path.js +1 -0
  117. data/vendor/sprockets/test/fixtures/asset/require_self.css +9 -0
  118. data/vendor/sprockets/test/fixtures/asset/require_self_twice.css +8 -0
  119. data/vendor/sprockets/test/fixtures/asset/semicolons/bar.js +1 -0
  120. data/vendor/sprockets/test/fixtures/asset/semicolons/index.js +5 -0
  121. data/vendor/sprockets/test/fixtures/asset/sprite.css.erb +12 -0
  122. data/vendor/sprockets/test/fixtures/asset/tree/all/b/c/d.js +2 -0
  123. data/vendor/sprockets/test/fixtures/asset/tree/all/b/c/e.js +1 -0
  124. data/vendor/sprockets/test/fixtures/asset/tree/all/b/c.js +1 -0
  125. data/vendor/sprockets/test/fixtures/asset/tree/all/b.css +2 -0
  126. data/vendor/sprockets/test/fixtures/asset/tree/all/b.js.erb +1 -0
  127. data/vendor/sprockets/test/fixtures/asset/tree/all/d/c.js.coffee +1 -0
  128. data/vendor/sprockets/test/fixtures/asset/tree/all/d/e.js +1 -0
  129. data/vendor/sprockets/test/fixtures/asset/tree/all_with_require.js +7 -0
  130. data/vendor/sprockets/test/fixtures/asset/tree/all_with_require_directory.js +1 -0
  131. data/vendor/sprockets/test/fixtures/asset/tree/all_with_require_tree.js +2 -0
  132. data/vendor/sprockets/test/fixtures/asset/tree/directory/application.js +2 -0
  133. data/vendor/sprockets/test/fixtures/asset/tree/directory/bar.js +1 -0
  134. data/vendor/sprockets/test/fixtures/asset/tree/directory/foo.js +1 -0
  135. data/vendor/sprockets/test/fixtures/asset/tree/tree/application.js +2 -0
  136. data/vendor/sprockets/test/fixtures/asset/tree/tree/bar.js +1 -0
  137. data/vendor/sprockets/test/fixtures/asset/tree/tree/foo.js +1 -0
  138. data/vendor/sprockets/test/fixtures/asset/tree/with_logical_path/a/a.js +1 -0
  139. data/vendor/sprockets/test/fixtures/asset/tree/with_logical_path/require_tree_with_logical_path.js +1 -0
  140. data/vendor/sprockets/test/fixtures/asset/tree/without_argument/a.js +1 -0
  141. data/vendor/sprockets/test/fixtures/asset/tree/without_argument/b.js +1 -0
  142. data/vendor/sprockets/test/fixtures/asset/tree/without_argument/require_tree_without_argument.js +1 -0
  143. data/vendor/sprockets/test/fixtures/asset/two.css +1 -0
  144. data/vendor/sprockets/test/fixtures/asset/unicode.js +2 -0
  145. data/vendor/sprockets/test/fixtures/asset/unknownexts.min.js +2 -0
  146. data/vendor/sprockets/test/fixtures/asset/users.js.erb.str +4 -0
  147. data/vendor/sprockets/test/fixtures/context/POW.png +0 -0
  148. data/vendor/sprockets/test/fixtures/context/application.js.yml +3 -0
  149. data/vendor/sprockets/test/fixtures/context/bar.js +1 -0
  150. data/vendor/sprockets/test/fixtures/context/foo.js +2 -0
  151. data/vendor/sprockets/test/fixtures/context/helpers.css.erb +3 -0
  152. data/vendor/sprockets/test/fixtures/context/properties.js.erb +7 -0
  153. data/vendor/sprockets/test/fixtures/context/require_glob.js +1 -0
  154. data/vendor/sprockets/test/fixtures/context/resolve_content_type.js.erb +4 -0
  155. data/vendor/sprockets/test/fixtures/context/sprite.css.embed +3 -0
  156. data/vendor/sprockets/test/fixtures/default/application.js.coffee +4 -0
  157. data/vendor/sprockets/test/fixtures/default/coffee/foo.coffee +1 -0
  158. data/vendor/sprockets/test/fixtures/default/coffee/index.js +3 -0
  159. data/vendor/sprockets/test/fixtures/default/empty +0 -0
  160. data/vendor/sprockets/test/fixtures/default/gallery.css.erb +3 -0
  161. data/vendor/sprockets/test/fixtures/default/gallery.js +1 -0
  162. data/vendor/sprockets/test/fixtures/default/goodbye.jst.eco +1 -0
  163. data/vendor/sprockets/test/fixtures/default/hello.jst.ejs +1 -0
  164. data/vendor/sprockets/test/fixtures/default/hello.txt +1 -0
  165. data/vendor/sprockets/test/fixtures/default/interpolation.js +1 -0
  166. data/vendor/sprockets/test/fixtures/default/missing_require.js +1 -0
  167. data/vendor/sprockets/test/fixtures/default/mobile/a.js +1 -0
  168. data/vendor/sprockets/test/fixtures/default/mobile/b.js +1 -0
  169. data/vendor/sprockets/test/fixtures/default/mobile/c.css +1 -0
  170. data/vendor/sprockets/test/fixtures/default/mobile/d.css +1 -0
  171. data/vendor/sprockets/test/fixtures/default/mobile/index.css +3 -0
  172. data/vendor/sprockets/test/fixtures/default/mobile/index.js +1 -0
  173. data/vendor/sprockets/test/fixtures/default/noreturn.js +1 -0
  174. data/vendor/sprockets/test/fixtures/default/project.js.coffee.erb +2 -0
  175. data/vendor/sprockets/test/fixtures/directives/code_before_comment +3 -0
  176. data/vendor/sprockets/test/fixtures/directives/comment_without_directives +6 -0
  177. data/vendor/sprockets/test/fixtures/directives/directive_word_splitting +6 -0
  178. data/vendor/sprockets/test/fixtures/directives/directives_after_header +16 -0
  179. data/vendor/sprockets/test/fixtures/directives/double_slash +9 -0
  180. data/vendor/sprockets/test/fixtures/directives/hash +8 -0
  181. data/vendor/sprockets/test/fixtures/directives/no_header +2 -0
  182. data/vendor/sprockets/test/fixtures/directives/slash_star +10 -0
  183. data/vendor/sprockets/test/fixtures/directives/slash_star_single +4 -0
  184. data/vendor/sprockets/test/fixtures/directives/space_between_directive_word +2 -0
  185. data/vendor/sprockets/test/fixtures/directives/triple_hash +10 -0
  186. data/vendor/sprockets/test/fixtures/encoding/ascii.js +1 -0
  187. data/vendor/sprockets/test/fixtures/encoding/ascii_utf8.js +2 -0
  188. data/vendor/sprockets/test/fixtures/encoding/utf16.js +0 -0
  189. data/vendor/sprockets/test/fixtures/encoding/utf8.js +1 -0
  190. data/vendor/sprockets/test/fixtures/encoding/utf8_bom.js +1 -0
  191. data/vendor/sprockets/test/fixtures/engines/hello.alert +1 -0
  192. data/vendor/sprockets/test/fixtures/engines/moo.js.str +1 -0
  193. data/vendor/sprockets/test/fixtures/public/compiled-digest-0aa2105d29558f3eb790d411d7d8fb66.js +3 -0
  194. data/vendor/sprockets/test/fixtures/public/compiled-digest-1c41eb0cf934a0c76babe875f982f9d1.js +1 -0
  195. data/vendor/sprockets/test/fixtures/server/app/javascripts/application.js +5 -0
  196. data/vendor/sprockets/test/fixtures/server/app/javascripts/bar.js +1 -0
  197. data/vendor/sprockets/test/fixtures/server/app/javascripts/foo.js +1 -0
  198. data/vendor/sprockets/test/fixtures/server/app/javascripts/hello.txt +2 -0
  199. data/vendor/sprockets/test/fixtures/server/app/javascripts/tree.js +1 -0
  200. data/vendor/sprockets/test/fixtures/server/vendor/javascripts/missing_require.js +1 -0
  201. data/vendor/sprockets/test/fixtures/server/vendor/stylesheets/missing_require.css +1 -0
  202. data/vendor/sprockets/test/sprockets_test.rb +56 -0
  203. data/vendor/sprockets/test/test_asset.rb +593 -0
  204. data/vendor/sprockets/test/test_asset_attributes.rb +86 -0
  205. data/vendor/sprockets/test/test_caching.rb +62 -0
  206. data/vendor/sprockets/test/test_context.rb +115 -0
  207. data/vendor/sprockets/test/test_directive_processor.rb +124 -0
  208. data/vendor/sprockets/test/test_encoding.rb +65 -0
  209. data/vendor/sprockets/test/test_engines.rb +73 -0
  210. data/vendor/sprockets/test/test_environment.rb +610 -0
  211. data/vendor/sprockets/test/test_server.rb +227 -0
  212. metadata +258 -54
  213. data/spec/fixtures/transporter/packages/transport/lib/wrapper.js +0 -5
@@ -0,0 +1,31 @@
1
+ require 'sprockets/version'
2
+
3
+ module Sprockets
4
+ autoload :ArgumentError, "sprockets/errors"
5
+ autoload :Asset, "sprockets/asset"
6
+ autoload :AssetAttributes, "sprockets/asset_attributes"
7
+ autoload :BundledAsset, "sprockets/bundled_asset"
8
+ autoload :CharsetNormalizer, "sprockets/charset_normalizer"
9
+ autoload :CircularDependencyError, "sprockets/errors"
10
+ autoload :ContentTypeMismatch, "sprockets/errors"
11
+ autoload :Context, "sprockets/context"
12
+ autoload :DirectiveProcessor, "sprockets/directive_processor"
13
+ autoload :EcoTemplate, "sprockets/eco_template"
14
+ autoload :EjsTemplate, "sprockets/ejs_template"
15
+ autoload :EngineError, "sprockets/errors"
16
+ autoload :Engines, "sprockets/engines"
17
+ autoload :Environment, "sprockets/environment"
18
+ autoload :Error, "sprockets/errors"
19
+ autoload :FileNotFound, "sprockets/errors"
20
+ autoload :Index, "sprockets/index"
21
+ autoload :JstProcessor, "sprockets/jst_processor"
22
+ autoload :Processing, "sprockets/processing"
23
+ autoload :Processor, "sprockets/processor"
24
+ autoload :Server, "sprockets/server"
25
+ autoload :StaticAsset, "sprockets/static_asset"
26
+ autoload :Utils, "sprockets/utils"
27
+
28
+ module Cache
29
+ autoload :FileStore, "sprockets/cache/file_store"
30
+ end
31
+ end
@@ -0,0 +1,30 @@
1
+ unless defined? Sprockets::VERSION
2
+ $:.unshift File.expand_path("../lib", __FILE__)
3
+ require "sprockets/version"
4
+ end
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "sprockets"
8
+ s.version = Sprockets::VERSION
9
+ s.summary = "Rack-based asset packaging system"
10
+ s.description = "Sprockets is a Rack-based asset packaging system that concatenates and serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS."
11
+
12
+ s.files = Dir["README.md", "LICENSE", "lib/**/*.rb"]
13
+
14
+ s.add_dependency "hike", "~> 1.1"
15
+ s.add_dependency "rack", "~> 1.0"
16
+ s.add_dependency "tilt", ["~> 1.1", "!= 1.3.0"]
17
+
18
+ s.add_development_dependency "coffee-script", "~> 2.0"
19
+ s.add_development_dependency "eco", "~> 1.0"
20
+ s.add_development_dependency "ejs", "~> 1.0"
21
+ s.add_development_dependency "execjs", "~> 1.0"
22
+ s.add_development_dependency "json"
23
+ s.add_development_dependency "rack-test"
24
+ s.add_development_dependency "rake"
25
+
26
+ s.authors = ["Sam Stephenson", "Joshua Peek"]
27
+ s.email = "sstephenson@gmail.com"
28
+ s.homepage = "http://getsprockets.org/"
29
+ s.rubyforge_project = "sprockets"
30
+ end
@@ -0,0 +1,6 @@
1
+ // =require "project"
2
+ // =require "users"
3
+
4
+ document.on('dom:loaded', function() {
5
+ $('search').focus();
6
+ });
@@ -0,0 +1,2 @@
1
+ @charset "UTF-8";
2
+ .bar {}
@@ -0,0 +1,2 @@
1
+ //= require foo-utf8
2
+ //= require bar-utf8
@@ -0,0 +1,2 @@
1
+ //= require circle/b
2
+ var A;
@@ -0,0 +1,2 @@
1
+ //= require circle/c
2
+ var B;
@@ -0,0 +1,2 @@
1
+ //= require circle/a
2
+ var C;
@@ -0,0 +1,4 @@
1
+ //= compat
2
+ //= require "project"
3
+ //= require <users>
4
+ //= provide "../images"
@@ -0,0 +1,2 @@
1
+ //= compat
2
+ var Prototype = { version: '<%= VERSION %>' };
@@ -0,0 +1 @@
1
+ VERSION: 2.0
@@ -0,0 +1 @@
1
+ // =require "noformat"
@@ -0,0 +1 @@
1
+ var filename = "<%= __FILE__ %>";
@@ -0,0 +1,2 @@
1
+ @charset "UTF-8";
2
+ .foo {}
@@ -0,0 +1,4 @@
1
+ # My Application
2
+ # =include "project.js"
3
+
4
+ hello();
@@ -0,0 +1 @@
1
+ var jQuery;
@@ -0,0 +1 @@
1
+ // =require "project.css"
@@ -0,0 +1,2 @@
1
+ // =require "project"
2
+ // =require "project.js"
@@ -0,0 +1 @@
1
+ // =require "users.js.erb.str"
@@ -0,0 +1 @@
1
+ // =require "users.js"
@@ -0,0 +1 @@
1
+ "CoffeeScript"
@@ -0,0 +1 @@
1
+ .one {}
@@ -0,0 +1 @@
1
+ // =require "users.js.erb"
@@ -0,0 +1 @@
1
+ .project {}
@@ -0,0 +1,4 @@
1
+ var Project = {
2
+ find: function(id) {
3
+ }
4
+ };
@@ -0,0 +1,4 @@
1
+ // Included relatively
2
+ // =include ../project.js
3
+
4
+ hello();
@@ -0,0 +1 @@
1
+ //= require ../project
@@ -0,0 +1 @@
1
+ //= require ../../default/gallery
@@ -0,0 +1,9 @@
1
+ /*
2
+ *= require tree/all/b
3
+ *= include one
4
+ *= require_self
5
+ *= require project
6
+ *= include two
7
+ */
8
+
9
+ body {}
@@ -0,0 +1,8 @@
1
+ /*
2
+ *= require tree/all/b
3
+ *= require_self
4
+ *= require project
5
+ *= require_self
6
+ */
7
+
8
+ body {}
@@ -0,0 +1,5 @@
1
+ //= require ./bar
2
+
3
+ (function() {
4
+ var Foo
5
+ })
@@ -0,0 +1,12 @@
1
+ /*
2
+ *= depend_on "POW.png"
3
+ */
4
+
5
+ <%
6
+ require 'base64'
7
+ path = File.expand_path("../POW.png", __FILE__)
8
+ data = Base64.encode64(File.open(path, "rb") { |f| f.read })
9
+ %>
10
+ .pow {
11
+ background: url(data:image/png;base64,<%= data %>) no-repeat;
12
+ }
@@ -0,0 +1,2 @@
1
+ // =require ../c
2
+ ok("b/c/d.js");
@@ -0,0 +1 @@
1
+ ok("b/c/e.js");
@@ -0,0 +1 @@
1
+ ok("b/c.js");
@@ -0,0 +1,2 @@
1
+ /* b.css */
2
+ b { display: none }
@@ -0,0 +1 @@
1
+ ok("b.js.erb");
@@ -0,0 +1 @@
1
+ ok "d/c.js.coffee"
@@ -0,0 +1 @@
1
+ ok("d/e.js");
@@ -0,0 +1,7 @@
1
+ // =require ./all/b
2
+ // =require ./all/b/c
3
+ // =require ./all/b/c/d
4
+ // =require ./all/b/c/e
5
+ // =require ./all/d/c
6
+ // =require ./all/d/e
7
+
@@ -0,0 +1 @@
1
+ // =require_directory ./all
@@ -0,0 +1,2 @@
1
+ // =require_tree ./all
2
+
@@ -0,0 +1,2 @@
1
+ //= require_directory .
2
+ var App;
@@ -0,0 +1,2 @@
1
+ //= require_tree .
2
+ var App;
@@ -0,0 +1 @@
1
+ .two {}
@@ -0,0 +1,2 @@
1
+ "☃";
2
+
@@ -0,0 +1,2 @@
1
+ // =require "users.js.erb.str"
2
+ // =require "jquery.tmpl.min"
@@ -0,0 +1,4 @@
1
+ var Users = {
2
+ find: function(id) {
3
+ }
4
+ };
@@ -0,0 +1,3 @@
1
+ require:
2
+ - foo.js
3
+ - bar.js
@@ -0,0 +1 @@
1
+ var Bar = {};
@@ -0,0 +1,2 @@
1
+ var Foo = {};
2
+
@@ -0,0 +1,3 @@
1
+ .pow {
2
+ background: url(data:image/png;base64,<%= datauri File.expand_path("../POW.png", __FILE__) %>) no-repeat;
3
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "pathname" : "<%= pathname %>",
3
+ "__FILE__" : "<%= __FILE__ %>",
4
+ "root_path" : "<%= root_path %>",
5
+ "logical_path" : "<%= logical_path %>",
6
+ "content_type" : "<%= content_type %>"
7
+ };
@@ -0,0 +1 @@
1
+ //= require_glob "fo*.js"
@@ -0,0 +1,4 @@
1
+ <%= resolve("foo.js") %>,
2
+ <%= resolve("foo.js", :content_type => "application/javascript") %>,
3
+ <%= resolve("foo.js", :content_type => :self) %>,
4
+ <%= begin; resolve("foo.js", :content_type => "text/css"); rescue Exception => e; e end %>;
@@ -0,0 +1,3 @@
1
+ .pow {
2
+ background: url("POW.png") no-repeat;
3
+ }
@@ -0,0 +1,4 @@
1
+ # My Application
2
+ # =require "project.js"
3
+
4
+ hello()
@@ -0,0 +1 @@
1
+ foo = 'hello'
@@ -0,0 +1,3 @@
1
+ //= require ./foo
2
+
3
+ return typeof foo;
File without changes
@@ -0,0 +1,3 @@
1
+ .gallery {
2
+ color: red;
3
+ }
@@ -0,0 +1 @@
1
+ var Gallery = {};
@@ -0,0 +1 @@
1
+ Goodbye <%= @name %>
@@ -0,0 +1 @@
1
+ hello: <%= name %>
@@ -0,0 +1 @@
1
+ Hello world
@@ -0,0 +1 @@
1
+ var Interpolation = <%= 1 + 1 %>;
@@ -0,0 +1 @@
1
+ // =require "notfound"
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require_tree .
3
+ */
@@ -0,0 +1 @@
1
+ //= require_tree .
@@ -0,0 +1 @@
1
+ var Foo;
@@ -0,0 +1,2 @@
1
+ window.Project = class Project
2
+ VERSION: <%= "1.0" %>
@@ -0,0 +1,3 @@
1
+ <% VERSION = "1.0" %>
2
+ // comment
3
+ var VERSION = "<%= VERSION %>";
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Comment
3
+ */
4
+
5
+ (function() {
6
+ })();
@@ -0,0 +1,6 @@
1
+ // =one
2
+ // =one "two"
3
+ // =one two three
4
+ // =one "two three"
5
+ // ="four" five
6
+ // =six 'seven'
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Header
3
+ *= require a
4
+ */
5
+
6
+ // =require b
7
+ // =require c
8
+
9
+ /*= require d */
10
+
11
+ /* Not a directive */
12
+
13
+ (function() {
14
+ })();
15
+
16
+ /*= require e */
@@ -0,0 +1,9 @@
1
+ // Header
2
+ //
3
+ // =require "a"
4
+ // =require "b"
5
+ //
6
+ // =require "c"
7
+
8
+ (function() {
9
+ })();
@@ -0,0 +1,8 @@
1
+ # Header
2
+ #
3
+ # =require "a"
4
+ # =require "b"
5
+ #
6
+ # =require "c"
7
+
8
+ (->)()
@@ -0,0 +1,2 @@
1
+ (function() {
2
+ })();
@@ -0,0 +1,10 @@
1
+ /* Header
2
+ *
3
+ * =require "a"
4
+ * =require "b"
5
+ *
6
+ * =require "c"
7
+ */
8
+
9
+ (function() {
10
+ })();
@@ -0,0 +1,4 @@
1
+ /*= require "a" */
2
+
3
+ (function() {
4
+ })();
@@ -0,0 +1,2 @@
1
+ //= require "foo"
2
+ var foo;
@@ -0,0 +1,10 @@
1
+ ###
2
+ Header
3
+
4
+ =require "a"
5
+ =require "b"
6
+
7
+ =require "c"
8
+ ###
9
+
10
+ (->)()
@@ -0,0 +1 @@
1
+ var foo = "bar";
@@ -0,0 +1,2 @@
1
+ //= require ascii
2
+ //= require utf8
@@ -0,0 +1 @@
1
+ var snowman = "☃";
@@ -0,0 +1 @@
1
+ var snowman = "☃";
@@ -0,0 +1 @@
1
+ Hello world!
@@ -0,0 +1 @@
1
+ console.log("Moo, #{RUBY_VERSION}");
@@ -0,0 +1,3 @@
1
+ (function() {
2
+ application.boot();
3
+ })();
@@ -0,0 +1,5 @@
1
+ // =require "foo"
2
+
3
+ (function() {
4
+ application.boot();
5
+ })();
@@ -0,0 +1,2 @@
1
+ # =require "nothing"
2
+ Hello world
@@ -0,0 +1 @@
1
+ // =require_tree "."
@@ -0,0 +1 @@
1
+ /*= require nonexistent */