poe-css 0.0.1
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 +7 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +186 -0
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +85 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +105 -0
- data/LICENSE.txt +22 -0
- data/README.md +275 -0
- data/Rakefile +10 -0
- data/bin/poe-css +14 -0
- data/demo/Gemfile +11 -0
- data/demo/Gemfile.lock +45 -0
- data/demo/app.rb +21 -0
- data/demo/views/index.haml +105 -0
- data/lib/dependencies.rb +11 -0
- data/lib/poe-css.rb +253 -0
- data/lib/poe-css/generator.rb +108 -0
- data/lib/poe-css/parser.rb +177 -0
- data/lib/poe-css/preprocessor.rb +186 -0
- data/lib/poe-css/simplifier.rb +201 -0
- data/lib/poe-css/version.rb +5 -0
- data/poe-css.gemspec +32 -0
- data/tests/poecss/all-clauses-1.output +23 -0
- data/tests/poecss/all-clauses-1.poecss +24 -0
- data/tests/poecss/alternation-1.output +8 -0
- data/tests/poecss/alternation-1.poecss +4 -0
- data/tests/poecss/nesting-1.output +8 -0
- data/tests/poecss/nesting-1.poecss +8 -0
- data/tests/poecss/nesting-2.output +30 -0
- data/tests/poecss/nesting-2.poecss +23 -0
- data/tests/poecss/nesting-3.output +15 -0
- data/tests/poecss/nesting-3.poecss +15 -0
- data/tests/poecss/nesting-4.output +14 -0
- data/tests/poecss/nesting-4.poecss +13 -0
- data/tests/poecss/performance-1.output +3 -0
- data/tests/poecss/performance-1.poecss +59 -0
- data/tests/poecss/performance-2.output +60 -0
- data/tests/poecss/performance-2.poecss +75 -0
- data/tests/poecss/rule-ordering-1.output +25 -0
- data/tests/poecss/rule-ordering-1.poecss +30 -0
- data/tests/poecss/rule-ordering-2.output +3 -0
- data/tests/poecss/rule-ordering-2.poecss +29 -0
- data/tests/poecss/rule-ordering-3.output +30 -0
- data/tests/poecss/rule-ordering-3.poecss +29 -0
- data/tests/poecss/rule-ordering-4.output +20 -0
- data/tests/poecss/rule-ordering-4.poecss +30 -0
- data/tests/poecss/rule-ordering-5.output +8 -0
- data/tests/poecss/rule-ordering-5.poecss +9 -0
- data/tests/poecss/rule-ordering-6.output +7 -0
- data/tests/poecss/rule-ordering-6.poecss +14 -0
- data/tests/poecss/simple-1.output +7 -0
- data/tests/poecss/simple-1.poecss +8 -0
- data/tests/poecss/simplification-1.output +6 -0
- data/tests/poecss/simplification-1.poecss +7 -0
- data/tests/poecss/simplification-2.output +6 -0
- data/tests/poecss/simplification-2.poecss +8 -0
- data/tests/poecss/simplification-3.output +2 -0
- data/tests/poecss/simplification-3.poecss +3 -0
- data/tests/poecss/simplification-4.output +3 -0
- data/tests/poecss/simplification-4.poecss +4 -0
- data/tests/poecss/simplification-5.output +3 -0
- data/tests/poecss/simplification-5.poecss +8 -0
- data/tests/poecss/simplification-6.output +2 -0
- data/tests/poecss/simplification-6.poecss +4 -0
- data/tests/preprocessor/arity-mismatch-1.error.preprocessor +4 -0
- data/tests/preprocessor/arity-mismatch-2.error.preprocessor +4 -0
- data/tests/preprocessor/complex.output +20 -0
- data/tests/preprocessor/complex.preprocessor +19 -0
- data/tests/preprocessor/empty.output +0 -0
- data/tests/preprocessor/empty.preprocessor +0 -0
- data/tests/preprocessor/macro-newlines.output +5 -0
- data/tests/preprocessor/macro-newlines.preprocessor +9 -0
- data/tests/preprocessor/macro.output +3 -0
- data/tests/preprocessor/macro.preprocessor +7 -0
- data/tests/preprocessor/missing-identifier-1.error.preprocessor +1 -0
- data/tests/preprocessor/missing-identifier-2.error.preprocessor +1 -0
- data/tests/preprocessor/normal-newlines.output +2 -0
- data/tests/preprocessor/normal-newlines.preprocessor +2 -0
- data/tests/preprocessor/parse-error-1.error.preprocessor +1 -0
- data/tests/preprocessor/parse-error-2.error.preprocessor +1 -0
- data/tests/preprocessor/parse-error-3.error.preprocessor +4 -0
- data/tests/preprocessor/simple.output +1 -0
- data/tests/preprocessor/simple.preprocessor +3 -0
- data/tests/run-all-tests.rb +60 -0
- data/tests/unit/simplify-bounds-test.rb +57 -0
- data/tests/unit/stricter-query-test.rb +24 -0
- metadata +292 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
ItemLevel >= 25 {
|
2
|
+
Show
|
3
|
+
}
|
4
|
+
|
5
|
+
ItemLevel >= 25 {
|
6
|
+
Show
|
7
|
+
}
|
8
|
+
|
9
|
+
ItemLevel >= 25 {
|
10
|
+
Show
|
11
|
+
}
|
12
|
+
|
13
|
+
ItemLevel >= 25 {
|
14
|
+
Show
|
15
|
+
}
|
16
|
+
|
17
|
+
ItemLevel >= 25 {
|
18
|
+
Show
|
19
|
+
}
|
20
|
+
|
21
|
+
ItemLevel >= 25 {
|
22
|
+
Show
|
23
|
+
}
|
24
|
+
|
25
|
+
ItemLevel >= 25 {
|
26
|
+
Show
|
27
|
+
}
|
28
|
+
|
29
|
+
ItemLevel >= 25 {
|
30
|
+
Show
|
31
|
+
}
|
32
|
+
|
33
|
+
ItemLevel >= 25 {
|
34
|
+
Show
|
35
|
+
}
|
36
|
+
|
37
|
+
ItemLevel >= 25 {
|
38
|
+
Show
|
39
|
+
}
|
40
|
+
|
41
|
+
ItemLevel >= 25 {
|
42
|
+
Show
|
43
|
+
}
|
44
|
+
|
45
|
+
ItemLevel >= 25 {
|
46
|
+
Show
|
47
|
+
}
|
48
|
+
|
49
|
+
ItemLevel >= 25 {
|
50
|
+
Show
|
51
|
+
}
|
52
|
+
|
53
|
+
ItemLevel >= 25 {
|
54
|
+
Show
|
55
|
+
}
|
56
|
+
|
57
|
+
ItemLevel >= 25 {
|
58
|
+
Show
|
59
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Show
|
2
|
+
ItemLevel >= 39
|
3
|
+
SetFontSize 39
|
4
|
+
|
5
|
+
Show
|
6
|
+
ItemLevel >= 38
|
7
|
+
SetFontSize 38
|
8
|
+
|
9
|
+
Show
|
10
|
+
ItemLevel >= 37
|
11
|
+
SetFontSize 37
|
12
|
+
|
13
|
+
Show
|
14
|
+
ItemLevel >= 36
|
15
|
+
SetFontSize 36
|
16
|
+
|
17
|
+
Show
|
18
|
+
ItemLevel >= 35
|
19
|
+
SetFontSize 35
|
20
|
+
|
21
|
+
Show
|
22
|
+
ItemLevel >= 34
|
23
|
+
SetFontSize 34
|
24
|
+
|
25
|
+
Show
|
26
|
+
ItemLevel >= 33
|
27
|
+
SetFontSize 33
|
28
|
+
|
29
|
+
Show
|
30
|
+
ItemLevel >= 32
|
31
|
+
SetFontSize 32
|
32
|
+
|
33
|
+
Show
|
34
|
+
ItemLevel >= 31
|
35
|
+
SetFontSize 31
|
36
|
+
|
37
|
+
Show
|
38
|
+
ItemLevel >= 30
|
39
|
+
SetFontSize 30
|
40
|
+
|
41
|
+
Show
|
42
|
+
ItemLevel >= 29
|
43
|
+
SetFontSize 29
|
44
|
+
|
45
|
+
Show
|
46
|
+
ItemLevel >= 28
|
47
|
+
SetFontSize 28
|
48
|
+
|
49
|
+
Show
|
50
|
+
ItemLevel >= 27
|
51
|
+
SetFontSize 27
|
52
|
+
|
53
|
+
Show
|
54
|
+
ItemLevel >= 26
|
55
|
+
SetFontSize 26
|
56
|
+
|
57
|
+
Show
|
58
|
+
ItemLevel >= 25
|
59
|
+
SetFontSize 25
|
60
|
+
|
@@ -0,0 +1,75 @@
|
|
1
|
+
ItemLevel >= 25 {
|
2
|
+
Show
|
3
|
+
SetFontSize 25
|
4
|
+
}
|
5
|
+
|
6
|
+
ItemLevel >= 26 {
|
7
|
+
Show
|
8
|
+
SetFontSize 26
|
9
|
+
}
|
10
|
+
|
11
|
+
ItemLevel >= 27 {
|
12
|
+
Show
|
13
|
+
SetFontSize 27
|
14
|
+
}
|
15
|
+
|
16
|
+
ItemLevel >= 28 {
|
17
|
+
Show
|
18
|
+
SetFontSize 28
|
19
|
+
}
|
20
|
+
|
21
|
+
ItemLevel >= 29 {
|
22
|
+
Show
|
23
|
+
SetFontSize 29
|
24
|
+
}
|
25
|
+
|
26
|
+
ItemLevel >= 30 {
|
27
|
+
Show
|
28
|
+
SetFontSize 30
|
29
|
+
}
|
30
|
+
|
31
|
+
ItemLevel >= 31 {
|
32
|
+
Show
|
33
|
+
SetFontSize 31
|
34
|
+
}
|
35
|
+
|
36
|
+
ItemLevel >= 32 {
|
37
|
+
Show
|
38
|
+
SetFontSize 32
|
39
|
+
}
|
40
|
+
|
41
|
+
ItemLevel >= 33 {
|
42
|
+
Show
|
43
|
+
SetFontSize 33
|
44
|
+
}
|
45
|
+
|
46
|
+
ItemLevel >= 34 {
|
47
|
+
Show
|
48
|
+
SetFontSize 34
|
49
|
+
}
|
50
|
+
|
51
|
+
ItemLevel >= 35 {
|
52
|
+
Show
|
53
|
+
SetFontSize 35
|
54
|
+
}
|
55
|
+
|
56
|
+
ItemLevel >= 36 {
|
57
|
+
Show
|
58
|
+
SetFontSize 36
|
59
|
+
}
|
60
|
+
|
61
|
+
ItemLevel >= 37 {
|
62
|
+
Show
|
63
|
+
SetFontSize 37
|
64
|
+
}
|
65
|
+
|
66
|
+
ItemLevel >= 38 {
|
67
|
+
Show
|
68
|
+
SetFontSize 38
|
69
|
+
}
|
70
|
+
|
71
|
+
ItemLevel >= 39 {
|
72
|
+
Show
|
73
|
+
SetFontSize 39
|
74
|
+
}
|
75
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Show
|
2
|
+
ItemLevel >= 39
|
3
|
+
Rarity = Unique
|
4
|
+
PlayAlertSound 1
|
5
|
+
SetFontSize 39
|
6
|
+
|
7
|
+
Show
|
8
|
+
ItemLevel >= 39
|
9
|
+
SetFontSize 39
|
10
|
+
|
11
|
+
Show
|
12
|
+
ItemLevel >= 38
|
13
|
+
SetFontSize 38
|
14
|
+
|
15
|
+
Show
|
16
|
+
ItemLevel >= 37
|
17
|
+
SetFontSize 37
|
18
|
+
|
19
|
+
Show
|
20
|
+
ItemLevel >= 36
|
21
|
+
SetFontSize 36
|
22
|
+
|
23
|
+
Show
|
24
|
+
ItemLevel >= 35
|
25
|
+
SetFontSize 35
|
@@ -0,0 +1,30 @@
|
|
1
|
+
ItemLevel >= 39, Rarity = Unique {
|
2
|
+
Show
|
3
|
+
PlayAlertSound 1
|
4
|
+
}
|
5
|
+
|
6
|
+
ItemLevel >= 35 {
|
7
|
+
Show
|
8
|
+
SetFontSize 35
|
9
|
+
}
|
10
|
+
|
11
|
+
ItemLevel >= 36 {
|
12
|
+
Show
|
13
|
+
SetFontSize 36
|
14
|
+
}
|
15
|
+
|
16
|
+
ItemLevel >= 37 {
|
17
|
+
Show
|
18
|
+
SetFontSize 37
|
19
|
+
}
|
20
|
+
|
21
|
+
ItemLevel >= 38 {
|
22
|
+
Show
|
23
|
+
SetFontSize 38
|
24
|
+
}
|
25
|
+
|
26
|
+
ItemLevel >= 39 {
|
27
|
+
Show
|
28
|
+
SetFontSize 39
|
29
|
+
}
|
30
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
ItemLevel >= 35 {
|
2
|
+
Show
|
3
|
+
SetFontSize 35
|
4
|
+
}
|
5
|
+
|
6
|
+
ItemLevel >= 36 {
|
7
|
+
Show
|
8
|
+
SetFontSize 36
|
9
|
+
}
|
10
|
+
|
11
|
+
ItemLevel >= 37 {
|
12
|
+
Show
|
13
|
+
SetFontSize 37
|
14
|
+
}
|
15
|
+
|
16
|
+
ItemLevel >= 38 {
|
17
|
+
Show
|
18
|
+
SetFontSize 38
|
19
|
+
}
|
20
|
+
|
21
|
+
ItemLevel >= 39 {
|
22
|
+
Show
|
23
|
+
SetFontSize 39
|
24
|
+
}
|
25
|
+
|
26
|
+
ItemLevel >= 35 {
|
27
|
+
Show
|
28
|
+
SetFontSize 34
|
29
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Show
|
2
|
+
ItemLevel <= 24
|
3
|
+
ItemLevel >= 23
|
4
|
+
SetFontSize 18
|
5
|
+
|
6
|
+
Show
|
7
|
+
ItemLevel <= 22
|
8
|
+
ItemLevel >= 21
|
9
|
+
SetFontSize 17
|
10
|
+
|
11
|
+
Show
|
12
|
+
ItemLevel <= 24
|
13
|
+
ItemLevel >= 21
|
14
|
+
SetFontSize 16
|
15
|
+
|
16
|
+
Show
|
17
|
+
ItemLevel <= 25
|
18
|
+
ItemLevel >= 20
|
19
|
+
SetFontSize 15
|
20
|
+
|
21
|
+
Show
|
22
|
+
ItemLevel <= 30
|
23
|
+
ItemLevel >= 20
|
24
|
+
SetFontSize 14
|
25
|
+
|
26
|
+
Show
|
27
|
+
ItemLevel <= 25
|
28
|
+
ItemLevel >= 10
|
29
|
+
SetFontSize 13
|
30
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
ItemLevel >= 10, ItemLevel <= 25 {
|
2
|
+
Show
|
3
|
+
SetFontSize 13
|
4
|
+
}
|
5
|
+
|
6
|
+
ItemLevel >= 20, ItemLevel <= 30 {
|
7
|
+
Show
|
8
|
+
SetFontSize 14
|
9
|
+
}
|
10
|
+
|
11
|
+
ItemLevel >= 20, ItemLevel <= 25 {
|
12
|
+
Show
|
13
|
+
SetFontSize 15
|
14
|
+
}
|
15
|
+
|
16
|
+
ItemLevel >= 21, ItemLevel <= 24 {
|
17
|
+
Show
|
18
|
+
SetFontSize 16
|
19
|
+
}
|
20
|
+
|
21
|
+
ItemLevel >= 21, ItemLevel <= 22 {
|
22
|
+
Show
|
23
|
+
SetFontSize 17
|
24
|
+
}
|
25
|
+
|
26
|
+
ItemLevel >= 23, ItemLevel <= 24 {
|
27
|
+
Show
|
28
|
+
SetFontSize 18
|
29
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Show
|
2
|
+
ItemLevel <= 22
|
3
|
+
ItemLevel >= 21
|
4
|
+
SetFontSize 13
|
5
|
+
|
6
|
+
Show
|
7
|
+
ItemLevel <= 24
|
8
|
+
ItemLevel >= 23
|
9
|
+
PlayAlertSound 1
|
10
|
+
SetFontSize 13
|
11
|
+
|
12
|
+
Show
|
13
|
+
ItemLevel <= 25
|
14
|
+
ItemLevel >= 10
|
15
|
+
SetFontSize 13
|
16
|
+
|
17
|
+
Show
|
18
|
+
ItemLevel <= 30
|
19
|
+
ItemLevel >= 20
|
20
|
+
SetFontSize 14
|
@@ -0,0 +1,30 @@
|
|
1
|
+
ItemLevel >= 23, ItemLevel <= 24 {
|
2
|
+
Show
|
3
|
+
SetFontSize 18
|
4
|
+
PlayAlertSound 1
|
5
|
+
}
|
6
|
+
|
7
|
+
ItemLevel >= 21, ItemLevel <= 22 {
|
8
|
+
Show
|
9
|
+
SetFontSize 17
|
10
|
+
}
|
11
|
+
|
12
|
+
ItemLevel >= 21, ItemLevel <= 24 {
|
13
|
+
Show
|
14
|
+
SetFontSize 16
|
15
|
+
}
|
16
|
+
|
17
|
+
ItemLevel >= 20, ItemLevel <= 25 {
|
18
|
+
Show
|
19
|
+
SetFontSize 15
|
20
|
+
}
|
21
|
+
|
22
|
+
ItemLevel >= 20, ItemLevel <= 30 {
|
23
|
+
Show
|
24
|
+
SetFontSize 14
|
25
|
+
}
|
26
|
+
|
27
|
+
ItemLevel >= 10, ItemLevel <= 25 {
|
28
|
+
Show
|
29
|
+
SetFontSize 13
|
30
|
+
}
|