liquidscript 0.7.3 → 0.7.4

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: b683fbc047148da1f4c11cd6b4f8469f1a256ccb
4
- data.tar.gz: 4385ec410097c8f4a026f6471ccab88d54ae5fe9
3
+ metadata.gz: 8a8077c44261163462fade3963a141d4b27f6c38
4
+ data.tar.gz: 30398e9cb5873bcbeb610eec28b17197332b185e
5
5
  SHA512:
6
- metadata.gz: 390a711415c9018ea223de423ed28d21fedf9117f120b718a23a7ad457827e4e6564cf35562ed01a335c010bf6c41893eb8921ea889ab8d800abe19335038bb6
7
- data.tar.gz: 334a33e878f3d6b645490c3c123dc59d36c256a7b5d73321a1364e66cda168c5860c58bef24fe29f5031b21d4f7f42152a8dc8b79c13239098631781d438239d
6
+ metadata.gz: 2728a9741b67461e1d814f3bdb62d01c458903660848ca687fe6317b71a8e07961b35dd1d18534cc699f8886ad86defb93c5b0afdcd24206932cebddcc8d4dbd
7
+ data.tar.gz: 0d2d71860e014c55f9ac954582503f020720a66782c452334e71658df4ab0dd7e336afd0c30c79d76da1d8cc027199cb0fd1414124de05d8744bc23d671716c4
@@ -14,13 +14,13 @@ module Liquidscript
14
14
  def self.compile(data, options = {})
15
15
  scanner = Scanner::Liquidscript.new(data)
16
16
  if options[:tokens]
17
- scanner.each.to_a.to_sexp
17
+ return scanner.each.to_a.to_sexp
18
18
  end
19
19
 
20
20
  compiler = Compiler::ICR.new(scanner)
21
21
  compiler.compile
22
22
  if options[:ast]
23
- compiler.top.to_sexp
23
+ return compiler.top.to_sexp
24
24
  end
25
25
 
26
26
  Generator::Javascript.new(compiler.top).generate
@@ -1,5 +1,5 @@
1
1
  module Liquidscript
2
2
 
3
3
  # The current version of liquidscript.
4
- VERSION = "0.7.3".freeze
4
+ VERSION = "0.7.4".freeze
5
5
  end
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.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi