crass 0.0.2 → 0.1.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/.gitignore +1 -0
- data/HISTORY.md +28 -1
- data/README.md +30 -9
- data/crass.gemspec +2 -2
- data/lib/crass.rb +8 -0
- data/lib/crass/parser.rb +125 -60
- data/lib/crass/scanner.rb +32 -34
- data/lib/crass/tokenizer.rb +159 -140
- data/lib/crass/version.rb +1 -1
- data/test/shared/parse_rules.rb +345 -0
- data/test/support/common.rb +20 -0
- data/test/test_crass.rb +17 -2
- data/test/test_parse_properties.rb +175 -0
- data/test/test_parse_rules.rb +69 -0
- data/test/test_parse_stylesheet.rb +27 -351
- data/test/test_serialization.rb +3 -1
- data/test/test_tokenizer.rb +1562 -0
- metadata +12 -5
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Grove
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -38,8 +38,7 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 10.1.0
|
41
|
-
description: Crass is a pure Ruby CSS parser based on the CSS Syntax
|
42
|
-
3 draft.
|
41
|
+
description: Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 draft.
|
43
42
|
email:
|
44
43
|
- ryan@wonko.com
|
45
44
|
executables: []
|
@@ -61,13 +60,17 @@ files:
|
|
61
60
|
- lib/crass/token-scanner.rb
|
62
61
|
- lib/crass/tokenizer.rb
|
63
62
|
- lib/crass/version.rb
|
63
|
+
- test/shared/parse_rules.rb
|
64
64
|
- test/support/common.rb
|
65
65
|
- test/support/serialization/bootstrap-theme.css
|
66
66
|
- test/support/serialization/bootstrap.css
|
67
67
|
- test/support/serialization/pure.css
|
68
68
|
- test/test_crass.rb
|
69
|
+
- test/test_parse_properties.rb
|
70
|
+
- test/test_parse_rules.rb
|
69
71
|
- test/test_parse_stylesheet.rb
|
70
72
|
- test/test_serialization.rb
|
73
|
+
- test/test_tokenizer.rb
|
71
74
|
homepage: https://github.com/rgrove/crass/
|
72
75
|
licenses:
|
73
76
|
- MIT
|
@@ -91,13 +94,17 @@ rubyforge_project:
|
|
91
94
|
rubygems_version: 2.1.3
|
92
95
|
signing_key:
|
93
96
|
specification_version: 4
|
94
|
-
summary: CSS parser based on the CSS Syntax
|
97
|
+
summary: CSS parser based on the CSS Syntax Level 3 draft.
|
95
98
|
test_files:
|
99
|
+
- test/shared/parse_rules.rb
|
96
100
|
- test/support/common.rb
|
97
101
|
- test/support/serialization/bootstrap-theme.css
|
98
102
|
- test/support/serialization/bootstrap.css
|
99
103
|
- test/support/serialization/pure.css
|
100
104
|
- test/test_crass.rb
|
105
|
+
- test/test_parse_properties.rb
|
106
|
+
- test/test_parse_rules.rb
|
101
107
|
- test/test_parse_stylesheet.rb
|
102
108
|
- test/test_serialization.rb
|
109
|
+
- test/test_tokenizer.rb
|
103
110
|
has_rdoc:
|