css_splitter 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +8 -0
  3. data/app/helpers/css_splitter/application_helper.rb +6 -2
  4. data/lib/css_splitter/version.rb +1 -1
  5. data/test/dummy/app/views/layouts/application.html.erb +1 -1
  6. data/test/dummy/log/test.log +81 -0
  7. data/test/unit/helpers/css_splitter/application_helper_test.rb +23 -0
  8. metadata +50 -106
  9. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  10. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  11. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  12. data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/combined.css.scssc +0 -0
  13. data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/green_max.css.scss.erbc +0 -0
  14. data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/red_100.css.scss.erbc +0 -0
  15. data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/too_big_stylesheet.css.scssc +0 -0
  16. data/test/dummy/tmp/cache/assets/production/sprockets/0830b343f8968ec4aa8370f868668248 +0 -0
  17. data/test/dummy/tmp/cache/assets/production/sprockets/0b721c131ad2142b39a1947ba7186369 +0 -0
  18. data/test/dummy/tmp/cache/assets/production/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  19. data/test/dummy/tmp/cache/assets/production/sprockets/22a5a1651eda39579a0ac9ed19894730 +0 -0
  20. data/test/dummy/tmp/cache/assets/production/sprockets/32bab925c6af34ffea7c025aa09d511a +0 -0
  21. data/test/dummy/tmp/cache/assets/production/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  22. data/test/dummy/tmp/cache/assets/production/sprockets/39fd278352b772e098112f7f25f70cad +0 -0
  23. data/test/dummy/tmp/cache/assets/production/sprockets/48279a0d3bfb1252abd9c35c097c5994 +0 -0
  24. data/test/dummy/tmp/cache/assets/production/sprockets/5964a02e2bf7bc79ebffb414bfb6df5c +0 -0
  25. data/test/dummy/tmp/cache/assets/production/sprockets/5c364cce43467cca51d7fee41b38b8d2 +0 -0
  26. data/test/dummy/tmp/cache/assets/production/sprockets/6403010c1ca0cb17615027724c2101f4 +0 -0
  27. data/test/dummy/tmp/cache/assets/production/sprockets/7808b3f4a805cc4644882be056088fd5 +0 -0
  28. data/test/dummy/tmp/cache/assets/production/sprockets/7f49d72527d04af68b22828bfd93a487 +0 -0
  29. data/test/dummy/tmp/cache/assets/production/sprockets/bcf8e6c3b8d95af1ea2fbb57c3429158 +0 -0
  30. data/test/dummy/tmp/cache/assets/production/sprockets/c5701cb90862b1e1da20a31c93180ff8 +0 -0
  31. data/test/dummy/tmp/cache/assets/production/sprockets/c9750dd5995631096c42e0ee2b08bdc2 +0 -0
  32. data/test/dummy/tmp/cache/assets/production/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  33. data/test/dummy/tmp/cache/assets/production/sprockets/de6e0c2b56f11be6215058985f78fc22 +0 -0
  34. data/test/dummy/tmp/cache/assets/production/sprockets/e5609c41f6effb12ebf399a01337457e +0 -0
  35. data/test/dummy/tmp/cache/assets/production/sprockets/e731ba9557bf61573ac4f38a4648a45e +0 -0
  36. data/test/dummy/tmp/cache/assets/production/sprockets/e91e9a9bbc721b2440323fdf67823613 +0 -0
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDNhMzBiNWQxMzBjYzdiNjM0ZTY4NDRiNzViMDEyZmY0MjBlNDYwZA==
5
- data.tar.gz: !binary |-
6
- OGRmNTdjMTM3MzE3Yzk4MjM4MzhmZGZmZjNmNTQ1M2M3MmRmMGUyZA==
2
+ SHA1:
3
+ metadata.gz: 8a106455e40bb2932efecc6eb56c10936a9ff648
4
+ data.tar.gz: 576a7ffc0579181471ea19fa61de908493b4a0bd
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YzM5M2Y4NGRhMTlmMTcyNGZjOWY1NWU4OGE4OTFkMmMxNGI2ZTZiMzE0MjBj
10
- ZjU3NWRkYjc0NWZlNTE4NGI1OTljMWQwOTkzMjY4OWRkYjZmNjVmZTExMjZh
11
- YjFmZjA1NDE0MDQ5OTY1MWJjZTZlNzIxMjVhMTdjOTViODEzM2E=
12
- data.tar.gz: !binary |-
13
- OGJkZmIzNTY5ODEwZmIzYmY1M2YzMWZhMTZlNGExOGQ5NzkzNzkyMjhkZTkz
14
- NTAxNjA0YWJkY2EzNjQ4Yjc5NGUxMmY2ZDg4ZDk0ZjUyNDBiZTNlYTg3MGZh
15
- MDA1ODUwN2Q1YzYyYTcwYmE1ZTQxNTkxZmFmMjhmMDU1MjAyNzA=
6
+ metadata.gz: 56ce0cf0db44b712042d33e6ff8189fc09392d0af0692332b861027f24d9ec6ae20f3e1d46552a2b000124502039170918a29ddf797d6c61d53a4a0b0d633e0c
7
+ data.tar.gz: f7a2e63ccd82d779d98daab4a688a4a2189be7f2fe63a91dbad88a62de8733d9134196723a9c6c09613b8b931967ef8962f3c921025ca7a8e95994c4c982c5e6
data/README.md CHANGED
@@ -85,6 +85,14 @@ If you have more questions about how it works, look at the code or contact us.
85
85
 
86
86
  Note that if you used versions below `0.4.0` of this gem, the naming and contents of the split files have changed. Split files no longer need to have the `.split2` extension and now use the `require` directive rather than the `include` directive. The previous prohibition against using `require_tree .` and `require_self` directives also no longer applies. For more details see the [CHANGELOG.md](CHANGELOG.md#040)
87
87
 
88
+ #### Empty *_split2.css file
89
+
90
+ Since 0.4.1 in development split stylesheets have `debug: false` option by default. This prevents the empty `*_split2.css` file issue. You can always explicitly go one way or the other setting `debug` option directly in the `split_stylesheet_link_tag` like this:
91
+
92
+ ```
93
+ <%= split_stylesheet_link_tag "application", debug: false %>
94
+ ```
95
+
88
96
  ## Credits & License
89
97
 
90
98
  This is a joint project by the two German Rails shops [Zweitag](http://zweitag.de) and [Railslove](http://railslove.com), therefore the GitHub name "Zweilove".
@@ -6,7 +6,11 @@ module CssSplitter
6
6
 
7
7
  sources.map do |source|
8
8
  split_sources = (2..split_count).map { |index| "#{source}_split#{index}" }
9
- split_sources << options
9
+ split_options = options.dup
10
+ if Rails.env == 'development' && !split_options.key?(:debug)
11
+ split_options[:debug] = false
12
+ end
13
+ split_sources << split_options
10
14
 
11
15
  [
12
16
  stylesheet_link_tag(source, options),
@@ -17,4 +21,4 @@ module CssSplitter
17
21
  end.flatten.join("\n").html_safe
18
22
  end
19
23
  end
20
- end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module CssSplitter
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  <%= stylesheet_link_tag "application", :media => "all" %>
7
7
 
8
- <%= split_stylesheet_link_tag "too_big_stylesheet", :media => "all" %>
8
+ <%= split_stylesheet_link_tag "too_big_stylesheet", :media => "all", :debug => true %>
9
9
 
10
10
  <%= csrf_meta_tags %>
11
11
  </head>
@@ -682,3 +682,84 @@ CssSplitter::ApplicationHelperTest: test_should_work_with_options_and_multiple_s
682
682
  ----------------------------------------------------------------------------
683
683
  CssSplitter::ApplicationHelperTest: test_should_work_with_split_count_option
684
684
  ----------------------------------------------------------------------------
685
+ --------------------------------------
686
+ CssSplitterTest: test_#count_selectors
687
+ --------------------------------------
688
+ ----------------------------------------------
689
+ CssSplitterTest: test_#count_selectors_of_rule
690
+ ----------------------------------------------
691
+ ---------------------------------------------------
692
+ CssSplitterTest: test_#extract_charset_with_charset
693
+ ---------------------------------------------------
694
+ ------------------------------------------------------
695
+ CssSplitterTest: test_#extract_charset_with_no_charset
696
+ ------------------------------------------------------
697
+ -----------------------------------------------------
698
+ CssSplitterTest: test_#extract_media_with_media_block
699
+ -----------------------------------------------------
700
+ --------------------------------------------------------
701
+ CssSplitterTest: test_#extract_media_with_no_media_block
702
+ --------------------------------------------------------
703
+ ----------------------------------------------
704
+ CssSplitterTest: test_#split_string_into_rules
705
+ ----------------------------------------------
706
+ -----------------------------------------------------------------------
707
+ CssSplitterTest: test_#split_string_into_rules_containing_media_queries
708
+ -----------------------------------------------------------------------
709
+ ---------------------------------------------------------------------
710
+ CssSplitterTest: test_#split_string_into_rules_for_multiline_comments
711
+ ---------------------------------------------------------------------
712
+ -----------------------------------------------------------------------
713
+ CssSplitterTest: test_#split_string_into_rules_for_single_line_comments
714
+ -----------------------------------------------------------------------
715
+ -----------------------------------------------------------------------------------------
716
+ CssSplitterTest: test_#split_string_into_rules_for_strings_with_protocol_independent_urls
717
+ -----------------------------------------------------------------------------------------
718
+ -----------------------------------------------------------
719
+ CssSplitterTest: test_#split_string_to_get_the_second_split
720
+ -----------------------------------------------------------
721
+ -------------------------------------------------------------------------------
722
+ CssSplitterTest: test_#split_string_where_the_media_part_comes_before_the_split
723
+ -------------------------------------------------------------------------------
724
+ ----------------------------------------------------------------------------------------------------------------------------------------------------------
725
+ CssSplitterTest: 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
726
+ ----------------------------------------------------------------------------------------------------------------------------------------------------------
727
+ --------------------------------------------------------------------------------------------------------------------
728
+ CssSplitterTest: test_#split_string_where_the_media_part_would_overlap_the_split,_no_rules_in_media_before_the_split
729
+ --------------------------------------------------------------------------------------------------------------------
730
+ ----------------------------------------------------------------------------------------------------------------------
731
+ CssSplitterTest: test_#split_string_where_the_media_part_would_overlap_the_split,_with_rules_in_media_before_the_split
732
+ ----------------------------------------------------------------------------------------------------------------------
733
+ -----------------------------------------------------------------
734
+ CssSplitterTest: test_#strip_comments:_strip_multiline_CSS_coment
735
+ -----------------------------------------------------------------
736
+ -------------------------------------------------------------------
737
+ CssSplitterTest: test_#strip_comments:_strip_single_line_CSS_coment
738
+ -------------------------------------------------------------------
739
+ ---------------------------------------------------------
740
+ CssSplitterTest: test_asset_pipeline_stylesheet_splitting
741
+ ---------------------------------------------------------
742
+ -----------------------------------------------------------------------------------------------
743
+ CssSplitterTest: test_asset_pipeline_stylesheet_splitting_on_stylesheet_combined_using_requires
744
+ -----------------------------------------------------------------------------------------------
745
+ ---------------------------
746
+ CssSplitterTest: test_truth
747
+ ---------------------------
748
+ ------------------------------------------------------------------
749
+ CssSplitter::ApplicationHelperTest: test_should_work_w/out_options
750
+ ------------------------------------------------------------------
751
+ ------------------------------------------------------------------------------------------
752
+ CssSplitter::ApplicationHelperTest: test_should_work_with_options_and_multiple_stylesheets
753
+ ------------------------------------------------------------------------------------------
754
+ ----------------------------------------------------------------------------
755
+ CssSplitter::ApplicationHelperTest: test_should_work_with_split_count_option
756
+ ----------------------------------------------------------------------------
757
+ -------------------------------------------------------------------------------------------
758
+ CssSplitter::ApplicationHelperTest::RailsEnvDefault: test_should_default_to_false_on_splits
759
+ -------------------------------------------------------------------------------------------
760
+ -----------------------------------------------------------------------------------------------
761
+ CssSplitter::ApplicationHelperTest::RailsEnvDefault: test_should_respect_the_debug=false_option
762
+ -----------------------------------------------------------------------------------------------
763
+ ----------------------------------------------------------------------------------------------
764
+ CssSplitter::ApplicationHelperTest::RailsEnvDefault: test_should_respect_the_debug=true_option
765
+ ----------------------------------------------------------------------------------------------
@@ -18,5 +18,28 @@ module CssSplitter
18
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
19
19
  end
20
20
 
21
+ class RailsEnvDefault < ActionView::TestCase
22
+ setup do
23
+ Rails.env = 'development'
24
+ end
25
+
26
+ teardown do
27
+ Rails.env = 'test'
28
+ end
29
+
30
+ test "should default to false on splits" do
31
+ output = split_stylesheet_link_tag("too_big_stylesheet")
32
+ assert_equal "<link href=\"/stylesheets/too_big_stylesheet.css\" media=\"screen\" rel=\"stylesheet\" />\n<!--[if lte IE 9]>\n<link debug=\"false\" href=\"/stylesheets/too_big_stylesheet_split2.css\" media=\"screen\" rel=\"stylesheet\" />\n<![endif]-->", output
33
+ end
34
+
35
+ test "should respect the debug=true option" do
36
+ output = split_stylesheet_link_tag("too_big_stylesheet", debug: true)
37
+ assert_equal "<link debug=\"true\" href=\"/stylesheets/too_big_stylesheet.css\" media=\"screen\" rel=\"stylesheet\" />\n<!--[if lte IE 9]>\n<link debug=\"true\" href=\"/stylesheets/too_big_stylesheet_split2.css\" media=\"screen\" rel=\"stylesheet\" />\n<![endif]-->", output
38
+ end
39
+ test "should respect the debug=false option" do
40
+ output = split_stylesheet_link_tag("too_big_stylesheet", debug: false)
41
+ assert_equal "<link debug=\"false\" href=\"/stylesheets/too_big_stylesheet.css\" media=\"screen\" rel=\"stylesheet\" />\n<!--[if lte IE 9]>\n<link debug=\"false\" href=\"/stylesheets/too_big_stylesheet_split2.css\" media=\"screen\" rel=\"stylesheet\" />\n<![endif]-->", output
42
+ end
43
+ end
21
44
  end
22
45
  end
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Peters
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-04 00:00:00.000000000 Z
12
+ date: 2015-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 2.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 2.0.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rails
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '3.1'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3.1'
42
42
  description: Gem for splitting up stylesheets that go beyond the IE limit of 4095
@@ -48,96 +48,68 @@ executables: []
48
48
  extensions: []
49
49
  extra_rdoc_files: []
50
50
  files:
51
+ - MIT-LICENSE
52
+ - README.md
53
+ - Rakefile
51
54
  - app/helpers/css_splitter/application_helper.rb
52
55
  - config/routes.rb
53
- - lib/css_splitter/version.rb
54
- - lib/css_splitter/splitter.rb
56
+ - lib/css_splitter.rb
55
57
  - lib/css_splitter/engine.rb
58
+ - lib/css_splitter/splitter.rb
56
59
  - lib/css_splitter/sprockets_engine.rb
57
- - lib/css_splitter.rb
60
+ - lib/css_splitter/version.rb
58
61
  - lib/tasks/css_splitter_tasks.rake
59
- - MIT-LICENSE
60
- - Rakefile
61
- - README.md
62
- - test/unit/splitter_test.rb
63
- - test/unit/too_many_selectors.css
64
- - test/unit/helpers/css_splitter/application_helper_test.rb
65
- - test/dummy/log/test.log
66
- - test/dummy/log/development.log
67
- - test/dummy/log/production.log
62
+ - test/css_splitter_test.rb
68
63
  - test/dummy/README.rdoc
69
- - test/dummy/app/views/tests/test.html.erb
70
- - test/dummy/app/views/layouts/application.html.erb
71
- - test/dummy/app/controllers/tests_controller.rb
72
- - test/dummy/app/controllers/application_controller.rb
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
64
+ - test/dummy/Rakefile
65
+ - test/dummy/app/assets/stylesheets/application.css
77
66
  - test/dummy/app/assets/stylesheets/combined.css.scss
67
+ - test/dummy/app/assets/stylesheets/combined_split2.css
68
+ - test/dummy/app/assets/stylesheets/erb_stylesheet.css.scss.erb
78
69
  - test/dummy/app/assets/stylesheets/erb_stylesheet_split2.css
79
- - test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries.css
80
- - test/dummy/app/assets/stylesheets/application.css
70
+ - test/dummy/app/assets/stylesheets/erb_stylesheet_split3.css
81
71
  - test/dummy/app/assets/stylesheets/green_max.css.scss.erb
82
72
  - test/dummy/app/assets/stylesheets/red_100.css.scss.erb
73
+ - test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries.css
74
+ - test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries_split2.css
83
75
  - test/dummy/app/assets/stylesheets/too_big_stylesheet.css.scss
84
- - test/dummy/app/assets/stylesheets/erb_stylesheet.css.scss.erb
85
- - test/dummy/tmp/cache/sass/b9e4830c729ae51788f53a4d25e9a2159c4d6897/too_big_stylesheet.css.scssc
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
114
- - test/dummy/db/development.sqlite3
115
- - test/dummy/db/test.sqlite3
116
- - test/dummy/script/rails
117
- - test/dummy/Rakefile
118
- - test/dummy/public/404.html
119
- - test/dummy/public/favicon.ico
120
- - test/dummy/public/500.html
121
- - test/dummy/public/422.html
76
+ - test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css
77
+ - test/dummy/app/controllers/application_controller.rb
78
+ - test/dummy/app/controllers/tests_controller.rb
79
+ - test/dummy/app/views/layouts/application.html.erb
80
+ - test/dummy/app/views/tests/test.html.erb
122
81
  - test/dummy/config.ru
123
- - test/dummy/config/locales/en.yml
82
+ - test/dummy/config/application.rb
124
83
  - test/dummy/config/boot.rb
125
84
  - test/dummy/config/database.yml
126
85
  - test/dummy/config/environment.rb
127
86
  - test/dummy/config/environments/development.rb
128
87
  - test/dummy/config/environments/production.rb
129
88
  - test/dummy/config/environments/test.rb
130
- - test/dummy/config/routes.rb
131
- - test/dummy/config/initializers/wrap_parameters.rb
132
- - test/dummy/config/initializers/secret_token.rb
89
+ - test/dummy/config/initializers/backtrace_silencers.rb
133
90
  - test/dummy/config/initializers/inflections.rb
134
- - test/dummy/config/initializers/session_store.rb
135
91
  - test/dummy/config/initializers/mime_types.rb
136
- - test/dummy/config/initializers/backtrace_silencers.rb
137
- - test/dummy/config/application.rb
138
- - test/test_helper.rb
92
+ - test/dummy/config/initializers/secret_token.rb
93
+ - test/dummy/config/initializers/session_store.rb
94
+ - test/dummy/config/initializers/wrap_parameters.rb
95
+ - test/dummy/config/locales/en.yml
96
+ - test/dummy/config/routes.rb
97
+ - test/dummy/db/development.sqlite3
98
+ - test/dummy/db/test.sqlite3
99
+ - test/dummy/log/development.log
100
+ - test/dummy/log/production.log
101
+ - test/dummy/log/test.log
102
+ - test/dummy/public/404.html
103
+ - test/dummy/public/422.html
104
+ - test/dummy/public/500.html
105
+ - test/dummy/public/favicon.ico
106
+ - test/dummy/script/rails
107
+ - test/dummy/tmp/cache/sass/b9e4830c729ae51788f53a4d25e9a2159c4d6897/too_big_stylesheet.css.scssc
139
108
  - test/integration/navigation_test.rb
140
- - test/css_splitter_test.rb
109
+ - test/test_helper.rb
110
+ - test/unit/helpers/css_splitter/application_helper_test.rb
111
+ - test/unit/splitter_test.rb
112
+ - test/unit/too_many_selectors.css
141
113
  homepage: https://github.com/zweilove/css_splitter
142
114
  licenses:
143
115
  - MIT
@@ -148,17 +120,17 @@ require_paths:
148
120
  - lib
149
121
  required_ruby_version: !ruby/object:Gem::Requirement
150
122
  requirements:
151
- - - ! '>='
123
+ - - ">="
152
124
  - !ruby/object:Gem::Version
153
125
  version: '0'
154
126
  required_rubygems_version: !ruby/object:Gem::Requirement
155
127
  requirements:
156
- - - ! '>='
128
+ - - ">="
157
129
  - !ruby/object:Gem::Version
158
130
  version: '0'
159
131
  requirements: []
160
132
  rubyforge_project:
161
- rubygems_version: 2.1.9
133
+ rubygems_version: 2.2.2
162
134
  signing_key:
163
135
  specification_version: 4
164
136
  summary: CSS stylesheet splitter for Rails
@@ -187,34 +159,6 @@ test_files:
187
159
  - test/dummy/app/assets/stylesheets/too_big_stylesheet.css.scss
188
160
  - test/dummy/app/assets/stylesheets/erb_stylesheet.css.scss.erb
189
161
  - test/dummy/tmp/cache/sass/b9e4830c729ae51788f53a4d25e9a2159c4d6897/too_big_stylesheet.css.scssc
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
218
162
  - test/dummy/db/development.sqlite3
219
163
  - test/dummy/db/test.sqlite3
220
164
  - test/dummy/script/rails