liquidscript 0.6.2 → 0.6.3

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: 294e4c6a0c4f14b51aa48ac555de488b94308ac7
4
- data.tar.gz: 412b48e5603ee3871ebc7889c25dfafac288f473
3
+ metadata.gz: 050bb1c044cba44a8a78dd38fdb22a2d5bd0d52e
4
+ data.tar.gz: d50d87318b45e35dd0509b31250aec5a643b63fd
5
5
  SHA512:
6
- metadata.gz: 2f0c008c716700c45618878f3a34dd56fa9d656e52bdff254be77513795e2271bf51757ed67afa1fa34b81adb8e4ac5229f42fcaa761b9141020e909b50c5a0a
7
- data.tar.gz: 9b9c4341ec21542b483356a592f85664a40dd607a7f3987561ca407cf31b7d5e0b9b4300466cbf9b929a2956bcbfbfeae59d4e445a6185f86ebbf08c21424f6b
6
+ metadata.gz: ce6e5e973be00db681dd473387119b47d87960de35d8bb14907099bd51c2f310a164bcd161a1bf0aa5d41f90f107e982296bb595811be4f24b7616ad14a46df6
7
+ data.tar.gz: ba7f2b51d7ef53ad1009ed192aea8d1ffd9ae9a470270b7a73955db31cf8f0335f91107c285627aa9dac6e6ecae1f5886f91bbf3f37a62b3af0e01c282fc0e3e
@@ -29,6 +29,10 @@ module Liquidscript
29
29
  def compile_call(subject)
30
30
  shift :lparen
31
31
 
32
+ if subject.type == :identifier
33
+ ref(subject)
34
+ end
35
+
32
36
  arguments = collect_compiles :expression, :rparen,
33
37
  :comma => action.shift
34
38
 
@@ -14,7 +14,8 @@ module Liquidscript
14
14
  # The variables that are allowed to be used as a global scope,
15
15
  # i.e. used in a `get` context without a previous `set`.
16
16
  DEFAULT_ALLOWED_VARIABLES = [
17
- :window, :global, :exports, :console, :this, :arguments
17
+ :window, :global, :exports, :console, :this, :arguments,
18
+ :require
18
19
  ]
19
20
 
20
21
  # The parent of the current context.
@@ -1,5 +1,5 @@
1
1
  module Liquidscript
2
2
 
3
3
  # The current version of liquidscript.
4
- VERSION = "0.6.2".freeze
4
+ VERSION = "0.6.3".freeze
5
5
  end
@@ -126,6 +126,7 @@ describe Compiler::ICR do
126
126
  specify { expect("()-> {}").to compile }
127
127
  specify { expect("(test)-> {}").to compile }
128
128
  specify { expect("(test, foo)-> {}").to compile }
129
+ specify { expect("blasg()").to_not compile }
129
130
  specify { expect("class Test : Variant {}").to_not compile }
130
131
  end
131
132
 
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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi