liquidscript 0.10.3 → 0.10.4
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 +4 -4
- data/DOCS.md +1 -1
- data/lib/liquidscript/compiler/icr/expressions.rb +3 -1
- data/lib/liquidscript/version.rb +1 -1
- data/spec/fixtures/expression.generate.yml +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c2c527652bdb7ece680508921dffafff168c7cb
|
4
|
+
data.tar.gz: 9d0c2a6c28d59681080a62cca518ff53f55d00aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f3e290757fcfb60f4c021d0f0613f0eddbbcf4df8e1b3d81b6d8d8fb6390b2c153be261692ede6961273218f1fdef63581548bc3324798ca7a3a505cf8e5347
|
7
|
+
data.tar.gz: 970b9501c509db02bcfcebf9fcb93ed11a5603ca7f71bfb5cb3a19357e49bf6fe0f726d7c9ef03421c15188e658ade3d90e612277f070bb66d249de6a389a6ef
|
data/DOCS.md
CHANGED
@@ -36,7 +36,7 @@ Note that there are also no semicolons (they don't exist in the language), and n
|
|
36
36
|
|
37
37
|
#### String
|
38
38
|
|
39
|
-
Liquidscript has a very finite set of string literals - the only two options (so far) are double quotes and single quotes. There are plans to introduce heredocs. Double quotes are multiline, whereas **single quotes are limited to the same characters that identifiers are limited to**. This is so that keys for objects (
|
39
|
+
Liquidscript has a very finite set of string literals - the only two options (so far) are double quotes and single quotes. There are plans to introduce heredocs. Double quotes are multiline, whereas **single quotes are limited to the same characters that identifiers are limited to**. This is so that keys for objects (such that the `object[key]` syntax feels more natural (i.e., `object['key]`)). Some examples:
|
40
40
|
|
41
41
|
string = "hello
|
42
42
|
|
data/lib/liquidscript/version.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
data: |
|
2
2
|
(2)
|
3
3
|
#! allow Math
|
4
|
-
|
4
|
+
a = 1
|
5
|
+
b = 2
|
6
|
+
x = 3
|
7
|
+
x = Math.round(5 / (x + a + b) * 100)
|
5
8
|
|
6
9
|
|
7
|
-
compiled: "(2); Math.round(5 / (
|
10
|
+
compiled: "var a,b,x; (2); a = 1; b = 2; x = 3; x = Math.round(5 / (x + a + b) * 100);"
|