truth_serum 0.4.1 → 0.4.2

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: 28ca2947da6f39497d5c3191edb51272ff1beb3e
4
- data.tar.gz: 36cde676d8fc6617f53f8eeb05b5a7315c0417ce
3
+ metadata.gz: 481325393cb070fe642976b798174028b1cab102
4
+ data.tar.gz: 02e677d5647e0c5ba3975a568347ab973428f458
5
5
  SHA512:
6
- metadata.gz: dfca40583fbf6331b633f6e3a6ce14e1f3395de29ece5364e875b1d214d6a49b26b14c80fc3e1a63d1adb051c0d60fc4f311503dc1dbcef8fee388d66e744ff8
7
- data.tar.gz: 744f7f2e9c6db1c099fa2f529fdffd40793d5bb948eaf3067700f89fb1d1026bbbb8ce1b62378996ef483661f2355e07238be90b0592ef6af80b4990bf25e988
6
+ metadata.gz: aacdbaca8bcc71dea85002dd4322ea66c49a9aea893c94d1cd3bc028a999645e77322e4d4a1d9f1b6cc615020f9347107234913f39ac7a328e619c02f541bd22
7
+ data.tar.gz: 39f70a2285576824d300aec02c6b8a317d6cfc7372c7c8e57d21a5179291d9dedde7ad5968c846174ed418ae3c6a126bda7f2bfde742faaf46781c0fd08a48e4
@@ -98,7 +98,7 @@ module TruthSerum
98
98
  end
99
99
 
100
100
  def emit(type)
101
- super(Token.new(type, @buffer))
101
+ super(Token.new(type, @buffer || ''))
102
102
  @buffer = nil
103
103
  end
104
104
  end
@@ -27,7 +27,7 @@ module TruthSerum
27
27
 
28
28
  state = :start
29
29
  loop do
30
- puts "#{self.class.name}: #{state}" if debug
30
+ puts "#{self.class.name}: [#{@input[@position..-1]}] #{state}" if debug
31
31
 
32
32
  next_state = instance_eval(&@states[state])
33
33
  case
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module TruthSerum
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truth_serum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chakrit Wichian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-15 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler