gemwarrior 0.14.5 → 0.14.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9eed4c481dd9b8c403851ed62c05ea92757f56d7
4
- data.tar.gz: b2d8cbfee1c8dac0daed910d8436970e8cdab12a
3
+ metadata.gz: 88f93a63ffbbc7334133b9ea23c40aae700d9f78
4
+ data.tar.gz: fa4a6078ecbc1b11687fc42861e6a955481e2e56
5
5
  SHA512:
6
- metadata.gz: 2c9168749c94929d96c7175698a90f44c393846d45d7d5d9d2000ac20fe077adf1305ddecbe46b6b7a24a47f5a552363720c7f4ee7d8c306e9c2f98396a70110
7
- data.tar.gz: 7c7e3eb9aab5d32d8f20ef14577935ba3d4aa69666fbb6c28a64262b0fc6baf77f6e3d91e7a08764e8fa924651c010d5bb6a2ca97c57cf9f63ad239b5492d76c
6
+ metadata.gz: 2bb197442769ca3e5b792cfea0376a1adb5f8fb88af2d7ef75ff9c1d984f8dafdfa71dedcce4a2789fb7bf8d9f3a0d2ffcf77ad88a18d714f5797b60a50c6910
7
+ data.tar.gz: 33e4ea84b9312a221148b674d9ec9bff3c4d47793c6b257acb320d2897cf47eb0c8feb7c969c7ab623d2b67acd7b1b1b86a861968b8a14805ef8f983599d8881
data/bin/gemwarrior CHANGED
File without changes
@@ -12,19 +12,19 @@ module Gemwarrior
12
12
  begin
13
13
  require 'win32/sound'
14
14
  rescue LoadError => e
15
- GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}'. Gem Warrior will be silent for now."
15
+ GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}'. Silence for now."
16
16
  end
17
17
  elsif GameOptions.data['sound_system'].eql?('feep')
18
18
  begin
19
19
  require 'feep'
20
20
  rescue LoadError => e
21
- GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}'. Gem Warrior will be silent for now."
21
+ GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}'. Silence for now."
22
22
  end
23
23
  elsif GameOptions.data['sound_system'].eql?('bloops')
24
24
  begin
25
25
  require 'bloops'
26
26
  rescue LoadError => e
27
- GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}aphone'. Gem Warrior will be silent for now."
27
+ GameOptions.data['errors'] = "#{GameOptions.data['sound_system']} could not be loaded. You may need to run 'gem install #{GameOptions.data['sound_system']}aphone'. Silence for now."
28
28
  end
29
29
  end
30
30
  end
@@ -331,8 +331,8 @@ module Gemwarrior
331
331
  if result.nil?
332
332
  run_main_menu
333
333
  else
334
- self.world = result
335
- self.evaluator = Evaluator.new(self.world)
334
+ print_errors
335
+ load_saved_world(result)
336
336
  return
337
337
  end
338
338
  end
@@ -497,6 +497,11 @@ module Gemwarrior
497
497
  end
498
498
  end
499
499
 
500
+ def load_saved_world(result)
501
+ self.world = result
502
+ self.evaluator = Evaluator.new(self.world)
503
+ end
504
+
500
505
  def setup_screen(initial_command = nil, extra_command = nil, new_skip = false, resume_skip = false)
501
506
  # welcome player to game
502
507
  clear_screen
@@ -514,8 +519,7 @@ module Gemwarrior
514
519
  run_main_menu
515
520
  else
516
521
  print_errors
517
- self.world = result
518
- self.evaluator = Evaluator.new(self.world)
522
+ load_saved_world(result)
519
523
  end
520
524
  else
521
525
  run_main_menu
@@ -2,5 +2,5 @@
2
2
  # Version of Gem Warrior
3
3
 
4
4
  module Gemwarrior
5
- VERSION = '0.14.5'
5
+ VERSION = '0.14.6'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemwarrior
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.5
4
+ version: 0.14.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chadwick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-27 00:00:00.000000000 Z
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os
@@ -363,6 +363,4 @@ rubygems_version: 2.4.8
363
363
  signing_key:
364
364
  specification_version: 4
365
365
  summary: RubyGem text adventure
366
- test_files:
367
- - spec/gemwarrior_spec.rb
368
- - spec/spec_helper.rb
366
+ test_files: []