medieval_latina 2.0.1 → 2.0.5

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.
@@ -1,3 +1,3 @@
1
1
  class MedievalLatina
2
- VERSION = "2.0.1".freeze
2
+ VERSION = "2.0.5".freeze
3
3
  end
@@ -37,31 +37,31 @@ class MedievalLatina
37
37
  end
38
38
 
39
39
  def self.adjective?(word)
40
- ADJECTIVES.member?(prepare_word(word))
40
+ ADJECTIVES.key?(prepare_word(word))
41
41
  end
42
42
 
43
43
  def self.adverb?(word)
44
- ADVERBS.member?(prepare_word(word))
44
+ ADVERBS.key?(prepare_word(word))
45
45
  end
46
46
 
47
47
  def self.noun?(word)
48
- NOUNS.member?(prepare_word(word))
48
+ NOUNS.key?(prepare_word(word))
49
49
  end
50
50
 
51
51
  def self.verb?(word)
52
- VERBS.member?(prepare_word(word))
52
+ VERBS.key?(prepare_word(word))
53
53
  end
54
54
 
55
55
  def self.adjectives
56
- ADJECTIVES
56
+ ADJECTIVES.keys
57
57
  end
58
58
 
59
59
  def self.adverbs
60
- ADVERBS
60
+ ADVERBS.keys
61
61
  end
62
62
 
63
63
  def self.nouns
64
- NOUNS
64
+ NOUNS.keys
65
65
  end
66
66
 
67
67
  def self.rejoin_words(array)
@@ -74,7 +74,7 @@ class MedievalLatina
74
74
  end
75
75
 
76
76
  def self.verbs
77
- VERBS
77
+ VERBS.keys
78
78
  end
79
79
 
80
80
  def self.word?(string)
@@ -82,7 +82,13 @@ class MedievalLatina
82
82
  end
83
83
 
84
84
  def self.words
85
- ADJECTIVES | ADVERBS | Set.new(DICTIONARY.keys) | NOUNS | VERBS
85
+ [
86
+ ADJECTIVES,
87
+ ADVERBS,
88
+ DICTIONARY,
89
+ NOUNS,
90
+ VERBS
91
+ ].flat_map(&:keys).each_with_object(Set.new) { |word, set| set.add(word) }
86
92
  end
87
93
 
88
94
  def initialize(word)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: medieval_latina
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jayson Virissimo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n