liquidscript 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/liquidscript/compiler/icr/classes.rb +14 -5
- data/lib/liquidscript/version.rb +1 -1
- data/spec/fixtures/class.generate.yml +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a3cff126272cbbc86d9729e2d9d8377288993d6
|
4
|
+
data.tar.gz: e5ad5d6a4431246d57a236dcee19f592e3696cdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c6da54b9efa5bfa45aee059d772296269bbd5939314051abfd503e104dc920c48cc49c82ae7d9531c52090a1aa00bdea6280d79ceebc531aa51a030bba1bb0b
|
7
|
+
data.tar.gz: 3a9a399c1785dd9c7c324182aa6dfbcb35b6d5224aec85360fa32ea0362641743aa9abb31e4db72630f126883a4ccef061cdab9629a498008ec22bdd56267b69
|
@@ -21,12 +21,21 @@ module Liquidscript
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def compile_module
|
24
|
-
shift :module
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
m = shift :module
|
25
|
+
if peek? :identifier
|
26
|
+
name = shift :identifier
|
27
|
+
set name
|
28
|
+
body = _compile_class_body(true)
|
29
|
+
|
30
|
+
code :module, name, body
|
31
|
+
else
|
32
|
+
value_expect _new_token(m, :identifier)
|
33
|
+
end
|
34
|
+
end
|
28
35
|
|
29
|
-
|
36
|
+
def _new_token(old, type)
|
37
|
+
Scanner::Token.new(type, old.type.to_s, old.line,
|
38
|
+
old.column)
|
30
39
|
end
|
31
40
|
|
32
41
|
def _compile_class_body(mod = false)
|
data/lib/liquidscript/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquidscript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Rodi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|