├── .github └── workflows │ └── tests.yml ├── .gitignore ├── .yardopts ├── Gemfile ├── HISTORY.md ├── LICENSE ├── README.md ├── Rakefile ├── crass.gemspec ├── lib ├── crass.rb └── crass │ ├── parser.rb │ ├── scanner.rb │ ├── token-scanner.rb │ ├── tokenizer.rb │ └── version.rb └── test ├── css-parsing-tests ├── An+B.json ├── LICENSE ├── README.rst ├── color3.json ├── color3_hsl.json ├── color3_keywords.json ├── component_value_list.json ├── declaration_list.json ├── make_color3_hsl.py ├── make_color3_keywords.py ├── one_component_value.json ├── one_declaration.json ├── one_rule.json ├── rule_list.json ├── stylesheet.json └── stylesheet_bytes.json ├── shared └── parse_rules.rb ├── support ├── common.rb └── serialization │ ├── animate.css │ ├── bootstrap-theme.css │ ├── bootstrap.css │ ├── html5-boilerplate.css │ ├── misc.css │ └── pure.css ├── test_crass.rb ├── test_css_parsing_tests.rb ├── test_parse_properties.rb ├── test_parse_rules.rb ├── test_parse_stylesheet.rb └── test_serialization.rb /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/.gitignore -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/.yardopts -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/Gemfile -------------------------------------------------------------------------------- /HISTORY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/HISTORY.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/Rakefile -------------------------------------------------------------------------------- /crass.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/crass.gemspec -------------------------------------------------------------------------------- /lib/crass.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/lib/crass.rb -------------------------------------------------------------------------------- /lib/crass/parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/lib/crass/parser.rb -------------------------------------------------------------------------------- /lib/crass/scanner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/lib/crass/scanner.rb -------------------------------------------------------------------------------- /lib/crass/token-scanner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/lib/crass/token-scanner.rb -------------------------------------------------------------------------------- /lib/crass/tokenizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/lib/crass/tokenizer.rb -------------------------------------------------------------------------------- /lib/crass/version.rb: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | 3 | module Crass 4 | VERSION = '1.0.6' 5 | end 6 | -------------------------------------------------------------------------------- /test/css-parsing-tests/An+B.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/An+B.json -------------------------------------------------------------------------------- /test/css-parsing-tests/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/LICENSE -------------------------------------------------------------------------------- /test/css-parsing-tests/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/README.rst -------------------------------------------------------------------------------- /test/css-parsing-tests/color3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/color3.json -------------------------------------------------------------------------------- /test/css-parsing-tests/color3_hsl.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/color3_hsl.json -------------------------------------------------------------------------------- /test/css-parsing-tests/color3_keywords.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/color3_keywords.json -------------------------------------------------------------------------------- /test/css-parsing-tests/component_value_list.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/component_value_list.json -------------------------------------------------------------------------------- /test/css-parsing-tests/declaration_list.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/declaration_list.json -------------------------------------------------------------------------------- /test/css-parsing-tests/make_color3_hsl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/make_color3_hsl.py -------------------------------------------------------------------------------- /test/css-parsing-tests/make_color3_keywords.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/make_color3_keywords.py -------------------------------------------------------------------------------- /test/css-parsing-tests/one_component_value.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/one_component_value.json -------------------------------------------------------------------------------- /test/css-parsing-tests/one_declaration.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/one_declaration.json -------------------------------------------------------------------------------- /test/css-parsing-tests/one_rule.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/one_rule.json -------------------------------------------------------------------------------- /test/css-parsing-tests/rule_list.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/rule_list.json -------------------------------------------------------------------------------- /test/css-parsing-tests/stylesheet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/stylesheet.json -------------------------------------------------------------------------------- /test/css-parsing-tests/stylesheet_bytes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/css-parsing-tests/stylesheet_bytes.json -------------------------------------------------------------------------------- /test/shared/parse_rules.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/shared/parse_rules.rb -------------------------------------------------------------------------------- /test/support/common.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/support/common.rb -------------------------------------------------------------------------------- /test/support/serialization/animate.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/support/serialization/animate.css -------------------------------------------------------------------------------- /test/support/serialization/bootstrap-theme.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/support/serialization/bootstrap-theme.css -------------------------------------------------------------------------------- /test/support/serialization/bootstrap.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/support/serialization/bootstrap.css -------------------------------------------------------------------------------- /test/support/serialization/html5-boilerplate.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/support/serialization/html5-boilerplate.css -------------------------------------------------------------------------------- /test/support/serialization/misc.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/support/serialization/misc.css -------------------------------------------------------------------------------- /test/support/serialization/pure.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/support/serialization/pure.css -------------------------------------------------------------------------------- /test/test_crass.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/test_crass.rb -------------------------------------------------------------------------------- /test/test_css_parsing_tests.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/test_css_parsing_tests.rb -------------------------------------------------------------------------------- /test/test_parse_properties.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/test_parse_properties.rb -------------------------------------------------------------------------------- /test/test_parse_rules.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/test_parse_rules.rb -------------------------------------------------------------------------------- /test/test_parse_stylesheet.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/test_parse_stylesheet.rb -------------------------------------------------------------------------------- /test/test_serialization.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rgrove/crass/HEAD/test/test_serialization.rb --------------------------------------------------------------------------------