css_splitter 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +28 -54
- data/app/helpers/css_splitter/application_helper.rb +12 -10
- data/lib/css_splitter.rb +1 -1
- data/lib/css_splitter/engine.rb +1 -1
- data/lib/css_splitter/splitter.rb +34 -1
- data/lib/css_splitter/sprockets_engine.rb +7 -3
- data/lib/css_splitter/version.rb +1 -1
- data/test/css_splitter_test.rb +34 -0
- data/test/dummy/app/assets/stylesheets/combined.css.scss +4 -0
- data/test/dummy/app/assets/stylesheets/combined_split2.css +3 -0
- data/test/dummy/app/assets/stylesheets/erb_stylesheet.css.scss.erb +7 -0
- data/test/dummy/app/assets/stylesheets/erb_stylesheet_split2.css +3 -0
- data/test/dummy/app/assets/stylesheets/erb_stylesheet_split3.css +3 -0
- data/test/dummy/app/assets/stylesheets/green_max.css.scss.erb +3 -0
- data/test/dummy/app/assets/stylesheets/red_100.css.scss.erb +3 -0
- data/test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries_split2.css +3 -0
- data/test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css +3 -0
- data/test/dummy/config/application.rb +0 -1
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +2 -0
- data/test/dummy/config/environments/test.rb +2 -0
- data/test/dummy/log/production.log +0 -0
- data/test/dummy/log/test.log +588 -0
- data/test/dummy/tmp/cache/assets/{D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 → development/sprockets/13fe41fee1fe35b49d145bcc06610705} +0 -0
- data/test/dummy/tmp/cache/assets/{CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 → development/sprockets/357970feca3ac29060c1e3861e2c0953} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/combined.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/green_max.css.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/red_100.css.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/too_big_stylesheet.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/0830b343f8968ec4aa8370f868668248 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/0b721c131ad2142b39a1947ba7186369 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/22a5a1651eda39579a0ac9ed19894730 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/32bab925c6af34ffea7c025aa09d511a +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/39fd278352b772e098112f7f25f70cad +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/48279a0d3bfb1252abd9c35c097c5994 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/5964a02e2bf7bc79ebffb414bfb6df5c +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/5c364cce43467cca51d7fee41b38b8d2 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/6403010c1ca0cb17615027724c2101f4 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/7808b3f4a805cc4644882be056088fd5 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/7f49d72527d04af68b22828bfd93a487 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/bcf8e6c3b8d95af1ea2fbb57c3429158 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c5701cb90862b1e1da20a31c93180ff8 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c9750dd5995631096c42e0ee2b08bdc2 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/de6e0c2b56f11be6215058985f78fc22 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/e5609c41f6effb12ebf399a01337457e +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/e731ba9557bf61573ac4f38a4648a45e +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/e91e9a9bbc721b2440323fdf67823613 +0 -0
- data/test/unit/helpers/css_splitter/application_helper_test.rb +7 -2
- data/test/unit/splitter_test.rb +131 -1
- metadata +93 -31
- data/test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries_split2.css.split2 +0 -1
- data/test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css.split2 +0 -1
- data/test/dummy/tmp/cache/assets/CFB/3F0/sprockets%2Fc5701cb90862b1e1da20a31c93180ff8 +0 -0
- data/test/dummy/tmp/cache/assets/CFC/990/sprockets%2F87aeb2d2c5f12012d6d908b3a3466b12 +0 -0
- data/test/dummy/tmp/cache/assets/D22/590/sprockets%2F24c1f9d49cd8543f25bf82d365da6939 +0 -0
- data/test/dummy/tmp/cache/assets/D23/170/sprockets%2F45f2cb247bdf9a5c97748e3f0897822a +0 -0
- data/test/dummy/tmp/cache/assets/D35/500/sprockets%2F45b349f1b8c8016ce45eac3aa5e63531 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D90/C40/sprockets%2F016dcd02588d8f6f1625aace5e41aa1c +0 -0
- data/test/dummy/tmp/cache/assets/D9E/DF0/sprockets%2F5c364cce43467cca51d7fee41b38b8d2 +0 -0
- data/test/dummy/tmp/cache/assets/DB7/EE0/sprockets%2F32bab925c6af34ffea7c025aa09d511a +0 -0
- data/test/dummy/tmp/cache/assets/E86/410/sprockets%2Fcedb11a422be3ba8fef2da27df4f87fb +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -5,12 +5,17 @@ module CssSplitter
|
|
|
5
5
|
|
|
6
6
|
test "should work w/out options" do
|
|
7
7
|
output = split_stylesheet_link_tag("too_big_stylesheet")
|
|
8
|
-
assert_equal "<link href=\"/stylesheets/too_big_stylesheet.css\" media=\"screen\" rel=\"stylesheet\"
|
|
8
|
+
assert_equal "<link href=\"/stylesheets/too_big_stylesheet.css\" media=\"screen\" rel=\"stylesheet\" />\n<!--[if lte IE 9]>\n<link href=\"/stylesheets/too_big_stylesheet_split2.css\" media=\"screen\" rel=\"stylesheet\" />\n<![endif]-->", output
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
test "should work with options and multiple stylesheets" do
|
|
12
12
|
output = split_stylesheet_link_tag("too_big_stylesheet", "foo", media: "print")
|
|
13
|
-
assert_equal "<link href=\"/stylesheets/too_big_stylesheet.css\" media=\"print\" rel=\"stylesheet\"
|
|
13
|
+
assert_equal "<link href=\"/stylesheets/too_big_stylesheet.css\" media=\"print\" rel=\"stylesheet\" />\n<!--[if lte IE 9]>\n<link href=\"/stylesheets/too_big_stylesheet_split2.css\" media=\"print\" rel=\"stylesheet\" />\n<![endif]-->\n<link href=\"/stylesheets/foo.css\" media=\"print\" rel=\"stylesheet\" />\n<!--[if lte IE 9]>\n<link href=\"/stylesheets/foo_split2.css\" media=\"print\" rel=\"stylesheet\" />\n<![endif]-->", output
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
test "should work with split_count option" do
|
|
17
|
+
output = split_stylesheet_link_tag("too_big_stylesheet", split_count: 3)
|
|
18
|
+
assert_equal "<link href=\"/stylesheets/too_big_stylesheet.css\" media=\"screen\" rel=\"stylesheet\" />\n<!--[if lte IE 9]>\n<link href=\"/stylesheets/too_big_stylesheet_split2.css\" media=\"screen\" rel=\"stylesheet\" />\n<link href=\"/stylesheets/too_big_stylesheet_split3.css\" media=\"screen\" rel=\"stylesheet\" />\n<![endif]-->", output
|
|
14
19
|
end
|
|
15
20
|
|
|
16
21
|
end
|
data/test/unit/splitter_test.rb
CHANGED
|
@@ -2,12 +2,15 @@ require 'test_helper'
|
|
|
2
2
|
|
|
3
3
|
class CssSplitterTest < ActiveSupport::TestCase
|
|
4
4
|
test "#count_selectors" do
|
|
5
|
-
assert_equal
|
|
5
|
+
assert_equal 2937, CssSplitter::Splitter.count_selectors('test/unit/too_many_selectors.css')
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
test "#count_selectors_of_rule" do
|
|
9
9
|
assert_equal 1, CssSplitter::Splitter.count_selectors_of_rule('foo { color: baz; }')
|
|
10
10
|
assert_equal 2, CssSplitter::Splitter.count_selectors_of_rule('foo, bar { color: baz; }')
|
|
11
|
+
|
|
12
|
+
# split_string_into_rules splits the closing brace of a media query into its own rule
|
|
13
|
+
assert_equal 0, CssSplitter::Splitter.count_selectors_of_rule('}')
|
|
11
14
|
end
|
|
12
15
|
|
|
13
16
|
# --- split_string_into_rules ---
|
|
@@ -32,6 +35,11 @@ class CssSplitterTest < ActiveSupport::TestCase
|
|
|
32
35
|
assert_equal ["a{foo:url(//assets.server.com);}", "b{bar:url(//assets/server.com);}"], CssSplitter::Splitter.split_string_into_rules(simple)
|
|
33
36
|
end
|
|
34
37
|
|
|
38
|
+
test '#split_string_into_rules containing media queries' do
|
|
39
|
+
has_media = "a{foo:bar;}@media print{b{baz:qux;}c{quux:corge;}}d{grault:garply;}"
|
|
40
|
+
assert_equal ["a{foo:bar;}", "@media print{b{baz:qux;}", "c{quux:corge;}", "}", "d{grault:garply;}"], CssSplitter::Splitter.split_string_into_rules(has_media)
|
|
41
|
+
end
|
|
42
|
+
|
|
35
43
|
# --- extract_charset ---
|
|
36
44
|
|
|
37
45
|
test '#extract_charset with no charset' do
|
|
@@ -44,12 +52,134 @@ class CssSplitterTest < ActiveSupport::TestCase
|
|
|
44
52
|
assert_equal ['@charset "UTF-8";', ' .foo { color: black; }'], CssSplitter::Splitter.send(:extract_charset, first_rule)
|
|
45
53
|
end
|
|
46
54
|
|
|
55
|
+
# --- extract_media ---
|
|
56
|
+
|
|
57
|
+
test '#extract_media with no media block' do
|
|
58
|
+
first_rule = ".foo { color: black; }"
|
|
59
|
+
assert_equal nil, CssSplitter::Splitter.send(:extract_media, first_rule)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
test '#extract_media with media block' do
|
|
63
|
+
first_rule = <<EOD
|
|
64
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 1280px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 800px) {
|
|
65
|
+
.foo { color: black; }
|
|
66
|
+
}
|
|
67
|
+
EOD
|
|
68
|
+
assert_equal '@media only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 1280px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 800px) {', CssSplitter::Splitter.send(:extract_media, first_rule)
|
|
69
|
+
end
|
|
70
|
+
|
|
47
71
|
# --- split_string ---
|
|
48
72
|
|
|
49
73
|
test '#split_string to get the second split' do
|
|
50
74
|
assert_equal "@charset \"UTF-8\";\n#test { background-color: green ;}", CssSplitter::Splitter.split_string(File.read('test/dummy/app/assets/stylesheets/too_big_stylesheet.css.scss'), 2)
|
|
51
75
|
end
|
|
52
76
|
|
|
77
|
+
test '#split_string where the media part would overlap the split, all rules in media before the split, closing would end up in second part' do
|
|
78
|
+
# This tests the following situation:
|
|
79
|
+
# Part 1: CssSplitter::Splitter::MAX_SELECTORS_DEFAULT - 1
|
|
80
|
+
# + Media block and first rule inside the media block
|
|
81
|
+
# Part 2: Ignore the close tag of the media block and outputs the last rule outside the media block
|
|
82
|
+
|
|
83
|
+
# Change this line to any number, for example 4, if it fails to ease debugging
|
|
84
|
+
max_selectors = CssSplitter::Splitter::MAX_SELECTORS_DEFAULT
|
|
85
|
+
|
|
86
|
+
css_rules = []
|
|
87
|
+
(max_selectors - 1).times do |n|
|
|
88
|
+
css_rules << ".a#{n} { color: black; }"
|
|
89
|
+
end
|
|
90
|
+
css_rules << "@media only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 1280px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 800px) {"
|
|
91
|
+
css_rules << ".first-in-media-after-split { color: black; } }"
|
|
92
|
+
last_part = ".first-after-media { color: black; }"
|
|
93
|
+
|
|
94
|
+
first_contents = css_rules.join("").gsub(/\s/, '')
|
|
95
|
+
last_contents = last_part.gsub(/\s/, '')
|
|
96
|
+
css_contents = "#{first_contents}#{last_contents}"
|
|
97
|
+
|
|
98
|
+
assert_equal first_contents, CssSplitter::Splitter.split_string(css_contents, 1, max_selectors)
|
|
99
|
+
assert_equal last_contents, CssSplitter::Splitter.split_string(css_contents, 2, max_selectors)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
test '#split_string where the media part would overlap the split, no rules in media before the split' do
|
|
103
|
+
# This tests the following situation:
|
|
104
|
+
# Part 1: CssSplitter::Splitter::MAX_SELECTORS_DEFAULT
|
|
105
|
+
# Part 2: Opens with media block with 1 rule inside and one after
|
|
106
|
+
|
|
107
|
+
# Change this line to any number, for example 4, if it fails to ease debugging
|
|
108
|
+
max_selectors = CssSplitter::Splitter::MAX_SELECTORS_DEFAULT
|
|
109
|
+
|
|
110
|
+
css_rules = []
|
|
111
|
+
max_selectors.times do |n|
|
|
112
|
+
css_rules << ".a#{n} { color: black; }"
|
|
113
|
+
end
|
|
114
|
+
media_rule = "@media only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 1280px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 800px) {"
|
|
115
|
+
last_part = "#{media_rule} .first-in-media-after-split { color: black; } } .first-after-media { color: black; }"
|
|
116
|
+
|
|
117
|
+
first_contents = css_rules.join("").gsub(/\s/, '')
|
|
118
|
+
last_contents = last_part.gsub(/\s/, '')
|
|
119
|
+
css_contents = "#{first_contents}#{last_contents}"
|
|
120
|
+
|
|
121
|
+
assert_equal first_contents, CssSplitter::Splitter.split_string(css_contents, 1, max_selectors)
|
|
122
|
+
assert_equal last_contents, CssSplitter::Splitter.split_string(css_contents, 2, max_selectors)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
test '#split_string where the media part would overlap the split, with rules in media before the split' do
|
|
126
|
+
# This tests the following situation:
|
|
127
|
+
# Part 1: CssSplitter::Splitter::MAX_SELECTORS_DEFAULT - 1 rules
|
|
128
|
+
# + Media block and first rule inside the media block
|
|
129
|
+
# Part 2: Opens with media block with last rule inside and one after
|
|
130
|
+
|
|
131
|
+
# Change this line to any number, for example 4, if it fails to ease debugging
|
|
132
|
+
max_selectors = CssSplitter::Splitter::MAX_SELECTORS_DEFAULT
|
|
133
|
+
|
|
134
|
+
css_rules = []
|
|
135
|
+
(max_selectors - 1).times do |n|
|
|
136
|
+
css_rules << ".a#{n} { color: black; }"
|
|
137
|
+
end
|
|
138
|
+
css_rules << media_rule = "@media only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 1280px), only screen and (-webkit-min-device-pixel-ratio: 0) and (device-width: 800px) {"
|
|
139
|
+
css_rules << ".last-before-split { color: black; }"
|
|
140
|
+
|
|
141
|
+
after_split = ".last-after-split { color: black; } } .first-after-media { color: black; }".gsub(/\s/, '')
|
|
142
|
+
|
|
143
|
+
first_contents = css_rules.join("").gsub(/\s/, '')
|
|
144
|
+
css_contents = "#{first_contents}#{after_split}"
|
|
145
|
+
|
|
146
|
+
# The last part should open with the media, followed by the rules defined in after_split
|
|
147
|
+
last_contents = "#{media_rule}#{after_split}".gsub(/\s/, '')
|
|
148
|
+
|
|
149
|
+
# The first file should be closed neatly, as the media part opened before the last rule
|
|
150
|
+
# it should be closed as well.
|
|
151
|
+
assert_equal "#{first_contents}}", CssSplitter::Splitter.split_string(css_contents, 1, max_selectors)
|
|
152
|
+
|
|
153
|
+
# The second part should open with the media definition, followed by one rule inside
|
|
154
|
+
# the media block and one rule after.
|
|
155
|
+
assert_equal last_contents, CssSplitter::Splitter.split_string(css_contents, 2, max_selectors)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
test '#split_string where the media part comes before the split' do
|
|
159
|
+
# This tests the following situation:
|
|
160
|
+
# Part 1: Media block with rule inside media block
|
|
161
|
+
# + CssSplitter::Splitter::MAX_SELECTORS_DEFAULT - 1 rules outside media block
|
|
162
|
+
# Part 2: Outputs the last rule outside media block
|
|
163
|
+
|
|
164
|
+
# Change this line to any number, for example 4, if it fails to ease debugging
|
|
165
|
+
max_selectors = CssSplitter::Splitter::MAX_SELECTORS_DEFAULT
|
|
166
|
+
|
|
167
|
+
css_rules = []
|
|
168
|
+
css_rules << "@media print { .media-rule { color: black; } }"
|
|
169
|
+
|
|
170
|
+
(max_selectors - 1).times do |n|
|
|
171
|
+
css_rules << ".a#{n} { color: black; }"
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
first_contents = css_rules.join("").gsub(/\s/, '')
|
|
175
|
+
last_contents = ".first-after-split { color: black; }".gsub(/\s/, '')
|
|
176
|
+
|
|
177
|
+
css_contents = "#{first_contents}#{last_contents}"
|
|
178
|
+
|
|
179
|
+
assert_equal first_contents, CssSplitter::Splitter.split_string(css_contents, 1, max_selectors)
|
|
180
|
+
assert_equal last_contents, CssSplitter::Splitter.split_string(css_contents, 2, max_selectors)
|
|
181
|
+
end
|
|
182
|
+
|
|
53
183
|
# --- strip_comments ---
|
|
54
184
|
|
|
55
185
|
test '#strip_comments: strip single line CSS coment' do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: css_splitter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Peters
|
|
@@ -9,8 +9,22 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2014-09-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: sprockets
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
requirements:
|
|
18
|
+
- - ! '>='
|
|
19
|
+
- !ruby/object:Gem::Version
|
|
20
|
+
version: 2.0.0
|
|
21
|
+
type: :runtime
|
|
22
|
+
prerelease: false
|
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - ! '>='
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: 2.0.0
|
|
14
28
|
- !ruby/object:Gem::Dependency
|
|
15
29
|
name: rails
|
|
16
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -18,7 +32,7 @@ dependencies:
|
|
|
18
32
|
- - ! '>='
|
|
19
33
|
- !ruby/object:Gem::Version
|
|
20
34
|
version: '3.1'
|
|
21
|
-
type: :
|
|
35
|
+
type: :development
|
|
22
36
|
prerelease: false
|
|
23
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
38
|
requirements:
|
|
@@ -50,29 +64,53 @@ files:
|
|
|
50
64
|
- test/unit/helpers/css_splitter/application_helper_test.rb
|
|
51
65
|
- test/dummy/log/test.log
|
|
52
66
|
- test/dummy/log/development.log
|
|
67
|
+
- test/dummy/log/production.log
|
|
53
68
|
- test/dummy/README.rdoc
|
|
54
69
|
- test/dummy/app/views/tests/test.html.erb
|
|
55
70
|
- test/dummy/app/views/layouts/application.html.erb
|
|
56
71
|
- test/dummy/app/controllers/tests_controller.rb
|
|
57
72
|
- test/dummy/app/controllers/application_controller.rb
|
|
58
|
-
- test/dummy/app/assets/stylesheets/
|
|
59
|
-
- test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css
|
|
73
|
+
- test/dummy/app/assets/stylesheets/erb_stylesheet_split3.css
|
|
74
|
+
- test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css
|
|
75
|
+
- test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries_split2.css
|
|
76
|
+
- test/dummy/app/assets/stylesheets/combined_split2.css
|
|
77
|
+
- test/dummy/app/assets/stylesheets/combined.css.scss
|
|
78
|
+
- test/dummy/app/assets/stylesheets/erb_stylesheet_split2.css
|
|
60
79
|
- test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries.css
|
|
61
80
|
- test/dummy/app/assets/stylesheets/application.css
|
|
81
|
+
- test/dummy/app/assets/stylesheets/green_max.css.scss.erb
|
|
82
|
+
- test/dummy/app/assets/stylesheets/red_100.css.scss.erb
|
|
62
83
|
- test/dummy/app/assets/stylesheets/too_big_stylesheet.css.scss
|
|
84
|
+
- test/dummy/app/assets/stylesheets/erb_stylesheet.css.scss.erb
|
|
63
85
|
- test/dummy/tmp/cache/sass/b9e4830c729ae51788f53a4d25e9a2159c4d6897/too_big_stylesheet.css.scssc
|
|
64
|
-
- test/dummy/tmp/cache/assets/
|
|
65
|
-
- test/dummy/tmp/cache/assets/
|
|
66
|
-
- test/dummy/tmp/cache/assets/
|
|
67
|
-
- test/dummy/tmp/cache/assets/
|
|
68
|
-
- test/dummy/tmp/cache/assets/
|
|
69
|
-
- test/dummy/tmp/cache/assets/
|
|
70
|
-
- test/dummy/tmp/cache/assets/
|
|
71
|
-
- test/dummy/tmp/cache/assets/
|
|
72
|
-
- test/dummy/tmp/cache/assets/
|
|
73
|
-
- test/dummy/tmp/cache/assets/
|
|
74
|
-
- test/dummy/tmp/cache/assets/
|
|
75
|
-
- test/dummy/tmp/cache/assets/
|
|
86
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
|
87
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
|
88
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
89
|
+
- test/dummy/tmp/cache/assets/production/sprockets/357970feca3ac29060c1e3861e2c0953
|
|
90
|
+
- test/dummy/tmp/cache/assets/production/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
|
91
|
+
- test/dummy/tmp/cache/assets/production/sprockets/32bab925c6af34ffea7c025aa09d511a
|
|
92
|
+
- test/dummy/tmp/cache/assets/production/sprockets/0830b343f8968ec4aa8370f868668248
|
|
93
|
+
- test/dummy/tmp/cache/assets/production/sprockets/6403010c1ca0cb17615027724c2101f4
|
|
94
|
+
- test/dummy/tmp/cache/assets/production/sprockets/c5701cb90862b1e1da20a31c93180ff8
|
|
95
|
+
- test/dummy/tmp/cache/assets/production/sprockets/22a5a1651eda39579a0ac9ed19894730
|
|
96
|
+
- test/dummy/tmp/cache/assets/production/sprockets/bcf8e6c3b8d95af1ea2fbb57c3429158
|
|
97
|
+
- test/dummy/tmp/cache/assets/production/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
98
|
+
- test/dummy/tmp/cache/assets/production/sprockets/e5609c41f6effb12ebf399a01337457e
|
|
99
|
+
- test/dummy/tmp/cache/assets/production/sprockets/7808b3f4a805cc4644882be056088fd5
|
|
100
|
+
- test/dummy/tmp/cache/assets/production/sprockets/de6e0c2b56f11be6215058985f78fc22
|
|
101
|
+
- test/dummy/tmp/cache/assets/production/sprockets/0b721c131ad2142b39a1947ba7186369
|
|
102
|
+
- test/dummy/tmp/cache/assets/production/sprockets/39fd278352b772e098112f7f25f70cad
|
|
103
|
+
- test/dummy/tmp/cache/assets/production/sprockets/5964a02e2bf7bc79ebffb414bfb6df5c
|
|
104
|
+
- test/dummy/tmp/cache/assets/production/sprockets/48279a0d3bfb1252abd9c35c097c5994
|
|
105
|
+
- test/dummy/tmp/cache/assets/production/sprockets/7f49d72527d04af68b22828bfd93a487
|
|
106
|
+
- test/dummy/tmp/cache/assets/production/sprockets/e91e9a9bbc721b2440323fdf67823613
|
|
107
|
+
- test/dummy/tmp/cache/assets/production/sprockets/c9750dd5995631096c42e0ee2b08bdc2
|
|
108
|
+
- test/dummy/tmp/cache/assets/production/sprockets/5c364cce43467cca51d7fee41b38b8d2
|
|
109
|
+
- test/dummy/tmp/cache/assets/production/sprockets/e731ba9557bf61573ac4f38a4648a45e
|
|
110
|
+
- test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/too_big_stylesheet.css.scssc
|
|
111
|
+
- test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/red_100.css.scss.erbc
|
|
112
|
+
- test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/combined.css.scssc
|
|
113
|
+
- test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/green_max.css.scss.erbc
|
|
76
114
|
- test/dummy/db/development.sqlite3
|
|
77
115
|
- test/dummy/db/test.sqlite3
|
|
78
116
|
- test/dummy/script/rails
|
|
@@ -130,29 +168,53 @@ test_files:
|
|
|
130
168
|
- test/unit/helpers/css_splitter/application_helper_test.rb
|
|
131
169
|
- test/dummy/log/test.log
|
|
132
170
|
- test/dummy/log/development.log
|
|
171
|
+
- test/dummy/log/production.log
|
|
133
172
|
- test/dummy/README.rdoc
|
|
134
173
|
- test/dummy/app/views/tests/test.html.erb
|
|
135
174
|
- test/dummy/app/views/layouts/application.html.erb
|
|
136
175
|
- test/dummy/app/controllers/tests_controller.rb
|
|
137
176
|
- test/dummy/app/controllers/application_controller.rb
|
|
138
|
-
- test/dummy/app/assets/stylesheets/
|
|
139
|
-
- test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css
|
|
177
|
+
- test/dummy/app/assets/stylesheets/erb_stylesheet_split3.css
|
|
178
|
+
- test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css
|
|
179
|
+
- test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries_split2.css
|
|
180
|
+
- test/dummy/app/assets/stylesheets/combined_split2.css
|
|
181
|
+
- test/dummy/app/assets/stylesheets/combined.css.scss
|
|
182
|
+
- test/dummy/app/assets/stylesheets/erb_stylesheet_split2.css
|
|
140
183
|
- test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries.css
|
|
141
184
|
- test/dummy/app/assets/stylesheets/application.css
|
|
185
|
+
- test/dummy/app/assets/stylesheets/green_max.css.scss.erb
|
|
186
|
+
- test/dummy/app/assets/stylesheets/red_100.css.scss.erb
|
|
142
187
|
- test/dummy/app/assets/stylesheets/too_big_stylesheet.css.scss
|
|
188
|
+
- test/dummy/app/assets/stylesheets/erb_stylesheet.css.scss.erb
|
|
143
189
|
- test/dummy/tmp/cache/sass/b9e4830c729ae51788f53a4d25e9a2159c4d6897/too_big_stylesheet.css.scssc
|
|
144
|
-
- test/dummy/tmp/cache/assets/
|
|
145
|
-
- test/dummy/tmp/cache/assets/
|
|
146
|
-
- test/dummy/tmp/cache/assets/
|
|
147
|
-
- test/dummy/tmp/cache/assets/
|
|
148
|
-
- test/dummy/tmp/cache/assets/
|
|
149
|
-
- test/dummy/tmp/cache/assets/
|
|
150
|
-
- test/dummy/tmp/cache/assets/
|
|
151
|
-
- test/dummy/tmp/cache/assets/
|
|
152
|
-
- test/dummy/tmp/cache/assets/
|
|
153
|
-
- test/dummy/tmp/cache/assets/
|
|
154
|
-
- test/dummy/tmp/cache/assets/
|
|
155
|
-
- test/dummy/tmp/cache/assets/
|
|
190
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
|
191
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
|
192
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
193
|
+
- test/dummy/tmp/cache/assets/production/sprockets/357970feca3ac29060c1e3861e2c0953
|
|
194
|
+
- test/dummy/tmp/cache/assets/production/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
|
195
|
+
- test/dummy/tmp/cache/assets/production/sprockets/32bab925c6af34ffea7c025aa09d511a
|
|
196
|
+
- test/dummy/tmp/cache/assets/production/sprockets/0830b343f8968ec4aa8370f868668248
|
|
197
|
+
- test/dummy/tmp/cache/assets/production/sprockets/6403010c1ca0cb17615027724c2101f4
|
|
198
|
+
- test/dummy/tmp/cache/assets/production/sprockets/c5701cb90862b1e1da20a31c93180ff8
|
|
199
|
+
- test/dummy/tmp/cache/assets/production/sprockets/22a5a1651eda39579a0ac9ed19894730
|
|
200
|
+
- test/dummy/tmp/cache/assets/production/sprockets/bcf8e6c3b8d95af1ea2fbb57c3429158
|
|
201
|
+
- test/dummy/tmp/cache/assets/production/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
202
|
+
- test/dummy/tmp/cache/assets/production/sprockets/e5609c41f6effb12ebf399a01337457e
|
|
203
|
+
- test/dummy/tmp/cache/assets/production/sprockets/7808b3f4a805cc4644882be056088fd5
|
|
204
|
+
- test/dummy/tmp/cache/assets/production/sprockets/de6e0c2b56f11be6215058985f78fc22
|
|
205
|
+
- test/dummy/tmp/cache/assets/production/sprockets/0b721c131ad2142b39a1947ba7186369
|
|
206
|
+
- test/dummy/tmp/cache/assets/production/sprockets/39fd278352b772e098112f7f25f70cad
|
|
207
|
+
- test/dummy/tmp/cache/assets/production/sprockets/5964a02e2bf7bc79ebffb414bfb6df5c
|
|
208
|
+
- test/dummy/tmp/cache/assets/production/sprockets/48279a0d3bfb1252abd9c35c097c5994
|
|
209
|
+
- test/dummy/tmp/cache/assets/production/sprockets/7f49d72527d04af68b22828bfd93a487
|
|
210
|
+
- test/dummy/tmp/cache/assets/production/sprockets/e91e9a9bbc721b2440323fdf67823613
|
|
211
|
+
- test/dummy/tmp/cache/assets/production/sprockets/c9750dd5995631096c42e0ee2b08bdc2
|
|
212
|
+
- test/dummy/tmp/cache/assets/production/sprockets/5c364cce43467cca51d7fee41b38b8d2
|
|
213
|
+
- test/dummy/tmp/cache/assets/production/sprockets/e731ba9557bf61573ac4f38a4648a45e
|
|
214
|
+
- test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/too_big_stylesheet.css.scssc
|
|
215
|
+
- test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/red_100.css.scss.erbc
|
|
216
|
+
- test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/combined.css.scssc
|
|
217
|
+
- test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/green_max.css.scss.erbc
|
|
156
218
|
- test/dummy/db/development.sqlite3
|
|
157
219
|
- test/dummy/db/test.sqlite3
|
|
158
220
|
- test/dummy/script/rails
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//= include 'test_stylesheet_with_media_queries'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//= include 'too_big_stylesheet.css'
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|