liquidscript 0.3.0 → 0.3.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: fd125951854295e502bad68f06358e1546554d70
4
- data.tar.gz: ca1ddecbcbaff2e1f54689eb4482f56f8ff0c147
3
+ metadata.gz: 93358b89fa051538828ed587aaa478796f993676
4
+ data.tar.gz: bf64eeb97bbdf9cb43150bf94b3d49d79bbba043
5
5
  SHA512:
6
- metadata.gz: 9efea19e05234c3eefedfdd374884e6df84f105ee0831fbf18d0f2a90eea32cf027e6d6e83ef4693c2656303666f52ebf6cad053219c822bc45423620a9fb478
7
- data.tar.gz: c1ba8350f0ce9db207aaac1fd08456d1142c57c964e7ef11c13c956c30ef5d07fff53a984b7d1aecef4e16da5892c70c3dcb34373559224c440c02300faf5a64
6
+ metadata.gz: e91ab8b884aa60ed0d52d12f793f0f0b0f0cb13d3fbd060ae9d0345a56ef693dd99560fb280a8d68ea28f63fdf14f4f6b0106fbd34bbf3b039dd4456d2705b92
7
+ data.tar.gz: 5bf5238837a656e9926809656fd90b3d96d768c6c589fd15886085852ec2e3fbc4e8963502ead086483a15cd0dea5f29bbdd0d5328d21c5e3eac2643bb9acba4
@@ -66,8 +66,8 @@ module Liquidscript
66
66
  #{class_name}.prototype[#{k.value}] = #{replace(v)};
67
67
  JS
68
68
  when :property
69
- if k[1].name != :this
70
- raise InvalidCodeError.new(v[1].name)
69
+ if k[1].value != "this"
70
+ raise InvalidCodeError.new(k[1].value)
71
71
  end
72
72
 
73
73
  body.block <<-JS
@@ -1,5 +1,5 @@
1
1
  module Liquidscript
2
2
 
3
3
  # The current version of liquidscript.
4
- VERSION = "0.3.0".freeze
4
+ VERSION = "0.3.1".freeze
5
5
  end
@@ -8,6 +8,10 @@ data: |
8
8
  initialize: -> {
9
9
  "this should be init"
10
10
  }
11
+
12
+ this.test: -> {
13
+ "class method!"
14
+ }
11
15
  }
12
16
  }
13
17
 
@@ -28,4 +32,8 @@ compiled: |
28
32
  Test.prototype.initialize = function() {
29
33
  "this should be init"
30
34
  };
35
+
36
+ Test.test = function() {
37
+ "class method!"
38
+ };
31
39
  Something.Test = Test;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquidscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi