ifmapper 2.0.8 → 2.0.9
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 +4 -4
- data/HISTORY.txt +2 -0
- data/IFMapper.gemspec +2 -2
- data/lib/IFMapper/IFMWriter.rb +6 -3
- data/lib/IFMapper/TranscriptReader.rb +1 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eae38fdb5a3f74726178733e2d521c58fb16fce20161dde83e1d2ad88e5df7b
|
4
|
+
data.tar.gz: bac90ae70e2f7aae21da217225a64271ba4437932d25948c91e6b8757189c33f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91751520226fbd7c307c4f6d3b021e3493d2831554d7670e54d6db5e5c68c321ab39589391adca828d6bfc4912700cd1beedca49080df6a2bda82b5d1b7329b5
|
7
|
+
data.tar.gz: 8873e01bc3e01b54ef9e6d4f06deab7888ac476e4b0d7ac35582fe03578bc4fd2f2f655f577db80499949401a97855b6e3e10bc8da3b90c867d69eaf02c8f4d5
|
data/HISTORY.txt
CHANGED
data/IFMapper.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require "rubygems"
|
2
2
|
|
3
|
-
VERSION = '2.0.
|
3
|
+
VERSION = '2.0.9'
|
4
4
|
|
5
5
|
gem = Gem::Specification.new do |s|
|
6
6
|
s.name = "ifmapper"
|
@@ -25,7 +25,7 @@ gem = Gem::Specification.new do |s|
|
|
25
25
|
EOF
|
26
26
|
s.add_runtime_dependency("rake-compiler", "~> 0.7.1", ">= 0.7.1" )
|
27
27
|
s.add_runtime_dependency("fxruby", "~> 1.6.0", ">= 1.6.0")
|
28
|
-
s.add_runtime_dependency("pdf-writer", "~> 1.1.
|
28
|
+
s.add_runtime_dependency("pdf-writer", "~> 1.1.1", ">= 1.1.1")
|
29
29
|
s.extra_rdoc_files = ["HISTORY.txt", "TODO.txt"] +
|
30
30
|
Dir.glob("docs/*/*")
|
31
31
|
s.has_rdoc = true
|
data/lib/IFMapper/IFMWriter.rb
CHANGED
@@ -39,7 +39,9 @@ class IFMWriter
|
|
39
39
|
# simple connection
|
40
40
|
idx = a.next_to?(b)
|
41
41
|
end
|
42
|
-
|
42
|
+
if idx != nil
|
43
|
+
dir = ' ' + Room::DIRECTIONS_ENGLISH[idx]
|
44
|
+
end
|
43
45
|
else
|
44
46
|
# complex path
|
45
47
|
dir = ''
|
@@ -70,7 +72,8 @@ class IFMWriter
|
|
70
72
|
|
71
73
|
tag = t.dup
|
72
74
|
|
73
|
-
|
75
|
+
version = RUBY_VERSION.split('.').map { |x| x.to_i }
|
76
|
+
if (version <=> [1,9,0]) < 0
|
74
77
|
utf = Iconv.new( 'iso-8859-1', 'utf-8' )
|
75
78
|
tag = utf.iconv( tag )
|
76
79
|
else
|
@@ -78,7 +81,7 @@ class IFMWriter
|
|
78
81
|
:undef => :replace, :replace => '' )
|
79
82
|
end
|
80
83
|
|
81
|
-
tag.gsub!(/[\-\(\s,\.!'&"
|
84
|
+
tag.gsub!(/[\-\(\s,\.!'&"\#$@\/\\\-\)]+/, '_')
|
82
85
|
tag.gsub!(/__/, '') # remove reduntant __ repetitions
|
83
86
|
tag.sub!(/^([\d]+)_?(.*)/, '\2\1') # No numbers allowed at start of tag
|
84
87
|
tagname = tag
|
@@ -89,7 +89,7 @@ class TranscriptReader
|
|
89
89
|
NAME_UNCAP = /^(?:of|on|to|with|by|a|in|the|at|under|through|near)$/i
|
90
90
|
|
91
91
|
# Default room description recognition parameters.
|
92
|
-
DESC_MINWORDS =
|
92
|
+
DESC_MINWORDS = 20
|
93
93
|
|
94
94
|
# Ignore these words when matching words in description
|
95
95
|
# To avoid cases, like: An open gate vs. A closed gate
|
@@ -1199,7 +1199,6 @@ class TranscriptReader
|
|
1199
1199
|
# else, we really have a problem in the map
|
1200
1200
|
debug "*** CANNOT AUTOMAP --- MAZE ***"
|
1201
1201
|
dir = Room::DIRECTIONS[dir]
|
1202
|
-
debug "Maze detected.\n'#{from}' #{dir} leads to '#{c.roomB}',\nnot to this '#{to}'."
|
1203
1202
|
@map.cannot_automap "Maze detected.\n'#{from}' #{dir} leads to '#{c.roomB}',\nnot to this '#{to}'."
|
1204
1203
|
self.stop
|
1205
1204
|
return nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ifmapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gonzalo Garramuno
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -56,20 +56,20 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 1.1.
|
59
|
+
version: 1.1.1
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.1.
|
62
|
+
version: 1.1.1
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.1.
|
69
|
+
version: 1.1.1
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: 1.1.
|
72
|
+
version: 1.1.1
|
73
73
|
description: "\tInteractive Fiction Mapping Tool.\n"
|
74
74
|
email: ggarra13@gmail.com
|
75
75
|
executables:
|
@@ -345,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
345
345
|
version: '0'
|
346
346
|
requirements: []
|
347
347
|
rubyforge_project: ifmapper
|
348
|
-
rubygems_version: 2.7.
|
348
|
+
rubygems_version: 2.7.6
|
349
349
|
signing_key:
|
350
350
|
specification_version: 4
|
351
351
|
summary: Interactive Fiction Mapping Tool.
|