liquidscript 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9d89acc349d1100678dc4acf335ba531a474306
4
- data.tar.gz: 8fc42834375eda8b29278410ba8c2f67dc11d008
3
+ metadata.gz: b993303ff76055d48e2917eb3dafc43eb42bbded
4
+ data.tar.gz: b58b4343a667bae9cd1291d6102be0c366d078ba
5
5
  SHA512:
6
- metadata.gz: eab3087a415f89e7917343d588da0d64e7d6fb18ade6d8aa40dcd8bd0b17fd7b512d5cce40c64588f6ddd66116c36332309f82a79f4ad9960bfb4f693769bf27
7
- data.tar.gz: 0feedb0f08a12e8977b6b73051c9521ff5fdf852d9bfcf769cbb7a67dc914eb33185cfbbb17ea0feccaf95d7c027d0ed50aeb3a38f3f059a252e38485c34bbe4
6
+ metadata.gz: d13485994da269958fee2b0fed2eb887a6e515cffaa40aa2b4f47e5ec946075bfa743a184160996680b91ddd6ba696747b61b4e9fc1a1b7d94b3ac8727586b3a
7
+ data.tar.gz: 8f4bc24c3c0e6dcb8b15c0b611b78228f659774c48082883f300399341d411c04fe0bf32044926d8e997df9a5e25dee2ae943128cb1bdc4bdb80a040d7a0168f
@@ -6,7 +6,7 @@ module Liquidscript
6
6
  def compile_class
7
7
  shift :class
8
8
  name = shift :identifier
9
- body = _compile_class_body
9
+ body = _compile_class_body(false)
10
10
 
11
11
  set name
12
12
  code :class, name, body
@@ -48,7 +48,7 @@ module Liquidscript
48
48
  item = shift :identifier, :dstring
49
49
 
50
50
  item = compile_property(item) if item.type == :identifier &&
51
- peek?(:prop) && mod
51
+ peek?(:prop) && !mod
52
52
 
53
53
  shift :colon
54
54
  item
@@ -62,7 +62,7 @@ module Liquidscript
62
62
  body <<
63
63
  "#{class_name}.prototype[#{k.value}] =" <<
64
64
  replace(v) << ";"
65
- when :prop
65
+ when :property
66
66
  if k[1].name != :this
67
67
  raise InvalidCodeError.new(v[1].name)
68
68
  end
@@ -1,5 +1,5 @@
1
1
  module Liquidscript
2
2
 
3
3
  # The current version of liquidscript.
4
- VERSION = "0.1.4".freeze
4
+ VERSION = "0.1.5".freeze
5
5
  end
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.1.4
4
+ version: 0.1.5
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-08 00:00:00.000000000 Z
11
+ date: 2014-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler