rake-minify 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +66 -0
- data/README.rdoc +13 -0
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/features/coffeescript.feature +37 -6
- data/features/js-expected/a.min.js +1 -1
- data/features/js-expected/b.min.js +1 -1
- data/features/js-expected/c-a-bare.min.js +1 -0
- data/features/js-expected/c-a-wrapped.min.js +1 -0
- data/features/js-expected/c-a.min.js +1 -1
- data/features/js-sources/a.js +1 -1
- data/features/js-sources/b.js +1 -1
- data/features/js-sources/c-a-bare.js +2 -0
- data/features/js-sources/c-a-wrapped.js +5 -0
- data/features/js-sources/c-a.coffee +1 -1
- data/features/js-sources/c-a.js +4 -1
- data/features/minify.feature +33 -19
- data/features/rake-interface.feature +1 -1
- data/features/step_definitions/rake-minify_steps.rb +10 -8
- data/features/support/env.rb +3 -0
- data/features/support/generate_rakefiles.rb +11 -7
- data/lib/rake/minify.rb +3 -1
- data/lib/rake/minify/group.rb +3 -2
- data/lib/rake/minify/source.rb +11 -4
- data/rake-minify.gemspec +83 -2
- data/spec/rake/minify/group_spec.rb +3 -3
- data/spec/rake/minify/source_spec.rb +33 -4
- data/spec/rake/minify_spec.rb +28 -1
- data/spec/spec_helper.rb +6 -1
- metadata +412 -29
data/rake-minify.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rake-minify}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matteo Collina"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-05-09}
|
13
13
|
s.description = %q{A rake task to minify javascripts and coffeescripts}
|
14
14
|
s.email = %q{matteo.collina@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -21,6 +21,8 @@ Gem::Specification.new do |s|
|
|
21
21
|
".document",
|
22
22
|
".rspec",
|
23
23
|
".rvmrc",
|
24
|
+
"Gemfile",
|
25
|
+
"Gemfile.lock",
|
24
26
|
"LICENSE.txt",
|
25
27
|
"README.rdoc",
|
26
28
|
"Rakefile",
|
@@ -28,9 +30,13 @@ Gem::Specification.new do |s|
|
|
28
30
|
"features/coffeescript.feature",
|
29
31
|
"features/js-expected/a.min.js",
|
30
32
|
"features/js-expected/b.min.js",
|
33
|
+
"features/js-expected/c-a-bare.min.js",
|
34
|
+
"features/js-expected/c-a-wrapped.min.js",
|
31
35
|
"features/js-expected/c-a.min.js",
|
32
36
|
"features/js-sources/a.js",
|
33
37
|
"features/js-sources/b.js",
|
38
|
+
"features/js-sources/c-a-bare.js",
|
39
|
+
"features/js-sources/c-a-wrapped.js",
|
34
40
|
"features/js-sources/c-a.coffee",
|
35
41
|
"features/js-sources/c-a.js",
|
36
42
|
"features/minify.feature",
|
@@ -64,6 +70,30 @@ Gem::Specification.new do |s|
|
|
64
70
|
s.specification_version = 3
|
65
71
|
|
66
72
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
73
|
+
s.add_runtime_dependency(%q<rake-minify>, [">= 0"])
|
74
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
|
75
|
+
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
76
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
77
|
+
s.add_development_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
78
|
+
s.add_development_dependency(%q<autotest>, ["~> 4.4"])
|
79
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
80
|
+
s.add_development_dependency(%q<coffee-script>, [">= 2.2.0"])
|
81
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
|
82
|
+
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
83
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
84
|
+
s.add_development_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
85
|
+
s.add_development_dependency(%q<autotest>, ["~> 4.4"])
|
86
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
87
|
+
s.add_development_dependency(%q<coffee-script>, [">= 2.2.0"])
|
88
|
+
s.add_development_dependency(%q<therubyracer>, [">= 0"])
|
89
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
|
90
|
+
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
91
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
92
|
+
s.add_development_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
93
|
+
s.add_development_dependency(%q<autotest>, ["~> 4.4"])
|
94
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
95
|
+
s.add_development_dependency(%q<coffee-script>, [">= 2.2.0"])
|
96
|
+
s.add_development_dependency(%q<therubyracer>, [">= 0"])
|
67
97
|
s.add_runtime_dependency(%q<jsmin>, ["~> 1.0.1"])
|
68
98
|
s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
|
69
99
|
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
@@ -72,7 +102,32 @@ Gem::Specification.new do |s|
|
|
72
102
|
s.add_development_dependency(%q<autotest>, ["~> 4.4"])
|
73
103
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
74
104
|
s.add_development_dependency(%q<coffee-script>, [">= 2.2.0"])
|
105
|
+
s.add_development_dependency(%q<therubyracer>, [">= 0"])
|
75
106
|
else
|
107
|
+
s.add_dependency(%q<rake-minify>, [">= 0"])
|
108
|
+
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
109
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
110
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
111
|
+
s.add_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
112
|
+
s.add_dependency(%q<autotest>, ["~> 4.4"])
|
113
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
114
|
+
s.add_dependency(%q<coffee-script>, [">= 2.2.0"])
|
115
|
+
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
116
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
117
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
118
|
+
s.add_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
119
|
+
s.add_dependency(%q<autotest>, ["~> 4.4"])
|
120
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
121
|
+
s.add_dependency(%q<coffee-script>, [">= 2.2.0"])
|
122
|
+
s.add_dependency(%q<therubyracer>, [">= 0"])
|
123
|
+
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
124
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
125
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
126
|
+
s.add_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
127
|
+
s.add_dependency(%q<autotest>, ["~> 4.4"])
|
128
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
129
|
+
s.add_dependency(%q<coffee-script>, [">= 2.2.0"])
|
130
|
+
s.add_dependency(%q<therubyracer>, [">= 0"])
|
76
131
|
s.add_dependency(%q<jsmin>, ["~> 1.0.1"])
|
77
132
|
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
78
133
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
@@ -81,8 +136,33 @@ Gem::Specification.new do |s|
|
|
81
136
|
s.add_dependency(%q<autotest>, ["~> 4.4"])
|
82
137
|
s.add_dependency(%q<rcov>, [">= 0"])
|
83
138
|
s.add_dependency(%q<coffee-script>, [">= 2.2.0"])
|
139
|
+
s.add_dependency(%q<therubyracer>, [">= 0"])
|
84
140
|
end
|
85
141
|
else
|
142
|
+
s.add_dependency(%q<rake-minify>, [">= 0"])
|
143
|
+
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
144
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
145
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
146
|
+
s.add_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
147
|
+
s.add_dependency(%q<autotest>, ["~> 4.4"])
|
148
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
149
|
+
s.add_dependency(%q<coffee-script>, [">= 2.2.0"])
|
150
|
+
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
151
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
152
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
153
|
+
s.add_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
154
|
+
s.add_dependency(%q<autotest>, ["~> 4.4"])
|
155
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
156
|
+
s.add_dependency(%q<coffee-script>, [">= 2.2.0"])
|
157
|
+
s.add_dependency(%q<therubyracer>, [">= 0"])
|
158
|
+
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
159
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
160
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
161
|
+
s.add_dependency(%q<test_notifier>, ["~> 0.3.6"])
|
162
|
+
s.add_dependency(%q<autotest>, ["~> 4.4"])
|
163
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
164
|
+
s.add_dependency(%q<coffee-script>, [">= 2.2.0"])
|
165
|
+
s.add_dependency(%q<therubyracer>, [">= 0"])
|
86
166
|
s.add_dependency(%q<jsmin>, ["~> 1.0.1"])
|
87
167
|
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
88
168
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
@@ -91,6 +171,7 @@ Gem::Specification.new do |s|
|
|
91
171
|
s.add_dependency(%q<autotest>, ["~> 4.4"])
|
92
172
|
s.add_dependency(%q<rcov>, [">= 0"])
|
93
173
|
s.add_dependency(%q<coffee-script>, [">= 2.2.0"])
|
174
|
+
s.add_dependency(%q<therubyracer>, [">= 0"])
|
94
175
|
end
|
95
176
|
end
|
96
177
|
|
@@ -13,7 +13,7 @@ class Rake::Minify
|
|
13
13
|
|
14
14
|
def build_source(source_name, minify, stubs = {})
|
15
15
|
source = double("source", stubs)
|
16
|
-
Source.stub!(:new).with(source_name, minify).and_return(source)
|
16
|
+
Source.stub!(:new).with(source_name, :minify => minify).and_return(source)
|
17
17
|
source
|
18
18
|
end
|
19
19
|
|
@@ -26,12 +26,12 @@ class Rake::Minify
|
|
26
26
|
end
|
27
27
|
|
28
28
|
it "should create a new source with the passed args when calling add" do
|
29
|
-
Source.should_receive(:new).with("something", false)
|
29
|
+
Source.should_receive(:new).with("something", :minify => false)
|
30
30
|
subject.add("something", :minify => false)
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should create a new source with the passed single arg when calling add" do
|
34
|
-
Source.should_receive(:new).with("another", true)
|
34
|
+
Source.should_receive(:new).with("another", :minify => true)
|
35
35
|
subject.add("another")
|
36
36
|
end
|
37
37
|
|
@@ -4,7 +4,7 @@ require 'stringio'
|
|
4
4
|
class Rake::Minify
|
5
5
|
describe Source do
|
6
6
|
context "configured to open 'a_source' and minify it" do
|
7
|
-
subject { Source.new("a_source", true) }
|
7
|
+
subject { Source.new("a_source", :minify => true) }
|
8
8
|
|
9
9
|
it "should open and minify the file" do
|
10
10
|
input = StringIO.new(' var a = "b" ;')
|
@@ -14,7 +14,7 @@ class Rake::Minify
|
|
14
14
|
end
|
15
15
|
|
16
16
|
context "configured to open 'another_source' and to not minify it" do
|
17
|
-
subject { Source.new("another_source", false) }
|
17
|
+
subject { Source.new("another_source", :minify => false) }
|
18
18
|
|
19
19
|
it "should open and clone the file" do
|
20
20
|
input = StringIO.new(' var a = "b" ;')
|
@@ -23,8 +23,8 @@ class Rake::Minify
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
context "compile a coffeescript file" do
|
27
|
-
subject { Source.new("a_source.coffee", true) }
|
26
|
+
context "compile a coffeescript file in bare mode" do
|
27
|
+
subject { Source.new("a_source.coffee", :minify => true, :bare => true) }
|
28
28
|
|
29
29
|
it "should open and minify the file" do
|
30
30
|
input = StringIO.new(' a = "b" ')
|
@@ -32,5 +32,34 @@ class Rake::Minify
|
|
32
32
|
subject.build.should == "var a;a=\"b\";"
|
33
33
|
end
|
34
34
|
end
|
35
|
+
|
36
|
+
context "compile a coffeescript file in wrapped mode" do
|
37
|
+
subject { Source.new("a_source.coffee", :minify => true, :bare => false) }
|
38
|
+
|
39
|
+
it "should open and minify the file" do
|
40
|
+
input = StringIO.new(' a = "b" ')
|
41
|
+
Kernel.stub!(:open).with("a_source.coffee").and_yield(input)
|
42
|
+
subject.build.should == "(function(){var a;a=\"b\";}).call(this);"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
context "compile a coffeescript file with no options" do
|
47
|
+
subject { Source.new("a_source.coffee") }
|
48
|
+
|
49
|
+
it "should open and minify the file" do
|
50
|
+
input = StringIO.new(' a = "b" ')
|
51
|
+
Kernel.stub!(:open).with("a_source.coffee").and_yield(input)
|
52
|
+
subject.build.should == "(function(){var a;a=\"b\";}).call(this);";
|
53
|
+
end
|
54
|
+
|
55
|
+
it "should minify by default" do
|
56
|
+
subject.minify.should be_true
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
it "should not raise an error if initialized con options = nil" do
|
61
|
+
lambda { Source.new("a.js", nil) }.should_not raise_error
|
62
|
+
end
|
63
|
+
|
35
64
|
end
|
36
65
|
end
|
data/spec/rake/minify_spec.rb
CHANGED
@@ -15,6 +15,10 @@ describe Rake::Minify do
|
|
15
15
|
subject.invoke
|
16
16
|
end
|
17
17
|
|
18
|
+
before :each do
|
19
|
+
FileUtils.stub!(:mkdir_p)
|
20
|
+
end
|
21
|
+
|
18
22
|
context "configured to minify a single file" do
|
19
23
|
subject do
|
20
24
|
Rake::Minify.new do
|
@@ -115,7 +119,7 @@ describe Rake::Minify do
|
|
115
119
|
end
|
116
120
|
end
|
117
121
|
|
118
|
-
context "configured to minify multiple files in
|
122
|
+
context "configured to minify multiple files in multiple directories" do
|
119
123
|
subject do
|
120
124
|
Rake::Minify.new do
|
121
125
|
dir("the_dir") do
|
@@ -141,6 +145,29 @@ describe Rake::Minify do
|
|
141
145
|
end
|
142
146
|
end
|
143
147
|
|
148
|
+
context "configured to minify a single file with an output in a deep directory" do
|
149
|
+
subject do
|
150
|
+
Rake::Minify.new do
|
151
|
+
add("an/output_dir/file", "source")
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
before :each do
|
156
|
+
stub_open("source",' var a = "b" ;')
|
157
|
+
@output = stub_open("an/output_dir/file","", "w")
|
158
|
+
end
|
159
|
+
|
160
|
+
it "should minify the input file when invoked" do
|
161
|
+
do_invoke
|
162
|
+
@output.string.should == "var a=\"b\";"
|
163
|
+
end
|
164
|
+
|
165
|
+
it "should create the destination directoy" do
|
166
|
+
FileUtils.should_receive(:mkdir_p).with("an/output_dir")
|
167
|
+
do_invoke
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
144
171
|
it "should accepts arguments" do
|
145
172
|
Rake::Task.should_receive(:define_task).with(:a_task)
|
146
173
|
Rake::Minify.new(:a_task) do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
Bundler.setup
|
4
|
+
require 'rspec'
|
5
|
+
|
1
6
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
7
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
-
require 'rspec'
|
4
8
|
require 'rake-minify'
|
9
|
+
require 'coffee-script'
|
5
10
|
|
6
11
|
# Requires supporting files with custom matchers and macros, etc,
|
7
12
|
# in ./support/ and its subdirectories.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-minify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matteo Collina
|
@@ -15,13 +15,375 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-09 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: rake-minify
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
prerelease: false
|
33
|
+
type: :runtime
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rspec
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 27
|
43
|
+
segments:
|
44
|
+
- 2
|
45
|
+
- 5
|
46
|
+
- 0
|
47
|
+
version: 2.5.0
|
48
|
+
prerelease: false
|
49
|
+
type: :development
|
50
|
+
requirement: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: cucumber
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
prerelease: false
|
63
|
+
type: :development
|
64
|
+
requirement: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: jeweler
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ~>
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 7
|
73
|
+
segments:
|
74
|
+
- 1
|
75
|
+
- 5
|
76
|
+
- 2
|
77
|
+
version: 1.5.2
|
78
|
+
prerelease: false
|
79
|
+
type: :development
|
80
|
+
requirement: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: test_notifier
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ~>
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
hash: 31
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
- 3
|
92
|
+
- 6
|
93
|
+
version: 0.3.6
|
94
|
+
prerelease: false
|
95
|
+
type: :development
|
96
|
+
requirement: *id005
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: autotest
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ~>
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 19
|
105
|
+
segments:
|
106
|
+
- 4
|
107
|
+
- 4
|
108
|
+
version: "4.4"
|
109
|
+
prerelease: false
|
110
|
+
type: :development
|
111
|
+
requirement: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: rcov
|
114
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
123
|
+
prerelease: false
|
124
|
+
type: :development
|
125
|
+
requirement: *id007
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: coffee-script
|
128
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
hash: 7
|
134
|
+
segments:
|
135
|
+
- 2
|
136
|
+
- 2
|
137
|
+
- 0
|
138
|
+
version: 2.2.0
|
139
|
+
prerelease: false
|
140
|
+
type: :development
|
141
|
+
requirement: *id008
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: rspec
|
144
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
hash: 27
|
150
|
+
segments:
|
151
|
+
- 2
|
152
|
+
- 5
|
153
|
+
- 0
|
154
|
+
version: 2.5.0
|
155
|
+
prerelease: false
|
156
|
+
type: :development
|
157
|
+
requirement: *id009
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: cucumber
|
160
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
hash: 3
|
166
|
+
segments:
|
167
|
+
- 0
|
168
|
+
version: "0"
|
169
|
+
prerelease: false
|
170
|
+
type: :development
|
171
|
+
requirement: *id010
|
172
|
+
- !ruby/object:Gem::Dependency
|
173
|
+
name: jeweler
|
174
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
175
|
+
none: false
|
176
|
+
requirements:
|
177
|
+
- - ~>
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
hash: 7
|
180
|
+
segments:
|
181
|
+
- 1
|
182
|
+
- 5
|
183
|
+
- 2
|
184
|
+
version: 1.5.2
|
185
|
+
prerelease: false
|
186
|
+
type: :development
|
187
|
+
requirement: *id011
|
188
|
+
- !ruby/object:Gem::Dependency
|
189
|
+
name: test_notifier
|
190
|
+
version_requirements: &id012 !ruby/object:Gem::Requirement
|
191
|
+
none: false
|
192
|
+
requirements:
|
193
|
+
- - ~>
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
hash: 31
|
196
|
+
segments:
|
197
|
+
- 0
|
198
|
+
- 3
|
199
|
+
- 6
|
200
|
+
version: 0.3.6
|
201
|
+
prerelease: false
|
202
|
+
type: :development
|
203
|
+
requirement: *id012
|
204
|
+
- !ruby/object:Gem::Dependency
|
205
|
+
name: autotest
|
206
|
+
version_requirements: &id013 !ruby/object:Gem::Requirement
|
207
|
+
none: false
|
208
|
+
requirements:
|
209
|
+
- - ~>
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
hash: 19
|
212
|
+
segments:
|
213
|
+
- 4
|
214
|
+
- 4
|
215
|
+
version: "4.4"
|
23
216
|
prerelease: false
|
24
|
-
|
217
|
+
type: :development
|
218
|
+
requirement: *id013
|
219
|
+
- !ruby/object:Gem::Dependency
|
220
|
+
name: rcov
|
221
|
+
version_requirements: &id014 !ruby/object:Gem::Requirement
|
222
|
+
none: false
|
223
|
+
requirements:
|
224
|
+
- - ">="
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
hash: 3
|
227
|
+
segments:
|
228
|
+
- 0
|
229
|
+
version: "0"
|
230
|
+
prerelease: false
|
231
|
+
type: :development
|
232
|
+
requirement: *id014
|
233
|
+
- !ruby/object:Gem::Dependency
|
234
|
+
name: coffee-script
|
235
|
+
version_requirements: &id015 !ruby/object:Gem::Requirement
|
236
|
+
none: false
|
237
|
+
requirements:
|
238
|
+
- - ">="
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
hash: 7
|
241
|
+
segments:
|
242
|
+
- 2
|
243
|
+
- 2
|
244
|
+
- 0
|
245
|
+
version: 2.2.0
|
246
|
+
prerelease: false
|
247
|
+
type: :development
|
248
|
+
requirement: *id015
|
249
|
+
- !ruby/object:Gem::Dependency
|
250
|
+
name: therubyracer
|
251
|
+
version_requirements: &id016 !ruby/object:Gem::Requirement
|
252
|
+
none: false
|
253
|
+
requirements:
|
254
|
+
- - ">="
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
hash: 3
|
257
|
+
segments:
|
258
|
+
- 0
|
259
|
+
version: "0"
|
260
|
+
prerelease: false
|
261
|
+
type: :development
|
262
|
+
requirement: *id016
|
263
|
+
- !ruby/object:Gem::Dependency
|
264
|
+
name: rspec
|
265
|
+
version_requirements: &id017 !ruby/object:Gem::Requirement
|
266
|
+
none: false
|
267
|
+
requirements:
|
268
|
+
- - ~>
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
hash: 27
|
271
|
+
segments:
|
272
|
+
- 2
|
273
|
+
- 5
|
274
|
+
- 0
|
275
|
+
version: 2.5.0
|
276
|
+
prerelease: false
|
277
|
+
type: :development
|
278
|
+
requirement: *id017
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: cucumber
|
281
|
+
version_requirements: &id018 !ruby/object:Gem::Requirement
|
282
|
+
none: false
|
283
|
+
requirements:
|
284
|
+
- - ">="
|
285
|
+
- !ruby/object:Gem::Version
|
286
|
+
hash: 3
|
287
|
+
segments:
|
288
|
+
- 0
|
289
|
+
version: "0"
|
290
|
+
prerelease: false
|
291
|
+
type: :development
|
292
|
+
requirement: *id018
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: jeweler
|
295
|
+
version_requirements: &id019 !ruby/object:Gem::Requirement
|
296
|
+
none: false
|
297
|
+
requirements:
|
298
|
+
- - ~>
|
299
|
+
- !ruby/object:Gem::Version
|
300
|
+
hash: 7
|
301
|
+
segments:
|
302
|
+
- 1
|
303
|
+
- 5
|
304
|
+
- 2
|
305
|
+
version: 1.5.2
|
306
|
+
prerelease: false
|
307
|
+
type: :development
|
308
|
+
requirement: *id019
|
309
|
+
- !ruby/object:Gem::Dependency
|
310
|
+
name: test_notifier
|
311
|
+
version_requirements: &id020 !ruby/object:Gem::Requirement
|
312
|
+
none: false
|
313
|
+
requirements:
|
314
|
+
- - ~>
|
315
|
+
- !ruby/object:Gem::Version
|
316
|
+
hash: 31
|
317
|
+
segments:
|
318
|
+
- 0
|
319
|
+
- 3
|
320
|
+
- 6
|
321
|
+
version: 0.3.6
|
322
|
+
prerelease: false
|
323
|
+
type: :development
|
324
|
+
requirement: *id020
|
325
|
+
- !ruby/object:Gem::Dependency
|
326
|
+
name: autotest
|
327
|
+
version_requirements: &id021 !ruby/object:Gem::Requirement
|
328
|
+
none: false
|
329
|
+
requirements:
|
330
|
+
- - ~>
|
331
|
+
- !ruby/object:Gem::Version
|
332
|
+
hash: 19
|
333
|
+
segments:
|
334
|
+
- 4
|
335
|
+
- 4
|
336
|
+
version: "4.4"
|
337
|
+
prerelease: false
|
338
|
+
type: :development
|
339
|
+
requirement: *id021
|
340
|
+
- !ruby/object:Gem::Dependency
|
341
|
+
name: rcov
|
342
|
+
version_requirements: &id022 !ruby/object:Gem::Requirement
|
343
|
+
none: false
|
344
|
+
requirements:
|
345
|
+
- - ">="
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
hash: 3
|
348
|
+
segments:
|
349
|
+
- 0
|
350
|
+
version: "0"
|
351
|
+
prerelease: false
|
352
|
+
type: :development
|
353
|
+
requirement: *id022
|
354
|
+
- !ruby/object:Gem::Dependency
|
355
|
+
name: coffee-script
|
356
|
+
version_requirements: &id023 !ruby/object:Gem::Requirement
|
357
|
+
none: false
|
358
|
+
requirements:
|
359
|
+
- - ">="
|
360
|
+
- !ruby/object:Gem::Version
|
361
|
+
hash: 7
|
362
|
+
segments:
|
363
|
+
- 2
|
364
|
+
- 2
|
365
|
+
- 0
|
366
|
+
version: 2.2.0
|
367
|
+
prerelease: false
|
368
|
+
type: :development
|
369
|
+
requirement: *id023
|
370
|
+
- !ruby/object:Gem::Dependency
|
371
|
+
name: therubyracer
|
372
|
+
version_requirements: &id024 !ruby/object:Gem::Requirement
|
373
|
+
none: false
|
374
|
+
requirements:
|
375
|
+
- - ">="
|
376
|
+
- !ruby/object:Gem::Version
|
377
|
+
hash: 3
|
378
|
+
segments:
|
379
|
+
- 0
|
380
|
+
version: "0"
|
381
|
+
prerelease: false
|
382
|
+
type: :development
|
383
|
+
requirement: *id024
|
384
|
+
- !ruby/object:Gem::Dependency
|
385
|
+
name: jsmin
|
386
|
+
version_requirements: &id025 !ruby/object:Gem::Requirement
|
25
387
|
none: false
|
26
388
|
requirements:
|
27
389
|
- - ~>
|
@@ -32,12 +394,12 @@ dependencies:
|
|
32
394
|
- 0
|
33
395
|
- 1
|
34
396
|
version: 1.0.1
|
397
|
+
prerelease: false
|
35
398
|
type: :runtime
|
36
|
-
|
399
|
+
requirement: *id025
|
37
400
|
- !ruby/object:Gem::Dependency
|
38
401
|
name: rspec
|
39
|
-
|
40
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
402
|
+
version_requirements: &id026 !ruby/object:Gem::Requirement
|
41
403
|
none: false
|
42
404
|
requirements:
|
43
405
|
- - ~>
|
@@ -48,12 +410,12 @@ dependencies:
|
|
48
410
|
- 5
|
49
411
|
- 0
|
50
412
|
version: 2.5.0
|
413
|
+
prerelease: false
|
51
414
|
type: :development
|
52
|
-
|
415
|
+
requirement: *id026
|
53
416
|
- !ruby/object:Gem::Dependency
|
54
417
|
name: cucumber
|
55
|
-
|
56
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
418
|
+
version_requirements: &id027 !ruby/object:Gem::Requirement
|
57
419
|
none: false
|
58
420
|
requirements:
|
59
421
|
- - ">="
|
@@ -62,12 +424,12 @@ dependencies:
|
|
62
424
|
segments:
|
63
425
|
- 0
|
64
426
|
version: "0"
|
427
|
+
prerelease: false
|
65
428
|
type: :development
|
66
|
-
|
429
|
+
requirement: *id027
|
67
430
|
- !ruby/object:Gem::Dependency
|
68
431
|
name: jeweler
|
69
|
-
|
70
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
432
|
+
version_requirements: &id028 !ruby/object:Gem::Requirement
|
71
433
|
none: false
|
72
434
|
requirements:
|
73
435
|
- - ~>
|
@@ -78,12 +440,12 @@ dependencies:
|
|
78
440
|
- 5
|
79
441
|
- 2
|
80
442
|
version: 1.5.2
|
443
|
+
prerelease: false
|
81
444
|
type: :development
|
82
|
-
|
445
|
+
requirement: *id028
|
83
446
|
- !ruby/object:Gem::Dependency
|
84
447
|
name: test_notifier
|
85
|
-
|
86
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
448
|
+
version_requirements: &id029 !ruby/object:Gem::Requirement
|
87
449
|
none: false
|
88
450
|
requirements:
|
89
451
|
- - ~>
|
@@ -94,12 +456,12 @@ dependencies:
|
|
94
456
|
- 3
|
95
457
|
- 6
|
96
458
|
version: 0.3.6
|
459
|
+
prerelease: false
|
97
460
|
type: :development
|
98
|
-
|
461
|
+
requirement: *id029
|
99
462
|
- !ruby/object:Gem::Dependency
|
100
463
|
name: autotest
|
101
|
-
|
102
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
464
|
+
version_requirements: &id030 !ruby/object:Gem::Requirement
|
103
465
|
none: false
|
104
466
|
requirements:
|
105
467
|
- - ~>
|
@@ -109,12 +471,12 @@ dependencies:
|
|
109
471
|
- 4
|
110
472
|
- 4
|
111
473
|
version: "4.4"
|
474
|
+
prerelease: false
|
112
475
|
type: :development
|
113
|
-
|
476
|
+
requirement: *id030
|
114
477
|
- !ruby/object:Gem::Dependency
|
115
478
|
name: rcov
|
116
|
-
|
117
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
479
|
+
version_requirements: &id031 !ruby/object:Gem::Requirement
|
118
480
|
none: false
|
119
481
|
requirements:
|
120
482
|
- - ">="
|
@@ -123,12 +485,12 @@ dependencies:
|
|
123
485
|
segments:
|
124
486
|
- 0
|
125
487
|
version: "0"
|
488
|
+
prerelease: false
|
126
489
|
type: :development
|
127
|
-
|
490
|
+
requirement: *id031
|
128
491
|
- !ruby/object:Gem::Dependency
|
129
492
|
name: coffee-script
|
130
|
-
|
131
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
493
|
+
version_requirements: &id032 !ruby/object:Gem::Requirement
|
132
494
|
none: false
|
133
495
|
requirements:
|
134
496
|
- - ">="
|
@@ -139,8 +501,23 @@ dependencies:
|
|
139
501
|
- 2
|
140
502
|
- 0
|
141
503
|
version: 2.2.0
|
504
|
+
prerelease: false
|
505
|
+
type: :development
|
506
|
+
requirement: *id032
|
507
|
+
- !ruby/object:Gem::Dependency
|
508
|
+
name: therubyracer
|
509
|
+
version_requirements: &id033 !ruby/object:Gem::Requirement
|
510
|
+
none: false
|
511
|
+
requirements:
|
512
|
+
- - ">="
|
513
|
+
- !ruby/object:Gem::Version
|
514
|
+
hash: 3
|
515
|
+
segments:
|
516
|
+
- 0
|
517
|
+
version: "0"
|
518
|
+
prerelease: false
|
142
519
|
type: :development
|
143
|
-
|
520
|
+
requirement: *id033
|
144
521
|
description: A rake task to minify javascripts and coffeescripts
|
145
522
|
email: matteo.collina@gmail.com
|
146
523
|
executables: []
|
@@ -155,6 +532,8 @@ files:
|
|
155
532
|
- .document
|
156
533
|
- .rspec
|
157
534
|
- .rvmrc
|
535
|
+
- Gemfile
|
536
|
+
- Gemfile.lock
|
158
537
|
- LICENSE.txt
|
159
538
|
- README.rdoc
|
160
539
|
- Rakefile
|
@@ -162,9 +541,13 @@ files:
|
|
162
541
|
- features/coffeescript.feature
|
163
542
|
- features/js-expected/a.min.js
|
164
543
|
- features/js-expected/b.min.js
|
544
|
+
- features/js-expected/c-a-bare.min.js
|
545
|
+
- features/js-expected/c-a-wrapped.min.js
|
165
546
|
- features/js-expected/c-a.min.js
|
166
547
|
- features/js-sources/a.js
|
167
548
|
- features/js-sources/b.js
|
549
|
+
- features/js-sources/c-a-bare.js
|
550
|
+
- features/js-sources/c-a-wrapped.js
|
168
551
|
- features/js-sources/c-a.coffee
|
169
552
|
- features/js-sources/c-a.js
|
170
553
|
- features/minify.feature
|