llt-form_builder 0.0.3 → 0.0.4
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd953b9ff22a4d7be7680f23db9582cb3fe51eca
|
4
|
+
data.tar.gz: d09063494e0754a0672164acb943550f205f411d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e6a9098decac8cc382fb5b5137cb723ec882b0d5216d16c8df7402e6dc1e3429277a5b5a554be9e2e929ad9027d1ccde8712163e302750adff6d75b3e0b0f48
|
7
|
+
data.tar.gz: b47aabf9f1f3bbce3d5bfc73ca276bc784c20f825fa2df91134d2c09d2f1931fe31324c298f079597c29de468bdef0b5a56db4e745db1a8d767d21b9d1384243
|
@@ -131,7 +131,8 @@ module LLT
|
|
131
131
|
|
132
132
|
def special_ending(word, index)
|
133
133
|
endings_path.constants.each do |const|
|
134
|
-
|
134
|
+
# the rescue clause is a primitive jruby hack - needs more work
|
135
|
+
ending = endings_path.const_get(const)[index] rescue nil
|
135
136
|
return ending if word.end_with?(ending.to_s)
|
136
137
|
end
|
137
138
|
nil
|
data/lib/llt/stem/noun_stem.rb
CHANGED
@@ -19,7 +19,8 @@ module LLT
|
|
19
19
|
case @inflection_class
|
20
20
|
when 3
|
21
21
|
@nom.match(/[id]?on?$/) && @stem.match(/d?in$|i?on$/) ||
|
22
|
-
|
22
|
+
@nom.match(/men$/) && @stem.match(/min$/) ||
|
23
|
+
@nom.match(/uis$/) && @stem.match(/in$/)
|
23
24
|
when 33
|
24
25
|
@nom.match(/nis$/) && @stem.match(/n$/)
|
25
26
|
end
|
@@ -55,6 +55,12 @@ describe LLT::Stem::NounStem do
|
|
55
55
|
it "for other third declension nouns" do
|
56
56
|
stem = ns.new(:noun, { nom: "finis", stem: "fin", inflection_class: 33 })
|
57
57
|
stem.third_decl_with_possible_ve_abl?.should be_false
|
58
|
+
|
59
|
+
stem = ns.new(:noun, { nom: "sanguis", stem: "sanguin", inflection_class: 3 })
|
60
|
+
stem.third_decl_with_possible_ne_abl?.should be_true
|
61
|
+
|
62
|
+
stem = ns.new(:noun, { nom: "miles", stem: "milit", inflection_class: 3 })
|
63
|
+
stem.third_decl_with_possible_ne_abl?.should be_false
|
58
64
|
end
|
59
65
|
end
|
60
66
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: llt-form_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LFDM
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|