css_splitter 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +28 -54
  3. data/app/helpers/css_splitter/application_helper.rb +12 -10
  4. data/lib/css_splitter.rb +1 -1
  5. data/lib/css_splitter/engine.rb +1 -1
  6. data/lib/css_splitter/splitter.rb +34 -1
  7. data/lib/css_splitter/sprockets_engine.rb +7 -3
  8. data/lib/css_splitter/version.rb +1 -1
  9. data/test/css_splitter_test.rb +34 -0
  10. data/test/dummy/app/assets/stylesheets/combined.css.scss +4 -0
  11. data/test/dummy/app/assets/stylesheets/combined_split2.css +3 -0
  12. data/test/dummy/app/assets/stylesheets/erb_stylesheet.css.scss.erb +7 -0
  13. data/test/dummy/app/assets/stylesheets/erb_stylesheet_split2.css +3 -0
  14. data/test/dummy/app/assets/stylesheets/erb_stylesheet_split3.css +3 -0
  15. data/test/dummy/app/assets/stylesheets/green_max.css.scss.erb +3 -0
  16. data/test/dummy/app/assets/stylesheets/red_100.css.scss.erb +3 -0
  17. data/test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries_split2.css +3 -0
  18. data/test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css +3 -0
  19. data/test/dummy/config/application.rb +0 -1
  20. data/test/dummy/config/environments/development.rb +2 -0
  21. data/test/dummy/config/environments/production.rb +2 -0
  22. data/test/dummy/config/environments/test.rb +2 -0
  23. data/test/dummy/log/production.log +0 -0
  24. data/test/dummy/log/test.log +588 -0
  25. data/test/dummy/tmp/cache/assets/{D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 → development/sprockets/13fe41fee1fe35b49d145bcc06610705} +0 -0
  26. data/test/dummy/tmp/cache/assets/{CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 → development/sprockets/357970feca3ac29060c1e3861e2c0953} +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  28. data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/combined.css.scssc +0 -0
  29. data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/green_max.css.scss.erbc +0 -0
  30. data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/red_100.css.scss.erbc +0 -0
  31. data/test/dummy/tmp/cache/assets/production/sass/b18a7747d943dd020c4bfdf3754c527fa8524b5b/too_big_stylesheet.css.scssc +0 -0
  32. data/test/dummy/tmp/cache/assets/production/sprockets/0830b343f8968ec4aa8370f868668248 +0 -0
  33. data/test/dummy/tmp/cache/assets/production/sprockets/0b721c131ad2142b39a1947ba7186369 +0 -0
  34. data/test/dummy/tmp/cache/assets/production/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  35. data/test/dummy/tmp/cache/assets/production/sprockets/22a5a1651eda39579a0ac9ed19894730 +0 -0
  36. data/test/dummy/tmp/cache/assets/production/sprockets/32bab925c6af34ffea7c025aa09d511a +0 -0
  37. data/test/dummy/tmp/cache/assets/production/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  38. data/test/dummy/tmp/cache/assets/production/sprockets/39fd278352b772e098112f7f25f70cad +0 -0
  39. data/test/dummy/tmp/cache/assets/production/sprockets/48279a0d3bfb1252abd9c35c097c5994 +0 -0
  40. data/test/dummy/tmp/cache/assets/production/sprockets/5964a02e2bf7bc79ebffb414bfb6df5c +0 -0
  41. data/test/dummy/tmp/cache/assets/production/sprockets/5c364cce43467cca51d7fee41b38b8d2 +0 -0
  42. data/test/dummy/tmp/cache/assets/production/sprockets/6403010c1ca0cb17615027724c2101f4 +0 -0
  43. data/test/dummy/tmp/cache/assets/production/sprockets/7808b3f4a805cc4644882be056088fd5 +0 -0
  44. data/test/dummy/tmp/cache/assets/production/sprockets/7f49d72527d04af68b22828bfd93a487 +0 -0
  45. data/test/dummy/tmp/cache/assets/production/sprockets/bcf8e6c3b8d95af1ea2fbb57c3429158 +0 -0
  46. data/test/dummy/tmp/cache/assets/production/sprockets/c5701cb90862b1e1da20a31c93180ff8 +0 -0
  47. data/test/dummy/tmp/cache/assets/production/sprockets/c9750dd5995631096c42e0ee2b08bdc2 +0 -0
  48. data/test/dummy/tmp/cache/assets/production/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  49. data/test/dummy/tmp/cache/assets/production/sprockets/de6e0c2b56f11be6215058985f78fc22 +0 -0
  50. data/test/dummy/tmp/cache/assets/production/sprockets/e5609c41f6effb12ebf399a01337457e +0 -0
  51. data/test/dummy/tmp/cache/assets/production/sprockets/e731ba9557bf61573ac4f38a4648a45e +0 -0
  52. data/test/dummy/tmp/cache/assets/production/sprockets/e91e9a9bbc721b2440323fdf67823613 +0 -0
  53. data/test/unit/helpers/css_splitter/application_helper_test.rb +7 -2
  54. data/test/unit/splitter_test.rb +131 -1
  55. metadata +93 -31
  56. data/test/dummy/app/assets/stylesheets/test_stylesheet_with_media_queries_split2.css.split2 +0 -1
  57. data/test/dummy/app/assets/stylesheets/too_big_stylesheet_split2.css.split2 +0 -1
  58. data/test/dummy/tmp/cache/assets/CFB/3F0/sprockets%2Fc5701cb90862b1e1da20a31c93180ff8 +0 -0
  59. data/test/dummy/tmp/cache/assets/CFC/990/sprockets%2F87aeb2d2c5f12012d6d908b3a3466b12 +0 -0
  60. data/test/dummy/tmp/cache/assets/D22/590/sprockets%2F24c1f9d49cd8543f25bf82d365da6939 +0 -0
  61. data/test/dummy/tmp/cache/assets/D23/170/sprockets%2F45f2cb247bdf9a5c97748e3f0897822a +0 -0
  62. data/test/dummy/tmp/cache/assets/D35/500/sprockets%2F45b349f1b8c8016ce45eac3aa5e63531 +0 -0
  63. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  64. data/test/dummy/tmp/cache/assets/D90/C40/sprockets%2F016dcd02588d8f6f1625aace5e41aa1c +0 -0
  65. data/test/dummy/tmp/cache/assets/D9E/DF0/sprockets%2F5c364cce43467cca51d7fee41b38b8d2 +0 -0
  66. data/test/dummy/tmp/cache/assets/DB7/EE0/sprockets%2F32bab925c6af34ffea7c025aa09d511a +0 -0
  67. data/test/dummy/tmp/cache/assets/E86/410/sprockets%2Fcedb11a422be3ba8fef2da27df4f87fb +0 -0