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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a5b178a5938928690725652c3b988eea637adda
4
- data.tar.gz: 7b3478a595feb12cf5ddc2c67c2f2dc7770456e3
3
+ metadata.gz: 5b2fe23cb5499d15f7711b6e5ce881f6b19c4210
4
+ data.tar.gz: 666df499becc3072e2b9b9f36bb42e49d550a0ea
5
5
  SHA512:
6
- metadata.gz: 20f4238e3c27227a62dd2fdf9e93cec00dad7d118d294acde95a2a08a407946523892f2a6e978e4c2b6a64f4037c17d5122536b2bf14b7f85b776b5fdccb7ca4
7
- data.tar.gz: e7e6d1db9d2176fa284c3a2f1cdcd5be399f6ca9f52adc8efb66bd675a7e6076404f4eed5f53f9fc16d3e4ed10e273b5ec8ccdf904d673081e130b6aa70b146d
6
+ metadata.gz: 354ca427c223865430e365705d095cf7ae4db92a90590068b7c81d4b06abf2ca68eb99793fb8a29a7dd0751271e79f96d665c009da92049ef8ca5092ee4c71d7
7
+ data.tar.gz: 141a62aee3a84e34a74bd5f04a450ee37fc655dde821f366a47ae88048a9c51638f5241db34bca398fedd8676c5b11dfe50c3a7dc2728fb082f090dc3592faca
@@ -54,7 +54,7 @@ module Tracery
54
54
  end
55
55
  rawSubstring = ""
56
56
  if(!lastEscapedChar.nil?) then
57
- rawSubstring = escapedSubstring + "\\" + rule[(lastEscapedChar+1)..-1]
57
+ rawSubstring = escapedSubstring + "\\" + rule[(lastEscapedChar+1)...finish]
58
58
  else
59
59
  rawSubstring = rule[start...finish]
60
60
  end
@@ -0,0 +1,3 @@
1
+ module Tracery
2
+ VERSION = "0.7.4"
3
+ end
@@ -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.3
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
- See the main github repo for examples and documentation.
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: