text-gen 0.5.0 → 0.5.1

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
  SHA256:
3
- metadata.gz: 86f9c9dd7fe5548ad60d314ac884c1094ae01a963f4b8857b5ef054ee80e2c21
4
- data.tar.gz: be6f441194af3a555fa497a33397c27c230fbcaad7ae0607636ce4bba71826e2
3
+ metadata.gz: 3dc7468b283cc400df93c020c98c28092c549a7a35bf85be19a727a6972a5f1e
4
+ data.tar.gz: ea546fb4e9ab881b5be55e8210de6e41cbca14703e5aa4a7596a58ba88475d44
5
5
  SHA512:
6
- metadata.gz: 3a50a01053a1e25fb2261f9cbbaa5f2c64c19e4542665deb1a164490e9a840a4b83b714dd53fd21a69593fb72820312129e8232978b01b88e6de53cc7aec2a8b
7
- data.tar.gz: 740dfeda14160a78830087c87d82526131a11d1e30d3038220147ab743bf7db5821d2070ef88d4bd5d5319a57f8f83cb005b7fbc94e7e1c86abfefb9d8dbd15c
6
+ metadata.gz: 19295892ca9f132030ada3db189a49c50d7944bcae4d52ac0bdea34e5cecc88ab284795ac8b0eb5568b18b1434120561bf95fca3f752ca0dc8bfc1048fc6f2cc
7
+ data.tar.gz: 1e96d78d0dd190b354ffcfb0d170e4541fcc08b37fc7968abc966608a2347f8e915ae7efc2fa088ecc66122070da2f6ba96c9941acfc7422d8a1f5b24b8d62ee
@@ -4,7 +4,7 @@ module Text
4
4
  module Gen
5
5
  module Segment
6
6
  class Constant
7
- TEXT = /(?:(?:\\\[)|(?:\\\])|[^\[\]])+/
7
+ TEXT = /(?:(?:\\\[)|(?:\\\])|[^\[\]\d])+/
8
8
  class << self
9
9
  def scan(scanner)
10
10
  str = scanner.scan(TEXT)
@@ -11,7 +11,7 @@ module Text
11
11
  return unless str
12
12
 
13
13
  {
14
- "type" => "constant",
14
+ "type" => "number",
15
15
  "text" => str,
16
16
  "value" => 0,
17
17
  "multiplier" => Integer(str)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Text
4
4
  module Gen
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - G Palmer