tracery 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tracery.rb +1 -1
- data/lib/version.rb +3 -0
- data/test/tracery_test.rb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b2fe23cb5499d15f7711b6e5ce881f6b19c4210
|
4
|
+
data.tar.gz: 666df499becc3072e2b9b9f36bb42e49d550a0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 354ca427c223865430e365705d095cf7ae4db92a90590068b7c81d4b06abf2ca68eb99793fb8a29a7dd0751271e79f96d665c009da92049ef8ca5092ee4c71d7
|
7
|
+
data.tar.gz: 141a62aee3a84e34a74bd5f04a450ee37fc655dde821f366a47ae88048a9c51638f5241db34bca398fedd8676c5b11dfe50c3a7dc2728fb082f090dc3592faca
|
data/lib/tracery.rb
CHANGED
@@ -54,7 +54,7 @@ module Tracery
|
|
54
54
|
end
|
55
55
|
rawSubstring = ""
|
56
56
|
if(!lastEscapedChar.nil?) then
|
57
|
-
rawSubstring = escapedSubstring + "\\" + rule[(lastEscapedChar+1)
|
57
|
+
rawSubstring = escapedSubstring + "\\" + rule[(lastEscapedChar+1)...finish]
|
58
58
|
else
|
59
59
|
rawSubstring = rule[start...finish]
|
60
60
|
end
|
data/lib/version.rb
ADDED
data/test/tracery_test.rb
CHANGED
@@ -66,6 +66,9 @@ class TraceryTest < Test::Unit::TestCase
|
|
66
66
|
escapeMelange2: {
|
67
67
|
src: "A tag can have inner actions: \"\\#\\[myName:\\#name\\#\\]story\\[myName:POP\\]\\#\""
|
68
68
|
},
|
69
|
+
escapeBroken: {
|
70
|
+
src: "\"#name#\" should expand to a name. But \\[ this and \\] should be literal square brackets. And again, just another name: \"#name#\". But for some reason it gets put here at the end! Fixed now....."
|
71
|
+
},
|
69
72
|
emoji: {
|
70
73
|
src: "💻🐋🌙🏄🍻"
|
71
74
|
},
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kate Compton
|
@@ -14,7 +14,7 @@ dependencies: []
|
|
14
14
|
description: |
|
15
15
|
Tracery is a library for text generation.
|
16
16
|
The text is expanded by traversing a grammar.
|
17
|
-
|
17
|
+
Please see the Github repo for examples and documentation.
|
18
18
|
email: brodyeli@gmail.com
|
19
19
|
executables: []
|
20
20
|
extensions: []
|
@@ -22,6 +22,7 @@ extra_rdoc_files: []
|
|
22
22
|
files:
|
23
23
|
- lib/mods-eng-basic.rb
|
24
24
|
- lib/tracery.rb
|
25
|
+
- lib/version.rb
|
25
26
|
- test/tracery_test.rb
|
26
27
|
homepage: https://github.com/elib/tracery
|
27
28
|
licenses:
|