gamefic-grammar 1.0.0 → 1.1.0

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: 10008329b01a95915decf94ff527edfc8517ff482c65ae88acda2dd742d7f87a
4
- data.tar.gz: 3ba359d9beea9c2ae52f2ddfc82688e5867c784cff3d08eee7a8aee09303e47c
3
+ metadata.gz: e3a9929ff5f61c145a8313dd12bfcac1983228998a77843b82ef99bde8b543ef
4
+ data.tar.gz: 34b01a834509769446e54ea64e88e6221274f5927522a9bd8d129bc5013793ae
5
5
  SHA512:
6
- metadata.gz: c294e15930f57094f6225b76bfaba7eda92eb277c4e4a0aebb82064a79b0b53ba0f620c82d91f0f17dcc6a0c7d272b8aa2e4dd566ed6a3d03a7f5843b41071a8
7
- data.tar.gz: 51d6b790ff732baba0271624cace49fba93c4144798d39a6689fdf8c2ff9adb9b61549695e5c6f5e2399ef7525bde0d7e2d10e7a2e4a0ac8184bc9f9cdee738e
6
+ metadata.gz: fa60192ceb35d50ed0e405308d46584d55d59b03e9fdaee99d7c58a336ef5d3137ebff4b24586cb94f403ee5cb7556fdb25fadbdadcc27735a0a5a48e6b0f59b
7
+ data.tar.gz: 84c15cad22e67cf244e476866413f9238050fea1845c28dde168954cd1773ff1d0785ffd461e54b8db59c96f6b94b357b05646e6a07b55652a1d0bd75d90d3dc
data/CHANGELOG.md CHANGED
@@ -1,2 +1,6 @@
1
+ ## 1.1.0
2
+ - Attributes#otherize
3
+ - Allow gamefic-4.0
4
+
1
5
  ## 1.0.0 - September 30, 2024
2
6
  - First release
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  # Uncomment to register a new dependency of your gem
35
35
  # spec.add_dependency "example-gem", "~> 1.0"
36
- spec.add_dependency 'gamefic', '~> 3.0'
36
+ spec.add_dependency 'gamefic', '>= 3.0'
37
37
 
38
38
  spec.add_development_dependency 'opal-rspec', '~> 1.0'
39
39
  spec.add_development_dependency 'opal-sprockets', '~> 1.0'
@@ -44,6 +44,18 @@ module Gamefic
44
44
  plural? ? plural_text : singular_text
45
45
  end
46
46
 
47
+ # Select a phrase based on the entity's subjective pronoun.
48
+ #
49
+ # @example
50
+ # entity.otherize('is', they: 'are')
51
+ #
52
+ # @param default [String]
53
+ # @param opts [Hash]
54
+ # @return [String]
55
+ def otherize default, **opts
56
+ opts[subjective.to_sym] || default
57
+ end
58
+
47
59
  def objective
48
60
  Pronoun.objective self
49
61
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gamefic
4
4
  module Grammar
5
- VERSION = '1.0.0'
5
+ VERSION = '1.1.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamefic-grammar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.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-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gamefic
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
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
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency