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 +4 -4
- data/CHANGELOG.md +4 -0
- data/gamefic-grammar.gemspec +1 -1
- data/lib/gamefic/grammar/attributes.rb +12 -0
- data/lib/gamefic/grammar/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3a9929ff5f61c145a8313dd12bfcac1983228998a77843b82ef99bde8b543ef
|
4
|
+
data.tar.gz: 34b01a834509769446e54ea64e88e6221274f5927522a9bd8d129bc5013793ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa60192ceb35d50ed0e405308d46584d55d59b03e9fdaee99d7c58a336ef5d3137ebff4b24586cb94f403ee5cb7556fdb25fadbdadcc27735a0a5a48e6b0f59b
|
7
|
+
data.tar.gz: 84c15cad22e67cf244e476866413f9238050fea1845c28dde168954cd1773ff1d0785ffd461e54b8db59c96f6b94b357b05646e6a07b55652a1d0bd75d90d3dc
|
data/CHANGELOG.md
CHANGED
data/gamefic-grammar.gemspec
CHANGED
@@ -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', '
|
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
|
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.
|
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-
|
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
|