revolt 0.8.1 → 0.8.2

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.
@@ -20,7 +20,7 @@ def main
20
20
  puts "Installed levels: " if levelids.size > 0
21
21
  levelids.each do |levelid|
22
22
  level = levels[levelid]
23
- puts " #{level}" if level
23
+ puts " " + level.inspect if level
24
24
  end
25
25
  end
26
26
 
data/lib/revolt/level.rb CHANGED
@@ -257,19 +257,21 @@ module ReVolt
257
257
  debug "Loading inf file: #{inf_file}"
258
258
 
259
259
  @inf = {}
260
- open(inf_file).each do |line|
261
- # Remove comments:
262
- debug "Level::reload .inf line: #{line}"
263
- line.sub!(/;.*/, '')
264
- if line =~ /^(\w+)\s+([^\s].*)$/
265
- key, value = $1, $2
266
- value.rstrip!
267
- key.downcase!
268
- # Replace 'string' values with string
269
- value.gsub!(/'([^']*)'/, '\1')
270
- @inf[key.intern] = value
271
- end
272
- end
260
+ open(inf_file) do |file|
261
+ file.each do |line|
262
+ # Remove comments:
263
+ debug "Level::reload .inf line: #{line}"
264
+ line.sub!(/;.*/, '')
265
+ if line =~ /^(\w+)\s+([^\s].*)$/
266
+ key, value = $1, $2
267
+ value.rstrip!
268
+ key.downcase!
269
+ # Replace 'string' values with string
270
+ value.gsub!(/'([^']*)'/, '\1')
271
+ @inf[key.intern] = value
272
+ end
273
+ end # file.each
274
+ end # open
273
275
 
274
276
  @name = @inf[:name]
275
277
  @loaded = true
data/lib/revolt.rb CHANGED
@@ -10,5 +10,5 @@ require 'revolt/util/matcher'
10
10
  require 'revolt/args'
11
11
 
12
12
  module ReVolt
13
- VERSION = '0.8.1'
13
+ VERSION = '0.8.2'
14
14
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: revolt
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.8.1
7
- date: 2007-02-16 00:00:00 +02:00
6
+ version: 0.8.2
7
+ date: 2007-02-17 00:00:00 +02:00
8
8
  summary: Library for managing Re-Volt game, and some Commandline tools
9
9
  require_paths:
10
10
  - lib