liquidscript 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd57b7e3788f3e3838b91d69ca49710df545e2bf
|
4
|
+
data.tar.gz: dba5646ea70ac23f0446f6e53b999ad9e5a5b25e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e9ba01f2751a769829aca0739329b7c7e3640578b5ef16de23fb464b61e3443dc6f802f7dc98f8c0054b55627d6a4261d1adc1850c1aa145c5ab3d25b5f1263
|
7
|
+
data.tar.gz: 0ca0d9af4cea6992522fceff910b93bc3561df457ee98927308ddef608114221bc26ccbbab894d7af346c5de9a32c7622f56312f3fe338bd9e5ddf33b06f6805
|
@@ -38,13 +38,13 @@ module Liquidscript
|
|
38
38
|
_context :name => code[1].value,
|
39
39
|
:inherit => code[2],
|
40
40
|
:parts => code[3],
|
41
|
-
:inheritance => "%{name}.prototype.__proto__
|
42
|
-
:identifier => "%{name}.prototype.%{value}
|
41
|
+
:inheritance => "%{name}.prototype.__proto__ = %{inherit};\n",
|
42
|
+
:identifier => "%{name}.prototype.%{value} = %{replace};\n",
|
43
43
|
:istring => "%{name}.prototype[\"%{value}\"] = %{replace};\n",
|
44
|
-
:property => "%{name}.%{value}
|
45
|
-
:head => "%{name} = %{name} || function %{name}() {
|
46
|
-
"if(this.initialize) {
|
47
|
-
"arguments)
|
44
|
+
:property => "%{name}.%{value} = %{replace};\n",
|
45
|
+
:head => "%{name} = %{name} || function %{name}() {\n#{indent!}" <<
|
46
|
+
"if(this.initialize) {\n#{indent!}this.initialize.apply(this, " +
|
47
|
+
"arguments);\n#{unindent!}}\n#{unindent!}};\n"
|
48
48
|
end
|
49
49
|
|
50
50
|
def generate_module(code)
|
data/lib/liquidscript/version.rb
CHANGED