rake-pipeline-web-filters-fork 0.6.0 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +1 -0
- data/.rspec +1 -1
- data/LICENSE +19 -0
- data/README.markdown +3 -2
- data/Rakefile +1 -1
- data/lib/rake-pipeline-web-filters.rb +1 -0
- data/lib/rake-pipeline-web-filters/es6_module_filter.rb +52 -0
- data/lib/rake-pipeline-web-filters/helpers.rb +6 -0
- data/lib/rake-pipeline-web-filters/less_filter.rb +2 -4
- data/lib/rake-pipeline-web-filters/minispade_filter.rb +1 -1
- data/lib/rake-pipeline-web-filters/version.rb +1 -1
- data/rake-pipeline-web-filters.gemspec +2 -1
- data/spec/coffee_script_filter_spec.rb +1 -1
- data/spec/es6_module_filter_spec.rb +143 -0
- data/spec/helpers_spec.rb +7 -0
- data/spec/jade_filter_spec.rb +1 -1
- data/spec/minispade_filter_spec.rb +1 -1
- data/spec/uglify_filter_spec.rb +2 -2
- metadata +209 -181
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDA2ZTJjMmQzNmYwMzRmMzFkMzIwODYwNzU4NzgwODg2NWJhZDY2Zg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
M2VjYmUwYjNjZDY4ODM3ZmNhZWE4YTI4NzYwNmZhZmJiNjNlMjA5ZA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YTM5ZDZhZjY4ZWFmNjJhYzQ5NjE4NWM4MjI1NWE1YmExMWFkMTliZGVhY2Fk
|
10
|
+
ZTU2OGQxMTRmYjJhMGRhOGQ4ZmMyNjhiODA3ZWE1YThkOTkzOGJiMjU0OGI0
|
11
|
+
OTdlM2VhYzNiNDI0MGMwZGJhZWZhYjliNmVlMzFiNDY1MzBjZGE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzhkOTU4Mzg3NGUyY2M2NGNiOTQxYTAxNWZkNGRmNmQxMzI3Yjg4OWM3OTlm
|
14
|
+
ZTI0N2I4ODYwYzNjMDExOGMzZmNkYmI0NDE3ZGRlZDJhZWQyN2Q0YjBkOGFi
|
15
|
+
MTE1ZTBhNDc2YTdmZGZhOWFiZmFkZjYyMmE4ZTQ1M2I4NTcyZjY=
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
@@ -1 +1 @@
|
|
1
|
-
-
|
1
|
+
-c -f d -r spec_helper.rb
|
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2013 Tilde Inc. and other contributors
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/README.markdown
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
# Rake::Pipeline::Web::Filters [![Build Status](https://secure.travis-ci.org/wycats/rake-pipeline-web-filters.png?branch=master)](http://travis-ci.org/wycats/rake-pipeline-web-filters)
|
2
2
|
|
3
3
|
This project contains a set of rake-pipeline filters for building web
|
4
|
-
apps.
|
4
|
+
apps.
|
5
5
|
|
6
6
|
It includes these filters:
|
7
7
|
|
8
8
|
* Cache Buster - Write a fingerprint into each file name
|
9
9
|
* Coffescript - Convert Coffeescript to Javascript
|
10
|
+
* ES6 Module Transpiler - Transpile ES6 to ES5 Javascript ([Available Options](https://github.com/square/es6-module-transpiler))
|
10
11
|
* GZip - Create gzip'd version of your files
|
11
12
|
* Handlebars - Process handlebars templates
|
12
13
|
* IIFE - Wrap source files in Immediately Invoked Function Expressions
|
@@ -17,7 +18,7 @@ It includes these filters:
|
|
17
18
|
* Neuter - Require files in a file and generate one single combined file
|
18
19
|
* SASS - Convert SASS to CSS
|
19
20
|
* Stylus - Convert Stylus to CSS
|
20
|
-
* Tilt - Use Tilt to process
|
21
|
+
* Tilt - Use Tilt to process
|
21
22
|
* Uglify - Minify JS
|
22
23
|
* YUI CSS - Minify CSS
|
23
24
|
* YUI Javascript - Minify JS
|
data/Rakefile
CHANGED
@@ -28,4 +28,5 @@ require "rake-pipeline-web-filters/chained_filter"
|
|
28
28
|
require "rake-pipeline-web-filters/less_filter"
|
29
29
|
require "rake-pipeline-web-filters/handlebars_filter"
|
30
30
|
require "rake-pipeline-web-filters/iife_filter"
|
31
|
+
require "rake-pipeline-web-filters/es6_module_filter"
|
31
32
|
require "rake-pipeline-web-filters/helpers"
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module Rake::Pipeline::Web::Filters
|
2
|
+
# A filter that transpiles ES6 to either AMD or CommonJS JavaScript.
|
3
|
+
class ES6ModuleFilter < Rake::Pipeline::Filter
|
4
|
+
include Rake::Pipeline::Web::Filters::FilterWithDependencies
|
5
|
+
|
6
|
+
# @return [Hash] a hash of options to pass to Transpiler
|
7
|
+
attr_reader :options
|
8
|
+
|
9
|
+
# Create an instance of this filter.
|
10
|
+
#
|
11
|
+
# Possible options:
|
12
|
+
# module_id_generator: provide a Proc to convert an input to a
|
13
|
+
# module identifier (AMD only)
|
14
|
+
# Other options are passed along to the RubyES6ModuleTranspiler and then to
|
15
|
+
# the node transpiler. See https://github.com/square/es6-module-transpiler
|
16
|
+
# for more info.
|
17
|
+
#
|
18
|
+
# @param [Hash] options options (see above)
|
19
|
+
# @param [Proc] block the output name generator block
|
20
|
+
def initialize(options = {}, &block)
|
21
|
+
@module_id_generator = options[:module_id_generator]
|
22
|
+
super(&block)
|
23
|
+
@options = options
|
24
|
+
end
|
25
|
+
|
26
|
+
# The body of the filter. Compile each input file into
|
27
|
+
# a ES6 Module Transpiled output file.
|
28
|
+
#
|
29
|
+
# @param [Array] inputs an Array of FileWrapper objects.
|
30
|
+
# @param [FileWrapper] output a FileWrapper object
|
31
|
+
def generate_output(inputs, output)
|
32
|
+
inputs.each do |input|
|
33
|
+
begin
|
34
|
+
body = input.read if input.respond_to?(:read)
|
35
|
+
local_opts = {}
|
36
|
+
if @module_id_generator
|
37
|
+
local_opts[:moduleName] = @module_id_generator.call(input)
|
38
|
+
end
|
39
|
+
opts = @options.merge(local_opts)
|
40
|
+
opts.delete(:module_id_generator)
|
41
|
+
output.write RubyES6ModuleTranspiler.transpile(body, opts)
|
42
|
+
rescue ExecJS::Error => error
|
43
|
+
raise error, "Error compiling #{input.path}. #{error.message}"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def external_dependencies
|
49
|
+
[ "ruby_es6_module_transpiler" ]
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -69,6 +69,12 @@ module Rake::Pipeline::Web::Filters
|
|
69
69
|
filter(Rake::Pipeline::Web::Filters::CoffeeScriptFilter, *args, &block)
|
70
70
|
end
|
71
71
|
|
72
|
+
# Add a new {ES6ModuleFilter} to the pipeline.
|
73
|
+
# @see ES6ModuleFilter#initialize
|
74
|
+
def es6_module(*args, &block)
|
75
|
+
filter(Rake::Pipeline::Web::Filters::ES6ModuleFilter, *args, &block)
|
76
|
+
end
|
77
|
+
|
72
78
|
# Add a new {YUIJavaScriptFilter} to the pipeline.
|
73
79
|
# @see YUIJavaScriptFilter#initialize
|
74
80
|
def yui_javascript(*args, &block)
|
@@ -1,10 +1,8 @@
|
|
1
1
|
require 'rake-pipeline-web-filters/filter_with_dependencies'
|
2
2
|
|
3
3
|
module Rake::Pipeline::Web::Filters
|
4
|
-
# A filter that
|
5
|
-
#
|
6
|
-
# to guess which template language to use based on the input
|
7
|
-
# file extension.
|
4
|
+
# A filter that compiles input files written in Less
|
5
|
+
# to CSS using the Less compiler.
|
8
6
|
#
|
9
7
|
# Requires {https://rubygems.org/gems/less-js less-js}
|
10
8
|
#
|
@@ -51,7 +51,7 @@ module Rake::Pipeline::Web::Filters
|
|
51
51
|
module_id = @module_id_generator.call(input)
|
52
52
|
|
53
53
|
if @string_module
|
54
|
-
contents = %{(function() {#{code}\n})();\n
|
54
|
+
contents = %{(function() {#{code}\n})();\n//# sourceURL=#{module_id}}.to_json
|
55
55
|
else
|
56
56
|
contents = "function() {#{code}\n}"
|
57
57
|
end
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Rake::Pipeline::Web::Filters::VERSION
|
17
17
|
|
18
|
-
gem.add_dependency "rake-pipeline", "~> 0.
|
18
|
+
gem.add_dependency "rake-pipeline-fork", "~> 0.8"
|
19
19
|
gem.add_dependency "rack"
|
20
20
|
|
21
21
|
gem.add_development_dependency "rspec"
|
@@ -30,4 +30,5 @@ Gem::Specification.new do |gem|
|
|
30
30
|
gem.add_development_dependency "json"
|
31
31
|
gem.add_development_dependency "therubyracer"
|
32
32
|
gem.add_development_dependency "stylus"
|
33
|
+
gem.add_development_dependency "ruby_es6_module_transpiler"
|
33
34
|
end
|
@@ -105,7 +105,7 @@ y = function(){
|
|
105
105
|
tasks = filter.generate_rake_tasks
|
106
106
|
lambda {
|
107
107
|
tasks.each(&:invoke)
|
108
|
-
}.should raise_error(ExecJS::RuntimeError, /Error compiling input.coffee
|
108
|
+
}.should raise_error(ExecJS::RuntimeError, /Error compiling input.coffee.+/i)
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
@@ -0,0 +1,143 @@
|
|
1
|
+
describe "ES6ModuleFilter" do
|
2
|
+
ES6ModuleFilter ||= Rake::Pipeline::Web::Filters::ES6ModuleFilter
|
3
|
+
MemoryFileWrapper ||= Rake::Pipeline::SpecHelpers::MemoryFileWrapper
|
4
|
+
MemoryManifest ||= Rake::Pipeline::SpecHelpers::MemoryManifest
|
5
|
+
|
6
|
+
let(:input) { <<-JAVASCRIPT}
|
7
|
+
import { get, set } from 'ember';
|
8
|
+
JAVASCRIPT
|
9
|
+
|
10
|
+
let(:expected_amd_output) { <<-JAVASCRIPT }
|
11
|
+
define(
|
12
|
+
["ember"],
|
13
|
+
function(__dependency1__) {
|
14
|
+
"use strict";
|
15
|
+
var get = __dependency1__.get;
|
16
|
+
var set = __dependency1__.set;
|
17
|
+
});
|
18
|
+
JAVASCRIPT
|
19
|
+
|
20
|
+
let(:expected_amd_with_module_id_output) { <<-JAVASCRIPT }
|
21
|
+
define("octopus",
|
22
|
+
["ember"],
|
23
|
+
function(__dependency1__) {
|
24
|
+
"use strict";
|
25
|
+
var get = __dependency1__.get;
|
26
|
+
var set = __dependency1__.set;
|
27
|
+
});
|
28
|
+
JAVASCRIPT
|
29
|
+
|
30
|
+
let(:expected_cjs_output) { <<-JAVASCRIPT }
|
31
|
+
"use strict";
|
32
|
+
var get = require("ember").get;
|
33
|
+
var set = require("ember").set;
|
34
|
+
JAVASCRIPT
|
35
|
+
|
36
|
+
let(:expected_options_output) { <<-JAVASCRIPT }
|
37
|
+
(function(__dependency1__) {
|
38
|
+
"use strict";
|
39
|
+
var get = __dependency1__.get;
|
40
|
+
var set = __dependency1__.set;
|
41
|
+
})(renamed.ember);
|
42
|
+
JAVASCRIPT
|
43
|
+
|
44
|
+
def input_file(name, content)
|
45
|
+
MemoryFileWrapper.new("/path/to/input", name, "UTF-8", content)
|
46
|
+
end
|
47
|
+
|
48
|
+
def output_file(name)
|
49
|
+
MemoryFileWrapper.new("/path/to/output", name, "UTF-8")
|
50
|
+
end
|
51
|
+
|
52
|
+
# remove all whitespaces
|
53
|
+
def should_match(expected, output)
|
54
|
+
"#{expected}\n".gsub(/\s+/, " ").should == "#{output}\n".gsub(/\s+/, " ")
|
55
|
+
end
|
56
|
+
|
57
|
+
def setup_filter(filter)
|
58
|
+
filter.file_wrapper_class = MemoryFileWrapper
|
59
|
+
filter.manifest = MemoryManifest.new
|
60
|
+
filter.last_manifest = MemoryManifest.new
|
61
|
+
filter.input_files = [input_file("input.js", input)]
|
62
|
+
filter.output_root = "/path/to/output"
|
63
|
+
filter.rake_application = Rake::Application.new
|
64
|
+
filter
|
65
|
+
end
|
66
|
+
|
67
|
+
it "generates correct default amd output" do
|
68
|
+
filter = setup_filter ES6ModuleFilter.new
|
69
|
+
|
70
|
+
filter.output_files.should == [output_file("input.js")]
|
71
|
+
|
72
|
+
tasks = filter.generate_rake_tasks
|
73
|
+
tasks.each(&:invoke)
|
74
|
+
|
75
|
+
file = MemoryFileWrapper.files["/path/to/output/input.js"]
|
76
|
+
should_match file.body, expected_amd_output
|
77
|
+
file.encoding.should == "UTF-8"
|
78
|
+
end
|
79
|
+
|
80
|
+
it "generates correct default amd output with a module_id_generator" do
|
81
|
+
filter = setup_filter ES6ModuleFilter.new(
|
82
|
+
module_id_generator: proc { |input| "octopus" }
|
83
|
+
)
|
84
|
+
|
85
|
+
filter.output_files.should == [output_file("input.js")]
|
86
|
+
|
87
|
+
tasks = filter.generate_rake_tasks
|
88
|
+
tasks.each(&:invoke)
|
89
|
+
|
90
|
+
file = MemoryFileWrapper.files["/path/to/output/input.js"]
|
91
|
+
should_match file.body, expected_amd_with_module_id_output
|
92
|
+
file.encoding.should == "UTF-8"
|
93
|
+
end
|
94
|
+
|
95
|
+
it "generates correct cjs output" do
|
96
|
+
filter = setup_filter ES6ModuleFilter.new({ type: "CJS" })
|
97
|
+
|
98
|
+
filter.output_files.should == [output_file("input.js")]
|
99
|
+
|
100
|
+
tasks = filter.generate_rake_tasks
|
101
|
+
tasks.each(&:invoke)
|
102
|
+
|
103
|
+
file = MemoryFileWrapper.files["/path/to/output/input.js"]
|
104
|
+
should_match file.body, expected_cjs_output
|
105
|
+
file.encoding.should == "UTF-8"
|
106
|
+
end
|
107
|
+
|
108
|
+
it "generates output with optional parameters" do
|
109
|
+
filter = setup_filter ES6ModuleFilter.new({ type: "Globals", global: "renamed"})
|
110
|
+
|
111
|
+
filter.output_files.should == [output_file("input.js")]
|
112
|
+
|
113
|
+
tasks = filter.generate_rake_tasks
|
114
|
+
tasks.each(&:invoke)
|
115
|
+
|
116
|
+
file = MemoryFileWrapper.files["/path/to/output/input.js"]
|
117
|
+
should_match file.body, expected_options_output
|
118
|
+
file.encoding.should == "UTF-8"
|
119
|
+
end
|
120
|
+
|
121
|
+
describe "invalid input" do
|
122
|
+
# forget a curly brace
|
123
|
+
let(:input) { <<-JAVASCRIPT }
|
124
|
+
import { get, set from 'ember';
|
125
|
+
JAVASCRIPT
|
126
|
+
|
127
|
+
it "has a useful error message including the input file name" do
|
128
|
+
filter = setup_filter ES6ModuleFilter.new
|
129
|
+
tasks = filter.generate_rake_tasks
|
130
|
+
lambda {
|
131
|
+
tasks.each(&:invoke)
|
132
|
+
}.should raise_error(ExecJS::ProgramError, "Error compiling input.js. Error: Line 1: Unexpected identifier")
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
describe "naming output files" do
|
137
|
+
it "accepts a block to customize output file names" do
|
138
|
+
filter = setup_filter(ES6ModuleFilter.new { |input| "chicken" })
|
139
|
+
filter.output_files.first.path.should == "chicken"
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
data/spec/helpers_spec.rb
CHANGED
@@ -116,6 +116,13 @@ describe "Helpers" do
|
|
116
116
|
filter.should be_kind_of(Rake::Pipeline::Web::Filters::IifeFilter)
|
117
117
|
end
|
118
118
|
end
|
119
|
+
|
120
|
+
describe "#es6_module" do
|
121
|
+
it "creates a ES6ModuleFilter" do
|
122
|
+
dsl.es6_module
|
123
|
+
filter.should be_kind_of(Rake::Pipeline::Web::Filters::ES6ModuleFilter)
|
124
|
+
end
|
125
|
+
end
|
119
126
|
end
|
120
127
|
|
121
128
|
describe "ProjectHelpers" do
|
data/spec/jade_filter_spec.rb
CHANGED
@@ -47,7 +47,7 @@ describe "MinispadeFilter" do
|
|
47
47
|
it "compiles a string if asked" do
|
48
48
|
filter = make_filter(input_file, :string => true)
|
49
49
|
output_file.body.should ==
|
50
|
-
%{minispade.register('/path/to/input/foo.js', "(function() {var foo = 'bar'; // last-line comment\\n})();\\n
|
50
|
+
%{minispade.register('/path/to/input/foo.js', "(function() {var foo = 'bar'; // last-line comment\\n})();\\n//# sourceURL=/path/to/input/foo.js");}
|
51
51
|
end
|
52
52
|
|
53
53
|
it "takes a proc to name the module" do
|
data/spec/uglify_filter_spec.rb
CHANGED
@@ -13,7 +13,7 @@ HERE
|
|
13
13
|
}
|
14
14
|
|
15
15
|
let(:expected_beautiful_js_output) {
|
16
|
-
%[var name = "Truckasaurus Gates";\n\nconsole.log(name)
|
16
|
+
%[var name = "Truckasaurus Gates";\n\nconsole.log(name);]
|
17
17
|
}
|
18
18
|
|
19
19
|
let(:filter_args) { [] }
|
@@ -114,7 +114,7 @@ HERE
|
|
114
114
|
|
115
115
|
context "with Uglify options" do
|
116
116
|
let(:filter_args) do
|
117
|
-
[{ :beautify => true }]
|
117
|
+
[output: { :beautify => true }]
|
118
118
|
end
|
119
119
|
|
120
120
|
it "passes options to the Uglify compressor" do
|
metadata
CHANGED
@@ -1,207 +1,238 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-pipeline-web-filters-fork
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 6
|
8
|
-
- 0
|
9
|
-
version: 0.6.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.2
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- Yehuda Katz
|
13
8
|
autorequire:
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
11
|
+
date: 2015-04-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake-pipeline-fork
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
25
17
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 0
|
29
|
-
- 6
|
30
|
-
version: "0.6"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.8'
|
31
20
|
type: :runtime
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: rack
|
35
21
|
prerelease: false
|
36
|
-
|
37
|
-
requirements:
|
38
|
-
- -
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
|
42
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
43
34
|
type: :runtime
|
44
|
-
version_requirements: *id002
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: rspec
|
47
35
|
prerelease: false
|
48
|
-
|
49
|
-
requirements:
|
50
|
-
- -
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
|
53
|
-
|
54
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
55
48
|
type: :development
|
56
|
-
version_requirements: *id003
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: tilt
|
59
49
|
prerelease: false
|
60
|
-
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
|
66
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: tilt
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
67
62
|
type: :development
|
68
|
-
version_requirements: *id004
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: sass
|
71
63
|
prerelease: false
|
72
|
-
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
|
78
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sass
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
79
76
|
type: :development
|
80
|
-
version_requirements: *id005
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: compass
|
83
77
|
prerelease: false
|
84
|
-
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
|
90
|
-
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: compass
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
91
90
|
type: :development
|
92
|
-
version_requirements: *id006
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: coffee-script
|
95
91
|
prerelease: false
|
96
|
-
|
97
|
-
requirements:
|
98
|
-
- -
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
|
101
|
-
|
102
|
-
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coffee-script
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
103
104
|
type: :development
|
104
|
-
version_requirements: *id007
|
105
|
-
- !ruby/object:Gem::Dependency
|
106
|
-
name: redcarpet
|
107
105
|
prerelease: false
|
108
|
-
|
109
|
-
requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: redcarpet
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
110
115
|
- - ~>
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
|
113
|
-
- 2
|
114
|
-
- 0
|
115
|
-
version: "2.0"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.0'
|
116
118
|
type: :development
|
117
|
-
version_requirements: *id008
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: yui-compressor
|
120
119
|
prerelease: false
|
121
|
-
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
|
126
|
-
|
127
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yui-compressor
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
128
132
|
type: :development
|
129
|
-
version_requirements: *id009
|
130
|
-
- !ruby/object:Gem::Dependency
|
131
|
-
name: uglifier
|
132
133
|
prerelease: false
|
133
|
-
|
134
|
-
requirements:
|
135
|
-
- -
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
|
138
|
-
|
139
|
-
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ! '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: uglifier
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
140
146
|
type: :development
|
141
|
-
version_requirements: *id010
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: less
|
144
147
|
prerelease: false
|
145
|
-
|
146
|
-
requirements:
|
147
|
-
- -
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
|
150
|
-
|
151
|
-
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: less
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ! '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
152
160
|
type: :development
|
153
|
-
version_requirements: *id011
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: json
|
156
161
|
prerelease: false
|
157
|
-
|
158
|
-
requirements:
|
159
|
-
- -
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
|
162
|
-
|
163
|
-
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: json
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
164
174
|
type: :development
|
165
|
-
version_requirements: *id012
|
166
|
-
- !ruby/object:Gem::Dependency
|
167
|
-
name: therubyracer
|
168
175
|
prerelease: false
|
169
|
-
|
170
|
-
requirements:
|
171
|
-
- -
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ! '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: therubyracer
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
176
188
|
type: :development
|
177
|
-
|
178
|
-
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ! '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
179
196
|
name: stylus
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ! '>='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
180
203
|
prerelease: false
|
181
|
-
|
182
|
-
requirements:
|
183
|
-
- -
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
|
186
|
-
|
187
|
-
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ! '>='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: ruby_es6_module_transpiler
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
188
216
|
type: :development
|
189
|
-
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ! '>='
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
190
223
|
description: A collection of web filters for rake-pipeline
|
191
|
-
email:
|
224
|
+
email:
|
192
225
|
- wycats@gmail.com
|
193
226
|
executables: []
|
194
|
-
|
195
227
|
extensions: []
|
196
|
-
|
197
228
|
extra_rdoc_files: []
|
198
|
-
|
199
|
-
files:
|
229
|
+
files:
|
200
230
|
- .gitignore
|
201
231
|
- .rspec
|
202
232
|
- .travis.yml
|
203
233
|
- .yardopts
|
204
234
|
- Gemfile
|
235
|
+
- LICENSE
|
205
236
|
- README.markdown
|
206
237
|
- README.yard
|
207
238
|
- Rakefile
|
@@ -209,6 +240,7 @@ files:
|
|
209
240
|
- lib/rake-pipeline-web-filters/cache_buster_filter.rb
|
210
241
|
- lib/rake-pipeline-web-filters/chained_filter.rb
|
211
242
|
- lib/rake-pipeline-web-filters/coffee_script_filter.rb
|
243
|
+
- lib/rake-pipeline-web-filters/es6_module_filter.rb
|
212
244
|
- lib/rake-pipeline-web-filters/filter_with_dependencies.rb
|
213
245
|
- lib/rake-pipeline-web-filters/gzip_filter.rb
|
214
246
|
- lib/rake-pipeline-web-filters/handlebars_filter.rb
|
@@ -230,6 +262,7 @@ files:
|
|
230
262
|
- spec/cache_buster_filter_spec.rb
|
231
263
|
- spec/chained_filter_spec.rb
|
232
264
|
- spec/coffee_script_filter_spec.rb
|
265
|
+
- spec/es6_module_filter_spec.rb
|
233
266
|
- spec/gzip_filter_spec.rb
|
234
267
|
- spec/handlebars_filter_spec.rb
|
235
268
|
- spec/helpers_spec.rb
|
@@ -251,40 +284,35 @@ files:
|
|
251
284
|
- spec/uglify_filter_spec.rb
|
252
285
|
- spec/yui_css_filter_spec.rb
|
253
286
|
- spec/yui_javascript_filter_spec.rb
|
254
|
-
has_rdoc: true
|
255
287
|
homepage: http://github.com/wycats/rake-pipeline-web-filters
|
256
288
|
licenses: []
|
257
|
-
|
289
|
+
metadata: {}
|
258
290
|
post_install_message:
|
259
291
|
rdoc_options: []
|
260
|
-
|
261
|
-
require_paths:
|
292
|
+
require_paths:
|
262
293
|
- lib
|
263
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
264
|
-
requirements:
|
265
|
-
- -
|
266
|
-
- !ruby/object:Gem::Version
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
- !ruby/object:Gem::Version
|
274
|
-
segments:
|
275
|
-
- 0
|
276
|
-
version: "0"
|
294
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
295
|
+
requirements:
|
296
|
+
- - ! '>='
|
297
|
+
- !ruby/object:Gem::Version
|
298
|
+
version: '0'
|
299
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
|
+
requirements:
|
301
|
+
- - ! '>='
|
302
|
+
- !ruby/object:Gem::Version
|
303
|
+
version: '0'
|
277
304
|
requirements: []
|
278
|
-
|
279
305
|
rubyforge_project:
|
280
|
-
rubygems_version: 1.
|
306
|
+
rubygems_version: 2.1.11
|
281
307
|
signing_key:
|
282
|
-
specification_version:
|
283
|
-
summary: Contributed filters for use in rake-pipeline that are useful for web projects,
|
284
|
-
|
308
|
+
specification_version: 4
|
309
|
+
summary: Contributed filters for use in rake-pipeline that are useful for web projects,
|
310
|
+
like asset management
|
311
|
+
test_files:
|
285
312
|
- spec/cache_buster_filter_spec.rb
|
286
313
|
- spec/chained_filter_spec.rb
|
287
314
|
- spec/coffee_script_filter_spec.rb
|
315
|
+
- spec/es6_module_filter_spec.rb
|
288
316
|
- spec/gzip_filter_spec.rb
|
289
317
|
- spec/handlebars_filter_spec.rb
|
290
318
|
- spec/helpers_spec.rb
|