gamefic-standard 3.0.0 → 3.1.0

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
  SHA256:
3
- metadata.gz: 6c2ec7dc0f67d10c0539b74d735051ea02a42971a758b73b86ed393cfa9208e1
4
- data.tar.gz: 8843dd046b42baac0c495a1da403bc4f5b6992f324360b4c66623aa2e3ae8e2a
3
+ metadata.gz: 96d1958de544c9250c33c49061d6db246d9f3ff3b1fbc9fc5d141a6e49d79107
4
+ data.tar.gz: d940749ca8f20bcb81d21335f7318a56ca93e203d6e0b8481de4580df643bfe6
5
5
  SHA512:
6
- metadata.gz: 6a4e56f9898345fa40c7b0743b5231fb4b18266644765e6e222c3aff884dc15f4f18707ae2cb0826c6cd1b6f5056f1347649a41a9480ec8601cefcbd6f1114d2
7
- data.tar.gz: 3bfa5195316099738fe004bc29aec5f00782ccef7405324d452d0bcb644e2ea917866df37ef86a1879ec2fa68b8eae8c1ffeb0f181fe9aea1a648369232fcf73
6
+ metadata.gz: ee2922a83f750237cd27e3ce0b2e0fd3ca4c80480334398695603308b522e3a9830e59388bc181ecc5be13d1aa4261c1b28f7611d9fdc9212a4c6256fc17135a
7
+ data.tar.gz: 37a6191847035deb12caeaef9f99d35be5b6a3c6e4e5166cafec28ae2be86e4704ea903e54d625f8972bf71181115e6cfaee396a216116d5cbf1feecd09bc629
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.1.0 - April 8, 2024
2
+ - Minor response fixes
3
+ - Update gamefic dependency
4
+
1
5
  ## 3.0.0 - January 27, 2024
2
6
  - Updates for Gamefic 3.0
3
7
 
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in gamefic-standard.gemspec
4
4
  gemspec
5
-
6
- gem 'gamefic', git: 'https://github.com/castwide/gamefic.git', branch: 'v3'
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
37
37
 
38
38
  spec.required_ruby_version = '>= 2.7.0'
39
39
 
40
- spec.add_dependency 'gamefic', '~> 3.0'
40
+ spec.add_dependency 'gamefic', '~> 3.1'
41
41
 
42
42
  spec.add_development_dependency 'opal', '~> 1.7'
43
43
  spec.add_development_dependency 'opal-rspec', '~> 1.0'
@@ -1,7 +1,7 @@
1
1
  module Gamefic
2
2
  module Standard
3
3
  script do
4
- respond :look do |actor, _|
4
+ respond :look do |actor|
5
5
  actor.execute :look, actor.room
6
6
  end
7
7
 
@@ -2,7 +2,7 @@ Gamefic::Standard.script do
2
2
  meta nil, plaintext do |actor, string|
3
3
  words = string.keywords
4
4
  list = actor.epic.synonyms
5
- if list.include?(words[0].to_sym)
5
+ if list.include?(words[0]&.to_sym)
6
6
  if words.length > 1
7
7
  found = []
8
8
  avail = available(ambiguous: true)
@@ -18,7 +18,7 @@ Gamefic::Standard.script do
18
18
  elsif found.one?
19
19
  actor.tell %(I recognize "#{words[0]}" and "#{found.first.name}" but could not understand them together.)
20
20
  else
21
- actor.tell %(I recognize "#{words[0]} I'm not sure if "#{words[1..-1].join(' ')}" means #{found.map(&:definitely).join_or}.)
21
+ actor.tell %(I recognize "#{words[0]}" but I'm not sure if "#{words[1..-1].join(' ')}" means #{found.map(&:definitely).join_or}.)
22
22
  end
23
23
  else
24
24
  actor.tell %(I recognize "#{words[0]}" as a verb but could not understand it in this context.)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Gamefic::Standard.script do
4
- respond :repeat do |actor|
4
+ meta :repeat do |actor|
5
5
  if actor.last_input && !actor.last_input.empty?
6
6
  actor.tell "Repeating <kbd>\"#{actor.last_input}\"</kbd>..."
7
7
  actor.queue.push actor.last_input
@@ -4,15 +4,15 @@ Gamefic::Standard.script do
4
4
  # Save, Restore, and Undo need to be handled by the game client. They have
5
5
  # default implementations here to make them available in help.
6
6
 
7
- respond :save do |actor|
7
+ meta :save do |actor|
8
8
  actor.tell "<kbd>Save</kbd> is not available."
9
9
  end
10
10
 
11
- respond :restore do |actor|
11
+ meta :restore do |actor|
12
12
  actor.tell "<kbd>Restore</kbd> is not available."
13
13
  end
14
14
 
15
- respond :undo do |actor|
15
+ meta :undo do |actor|
16
16
  actor.tell "<kbd>Undo</kbd> is not available."
17
17
  end
18
18
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gamefic
4
4
  module Standard
5
- VERSION = '3.0.0'
5
+ VERSION = '3.1.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamefic-standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-27 00:00:00.000000000 Z
11
+ date: 2024-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gamefic
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: '3.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opal
29
29
  requirement: !ruby/object:Gem::Requirement