color_parser 0.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/Gemfile +0 -2
- data/Guardfile +9 -0
- data/README.md +17 -26
- data/Rakefile +18 -6
- data/color_parser.gemspec +10 -2
- data/lib/color_parser.rb +3 -134
- data/lib/color_parser/errors.rb +3 -0
- data/lib/color_parser/page.rb +14 -57
- data/lib/color_parser/stylesheet.rb +27 -123
- data/lib/color_parser/version.rb +1 -1
- data/{test → spec}/fixtures/css_color/frequency.html +0 -0
- data/{test → spec}/fixtures/css_color/stylesheets/color_styles.css +7 -7
- data/{test → spec}/fixtures/css_color/stylesheets/css_elements.css +0 -0
- data/{test → spec}/fixtures/css_color/stylesheets/frequency.css +9 -9
- data/{test → spec}/fixtures/css_color/stylesheets/imported_selectors.css +0 -0
- data/{test → spec}/fixtures/css_color/stylesheets/properties.css +0 -0
- data/spec/page_spec.rb +39 -0
- data/spec/spec_helper.rb +10 -0
- data/{test/test_request.rb → spec/stubs/fake_request.rb} +2 -2
- data/spec/stylesheet_spec.rb +125 -0
- data/spec/version_spec.rb +9 -0
- metadata +114 -123
- data/lib/color_parser/image.rb +0 -20
- data/test/color_parser_test.rb +0 -83
- data/test/fixtures/css/absolute.html +0 -15
- data/test/fixtures/css/inline.html +0 -34
- data/test/fixtures/css/inline_import.html +0 -16
- data/test/fixtures/css/invalid.html +0 -15
- data/test/fixtures/css/relative.html +0 -15
- data/test/fixtures/css/relative_root.html +0 -15
- data/test/fixtures/css/stylesheets/colors.css +0 -0
- data/test/fixtures/css/stylesheets/fonts.css +0 -0
- data/test/fixtures/css/stylesheets/print.css +0 -3
- data/test/fixtures/css/stylesheets/screen.css +0 -16
- data/test/fixtures/css_images/images/apple.png +0 -0
- data/test/fixtures/css_images/images/cantaloupe.png +0 -0
- data/test/fixtures/css_images/images/kiwi.jpg +0 -0
- data/test/fixtures/css_images/images/mango.png +0 -0
- data/test/fixtures/css_images/images/pineapple.png +0 -0
- data/test/fixtures/css_images/paths.html +0 -14
- data/test/fixtures/css_images/stylesheets/import_paths.css +0 -4
- data/test/fixtures/css_images/stylesheets/paths.css +0 -17
- data/test/fixtures/css_images/stylesheets/quotes.css +0 -14
- data/test/fixtures/css_import/index.html +0 -15
- data/test/fixtures/css_import/stylesheets/borders.css +0 -0
- data/test/fixtures/css_import/stylesheets/colors.css +0 -0
- data/test/fixtures/css_import/stylesheets/fonts.css +0 -3
- data/test/fixtures/css_import/stylesheets/ie.css +0 -3
- data/test/fixtures/css_import/stylesheets/images.css +0 -0
- data/test/fixtures/css_import/stylesheets/master.css +0 -12
- data/test/fixtures/css_import/stylesheets/print.css +0 -3
- data/test/fixtures/css_import/stylesheets/screen.css +0 -12
- data/test/fixtures/inline_images/absolute.html +0 -14
- data/test/fixtures/inline_images/images/apple.png +0 -0
- data/test/fixtures/inline_images/images/kiwi.jpg +0 -0
- data/test/fixtures/inline_images/relative.html +0 -14
- data/test/fixtures/inline_images/relative_root.html +0 -14
- data/test/image_test.rb +0 -27
- data/test/page_test.rb +0 -194
- data/test/stylesheet_test.rb +0 -257
- data/test/test_helper.rb +0 -6
- data/test/version_test.rb +0 -7
data/test/test_helper.rb
DELETED