bpm 1.0.0.beta.8 → 1.0.0.beta.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/CHANGELOG.md +9 -0
- data/bpm.gemspec +2 -7
- data/lib/bpm/pipeline/generated_asset.rb +19 -21
- data/lib/bpm/pipeline/plugin_context.rb +7 -7
- data/lib/bpm/pipeline/plugin_processor.rb +11 -20
- data/lib/bpm/pipeline/transport_processor.rb +8 -13
- data/lib/bpm/pipeline.rb +47 -42
- data/lib/bpm/project_generator.rb +2 -2
- data/lib/bpm/version.rb +1 -1
- data/lib/bpm.rb +0 -3
- data/spec/cli/init_spec.rb +48 -48
- data/spec/cli/rebuild_spec.rb +30 -30
- data/spec/fixtures/projects/init_app/assets/bpm_libs.js +1 -1
- data/spec/fixtures/projects/init_app/assets/bpm_styles.css +1 -1
- data/spec/fixtures/projects/init_default/assets/bpm_libs.js +1 -1
- data/spec/fixtures/projects/init_default/assets/bpm_styles.css +1 -1
- data/spec/plugins/minifier_spec.rb +8 -8
- data/templates/project/index.html +0 -2
- data/templates/project/{app → lib}/main.js +0 -0
- metadata +24 -209
- data/.gitmodules +0 -3
- data/vendor/sprockets/.gitignore +0 -7
- data/vendor/sprockets/.travis.yml +0 -7
- data/vendor/sprockets/Gemfile +0 -2
- data/vendor/sprockets/LICENSE +0 -20
- data/vendor/sprockets/README.md +0 -22
- data/vendor/sprockets/Rakefile +0 -8
- data/vendor/sprockets/lib/sprockets/asset.rb +0 -198
- data/vendor/sprockets/lib/sprockets/asset_attributes.rb +0 -178
- data/vendor/sprockets/lib/sprockets/base.rb +0 -134
- data/vendor/sprockets/lib/sprockets/bundled_asset.rb +0 -249
- data/vendor/sprockets/lib/sprockets/cache/file_store.rb +0 -41
- data/vendor/sprockets/lib/sprockets/caching.rb +0 -126
- data/vendor/sprockets/lib/sprockets/charset_normalizer.rb +0 -41
- data/vendor/sprockets/lib/sprockets/context.rb +0 -221
- data/vendor/sprockets/lib/sprockets/digest.rb +0 -73
- data/vendor/sprockets/lib/sprockets/directive_processor.rb +0 -397
- data/vendor/sprockets/lib/sprockets/eco_template.rb +0 -38
- data/vendor/sprockets/lib/sprockets/ejs_template.rb +0 -37
- data/vendor/sprockets/lib/sprockets/engines.rb +0 -117
- data/vendor/sprockets/lib/sprockets/environment.rb +0 -94
- data/vendor/sprockets/lib/sprockets/errors.rb +0 -17
- data/vendor/sprockets/lib/sprockets/index.rb +0 -81
- data/vendor/sprockets/lib/sprockets/jst_processor.rb +0 -26
- data/vendor/sprockets/lib/sprockets/mime.rb +0 -38
- data/vendor/sprockets/lib/sprockets/processing.rb +0 -269
- data/vendor/sprockets/lib/sprockets/processor.rb +0 -32
- data/vendor/sprockets/lib/sprockets/safety_colons.rb +0 -28
- data/vendor/sprockets/lib/sprockets/server.rb +0 -270
- data/vendor/sprockets/lib/sprockets/static_asset.rb +0 -86
- data/vendor/sprockets/lib/sprockets/static_compilation.rb +0 -74
- data/vendor/sprockets/lib/sprockets/trail.rb +0 -123
- data/vendor/sprockets/lib/sprockets/utils.rb +0 -67
- data/vendor/sprockets/lib/sprockets/version.rb +0 -3
- data/vendor/sprockets/lib/sprockets.rb +0 -31
- data/vendor/sprockets/sprockets.gemspec +0 -30
- data/vendor/sprockets/test/fixtures/asset/POW.png +0 -0
- data/vendor/sprockets/test/fixtures/asset/application.js +0 -6
- data/vendor/sprockets/test/fixtures/asset/bar-utf8.css +0 -2
- data/vendor/sprockets/test/fixtures/asset/charset.css +0 -2
- data/vendor/sprockets/test/fixtures/asset/circle/a.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/circle/b.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/circle/c.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/compat.js +0 -4
- data/vendor/sprockets/test/fixtures/asset/constants.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/constants.yml +0 -1
- data/vendor/sprockets/test/fixtures/asset/default_mime_type.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/filename.js.erb +0 -1
- data/vendor/sprockets/test/fixtures/asset/foo-utf8.css +0 -2
- data/vendor/sprockets/test/fixtures/asset/included_header.js +0 -4
- data/vendor/sprockets/test/fixtures/asset/jquery.tmpl.min.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/mismatch.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/multiple.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/multipleengine.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/noengine.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/noformat.coffee +0 -1
- data/vendor/sprockets/test/fixtures/asset/one.css +0 -1
- data/vendor/sprockets/test/fixtures/asset/oneengine.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/project.css +0 -1
- data/vendor/sprockets/test/fixtures/asset/project.js.erb +0 -4
- data/vendor/sprockets/test/fixtures/asset/relative/include.js +0 -4
- data/vendor/sprockets/test/fixtures/asset/relative/require.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/relative/require_outside_path.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/require_self.css +0 -9
- data/vendor/sprockets/test/fixtures/asset/require_self_twice.css +0 -8
- data/vendor/sprockets/test/fixtures/asset/semicolons/bar.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/semicolons/index.js +0 -5
- data/vendor/sprockets/test/fixtures/asset/sprite.css.erb +0 -12
- data/vendor/sprockets/test/fixtures/asset/tree/all/b/c/d.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/tree/all/b/c/e.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/all/b/c.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/all/b.css +0 -2
- data/vendor/sprockets/test/fixtures/asset/tree/all/b.js.erb +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/all/d/c.js.coffee +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/all/d/e.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/all_with_require.js +0 -7
- data/vendor/sprockets/test/fixtures/asset/tree/all_with_require_directory.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/all_with_require_tree.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/tree/directory/application.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/tree/directory/bar.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/directory/foo.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/tree/application.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/tree/tree/bar.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/tree/foo.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/with_logical_path/a/a.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/with_logical_path/require_tree_with_logical_path.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/without_argument/a.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/without_argument/b.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/tree/without_argument/require_tree_without_argument.js +0 -1
- data/vendor/sprockets/test/fixtures/asset/two.css +0 -1
- data/vendor/sprockets/test/fixtures/asset/unicode.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/unknownexts.min.js +0 -2
- data/vendor/sprockets/test/fixtures/asset/users.js.erb.str +0 -4
- data/vendor/sprockets/test/fixtures/context/POW.png +0 -0
- data/vendor/sprockets/test/fixtures/context/application.js.yml +0 -3
- data/vendor/sprockets/test/fixtures/context/bar.js +0 -1
- data/vendor/sprockets/test/fixtures/context/foo.js +0 -2
- data/vendor/sprockets/test/fixtures/context/helpers.css.erb +0 -3
- data/vendor/sprockets/test/fixtures/context/properties.js.erb +0 -7
- data/vendor/sprockets/test/fixtures/context/require_glob.js +0 -1
- data/vendor/sprockets/test/fixtures/context/resolve_content_type.js.erb +0 -4
- data/vendor/sprockets/test/fixtures/context/sprite.css.embed +0 -3
- data/vendor/sprockets/test/fixtures/default/application.js.coffee +0 -4
- data/vendor/sprockets/test/fixtures/default/blank.gif +0 -0
- data/vendor/sprockets/test/fixtures/default/coffee/foo.coffee +0 -1
- data/vendor/sprockets/test/fixtures/default/coffee/index.js +0 -3
- data/vendor/sprockets/test/fixtures/default/empty +0 -0
- data/vendor/sprockets/test/fixtures/default/gallery.css.erb +0 -3
- data/vendor/sprockets/test/fixtures/default/gallery.js +0 -1
- data/vendor/sprockets/test/fixtures/default/goodbye.jst.eco +0 -1
- data/vendor/sprockets/test/fixtures/default/hello.jst.ejs +0 -1
- data/vendor/sprockets/test/fixtures/default/hello.txt +0 -1
- data/vendor/sprockets/test/fixtures/default/interpolation.js +0 -1
- data/vendor/sprockets/test/fixtures/default/missing_require.js +0 -1
- data/vendor/sprockets/test/fixtures/default/mobile/a.js +0 -1
- data/vendor/sprockets/test/fixtures/default/mobile/b.js +0 -1
- data/vendor/sprockets/test/fixtures/default/mobile/c.css +0 -1
- data/vendor/sprockets/test/fixtures/default/mobile/d.css +0 -1
- data/vendor/sprockets/test/fixtures/default/mobile/index.css +0 -3
- data/vendor/sprockets/test/fixtures/default/mobile/index.js +0 -1
- data/vendor/sprockets/test/fixtures/default/noreturn.js +0 -1
- data/vendor/sprockets/test/fixtures/default/project.js.coffee.erb +0 -2
- data/vendor/sprockets/test/fixtures/default/with_data_uri.css.erb +0 -3
- data/vendor/sprockets/test/fixtures/directives/code_before_comment +0 -3
- data/vendor/sprockets/test/fixtures/directives/comment_without_directives +0 -6
- data/vendor/sprockets/test/fixtures/directives/directive_word_splitting +0 -6
- data/vendor/sprockets/test/fixtures/directives/directives_after_header +0 -16
- data/vendor/sprockets/test/fixtures/directives/double_slash +0 -9
- data/vendor/sprockets/test/fixtures/directives/hash +0 -8
- data/vendor/sprockets/test/fixtures/directives/no_header +0 -2
- data/vendor/sprockets/test/fixtures/directives/slash_star +0 -10
- data/vendor/sprockets/test/fixtures/directives/slash_star_single +0 -4
- data/vendor/sprockets/test/fixtures/directives/space_between_directive_word +0 -2
- data/vendor/sprockets/test/fixtures/directives/triple_hash +0 -10
- data/vendor/sprockets/test/fixtures/encoding/ascii.js +0 -1
- data/vendor/sprockets/test/fixtures/encoding/ascii_utf8.js +0 -2
- data/vendor/sprockets/test/fixtures/encoding/utf16.js +0 -0
- data/vendor/sprockets/test/fixtures/encoding/utf8.js +0 -1
- data/vendor/sprockets/test/fixtures/encoding/utf8_bom.js +0 -1
- data/vendor/sprockets/test/fixtures/engines/hello.alert +0 -1
- data/vendor/sprockets/test/fixtures/engines/moo.js.str +0 -1
- data/vendor/sprockets/test/fixtures/public/compiled-digest-0aa2105d29558f3eb790d411d7d8fb66.js +0 -3
- data/vendor/sprockets/test/fixtures/public/compiled-digest-1c41eb0cf934a0c76babe875f982f9d1.js +0 -1
- data/vendor/sprockets/test/fixtures/server/app/javascripts/application.js +0 -5
- data/vendor/sprockets/test/fixtures/server/app/javascripts/bar.js +0 -1
- data/vendor/sprockets/test/fixtures/server/app/javascripts/foo.js +0 -1
- data/vendor/sprockets/test/fixtures/server/app/javascripts/hello.txt +0 -2
- data/vendor/sprockets/test/fixtures/server/app/javascripts/tree.js +0 -1
- data/vendor/sprockets/test/fixtures/server/vendor/javascripts/missing_require.js +0 -1
- data/vendor/sprockets/test/fixtures/server/vendor/stylesheets/missing_require.css +0 -1
- data/vendor/sprockets/test/sprockets_test.rb +0 -56
- data/vendor/sprockets/test/test_asset.rb +0 -699
- data/vendor/sprockets/test/test_asset_attributes.rb +0 -150
- data/vendor/sprockets/test/test_caching.rb +0 -62
- data/vendor/sprockets/test/test_context.rb +0 -115
- data/vendor/sprockets/test/test_directive_processor.rb +0 -124
- data/vendor/sprockets/test/test_encoding.rb +0 -65
- data/vendor/sprockets/test/test_engines.rb +0 -73
- data/vendor/sprockets/test/test_environment.rb +0 -587
- data/vendor/sprockets/test/test_server.rb +0 -227
@@ -1 +0,0 @@
|
|
1
|
-
VERSION: 2.0
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require "noformat"
|
@@ -1 +0,0 @@
|
|
1
|
-
var filename = "<%= __FILE__ %>";
|
@@ -1 +0,0 @@
|
|
1
|
-
var jQuery;
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require "project.css"
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require "users.js.erb.str"
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require "users.js"
|
@@ -1 +0,0 @@
|
|
1
|
-
"CoffeeScript"
|
@@ -1 +0,0 @@
|
|
1
|
-
.one {}
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require "users.js.erb"
|
@@ -1 +0,0 @@
|
|
1
|
-
.project {}
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require ../project
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require ../../default/gallery
|
@@ -1 +0,0 @@
|
|
1
|
-
var Bar
|
@@ -1 +0,0 @@
|
|
1
|
-
ok("b/c/e.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
ok("b/c.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
ok("b.js.erb");
|
@@ -1 +0,0 @@
|
|
1
|
-
ok "d/c.js.coffee"
|
@@ -1 +0,0 @@
|
|
1
|
-
ok("d/e.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require_directory ./all
|
@@ -1 +0,0 @@
|
|
1
|
-
var Bar;
|
@@ -1 +0,0 @@
|
|
1
|
-
var Foo;
|
@@ -1 +0,0 @@
|
|
1
|
-
var Bar;
|
@@ -1 +0,0 @@
|
|
1
|
-
var Foo;
|
@@ -1 +0,0 @@
|
|
1
|
-
a()
|
data/vendor/sprockets/test/fixtures/asset/tree/with_logical_path/require_tree_with_logical_path.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
// =require_tree a
|
@@ -1 +0,0 @@
|
|
1
|
-
a();
|
@@ -1 +0,0 @@
|
|
1
|
-
b();
|
data/vendor/sprockets/test/fixtures/asset/tree/without_argument/require_tree_without_argument.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
// =require_tree
|
@@ -1 +0,0 @@
|
|
1
|
-
.two {}
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
var Bar = {};
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require_glob "fo*.js"
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
foo = 'hello'
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
var Gallery = {};
|
@@ -1 +0,0 @@
|
|
1
|
-
Goodbye <%= @name %>
|
@@ -1 +0,0 @@
|
|
1
|
-
hello: <%= name %>
|
@@ -1 +0,0 @@
|
|
1
|
-
Hello world
|
@@ -1 +0,0 @@
|
|
1
|
-
var Interpolation = <%= 1 + 1 %>;
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require "notfound"
|
@@ -1 +0,0 @@
|
|
1
|
-
var A;
|
@@ -1 +0,0 @@
|
|
1
|
-
var B;
|
@@ -1 +0,0 @@
|
|
1
|
-
.c {}
|
@@ -1 +0,0 @@
|
|
1
|
-
.d {}
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require_tree .
|
@@ -1 +0,0 @@
|
|
1
|
-
var Foo;
|
@@ -1 +0,0 @@
|
|
1
|
-
var foo = "bar";
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
var snowman = "☃";
|
@@ -1 +0,0 @@
|
|
1
|
-
var snowman = "☃";
|
@@ -1 +0,0 @@
|
|
1
|
-
Hello world!
|
@@ -1 +0,0 @@
|
|
1
|
-
console.log("Moo, #{RUBY_VERSION}");
|
data/vendor/sprockets/test/fixtures/public/compiled-digest-1c41eb0cf934a0c76babe875f982f9d1.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(function() {})();
|
@@ -1 +0,0 @@
|
|
1
|
-
var bar;
|
@@ -1 +0,0 @@
|
|
1
|
-
var foo;
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require_tree "."
|
@@ -1 +0,0 @@
|
|
1
|
-
// =require "notfound"
|
@@ -1 +0,0 @@
|
|
1
|
-
/*= require nonexistent */
|
@@ -1,56 +0,0 @@
|
|
1
|
-
require "test/unit"
|
2
|
-
require "sprockets"
|
3
|
-
require "tilt"
|
4
|
-
require "fileutils"
|
5
|
-
|
6
|
-
if defined? Encoding
|
7
|
-
Encoding.default_external = 'utf-8'
|
8
|
-
Encoding.default_internal = 'utf-8'
|
9
|
-
end
|
10
|
-
|
11
|
-
class Sprockets::TestCase < Test::Unit::TestCase
|
12
|
-
FIXTURE_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "fixtures"))
|
13
|
-
|
14
|
-
undef_method :default_test if method_defined? :default_test
|
15
|
-
|
16
|
-
def self.test(name, &block)
|
17
|
-
define_method("test #{name.inspect}", &block)
|
18
|
-
end
|
19
|
-
|
20
|
-
def fixture(path)
|
21
|
-
IO.read(fixture_path(path))
|
22
|
-
end
|
23
|
-
|
24
|
-
def fixture_path(path)
|
25
|
-
File.join(FIXTURE_ROOT, path)
|
26
|
-
end
|
27
|
-
|
28
|
-
def sandbox(*paths)
|
29
|
-
backup_paths = paths.select { |path| File.exist?(path) }
|
30
|
-
remove_paths = paths.select { |path| !File.exist?(path) }
|
31
|
-
|
32
|
-
begin
|
33
|
-
backup_paths.each do |path|
|
34
|
-
FileUtils.cp(path, "#{path}.orig")
|
35
|
-
end
|
36
|
-
|
37
|
-
yield
|
38
|
-
ensure
|
39
|
-
backup_paths.each do |path|
|
40
|
-
if File.exist?("#{path}.orig")
|
41
|
-
FileUtils.mv("#{path}.orig", path)
|
42
|
-
end
|
43
|
-
|
44
|
-
assert !File.exist?("#{path}.orig")
|
45
|
-
end
|
46
|
-
|
47
|
-
remove_paths.each do |path|
|
48
|
-
if File.exist?(path)
|
49
|
-
FileUtils.rm_rf(path)
|
50
|
-
end
|
51
|
-
|
52
|
-
assert !File.exist?(path)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|