ifmapper 2.0.8 → 2.0.9

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
  SHA256:
3
- metadata.gz: 887b77bd86ab35695076ceeab0f29ffce34cc9f7a95756a64b07dc45c59026bb
4
- data.tar.gz: 367adb3781b89ccedc425d0e1b05651278115c65cbcc97b6a066935886848f49
3
+ metadata.gz: 3eae38fdb5a3f74726178733e2d521c58fb16fce20161dde83e1d2ad88e5df7b
4
+ data.tar.gz: bac90ae70e2f7aae21da217225a64271ba4437932d25948c91e6b8757189c33f
5
5
  SHA512:
6
- metadata.gz: c45fbef84b3588915bdaead62df82b0d5af33b5c2e98fbdf8c85e123e461ab2dc14ca99ac75bf4e924a0e1a1b85615d37cead0c9a1f095aa178e6536abe3deaf
7
- data.tar.gz: 92fadec2bd70dd28cd5e3d42cac4118d62ab117cd2e7e6a49aa55fea6087e5590109d78270a3587bebd0071f4b082fcf1917caa30593552009d8a317a3c8240f
6
+ metadata.gz: 91751520226fbd7c307c4f6d3b021e3493d2831554d7670e54d6db5e5c68c321ab39589391adca828d6bfc4912700cd1beedca49080df6a2bda82b5d1b7329b5
7
+ data.tar.gz: 8873e01bc3e01b54ef9e6d4f06deab7888ac476e4b0d7ac35582fe03578bc4fd2f2f655f577db80499949401a97855b6e3e10bc8da3b90c867d69eaf02c8f4d5
@@ -1,3 +1,5 @@
1
+ v2.0.8 Bug fixed PDF Writer as it was no longer working with v2.1+ Rubys.
2
+
1
3
  v2.0.5 Bug fixed Spanish locale crashing due to missing BOX_COMMENTS.
2
4
 
3
5
  v2.0.4 Fixed translation in different locale (Spanish).
@@ -1,6 +1,6 @@
1
1
  require "rubygems"
2
2
 
3
- VERSION = '2.0.8'
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.8", ">= 1.1.8")
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
@@ -39,7 +39,9 @@ class IFMWriter
39
39
  # simple connection
40
40
  idx = a.next_to?(b)
41
41
  end
42
- dir = ' ' + Room::DIRECTIONS_ENGLISH[idx]
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
- if RUBY_VERSION < 1.9
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 = 10
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.8
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-03-23 00:00:00.000000000 Z
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.8
59
+ version: 1.1.1
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 1.1.8
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.8
69
+ version: 1.1.1
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 1.1.8
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.3
348
+ rubygems_version: 2.7.6
349
349
  signing_key:
350
350
  specification_version: 4
351
351
  summary: Interactive Fiction Mapping Tool.