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: 06e203e211932c3eb65555f5e21ba22903bff1bf
4
- data.tar.gz: f1eb4beb06009731c90147724eb3f5990c75b0ab
3
+ metadata.gz: bd953b9ff22a4d7be7680f23db9582cb3fe51eca
4
+ data.tar.gz: d09063494e0754a0672164acb943550f205f411d
5
5
  SHA512:
6
- metadata.gz: 69e8d9a4d9dd5d15d279eea5104004ee1cf65aa72b339b142f4babe717c260cedd67f640234ecf65a6f50e4f598ef08d169c66f7d65df2f416d8ba0c7196c53e
7
- data.tar.gz: 74c0a01d3feb5648735e6a5620c3b71afb4360f0c2a3ffa94636c40f227b89889eb8ad687e6853c36cbe90c61552e8ffc82280ba492d5b760b5200857d6e8419
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
- ending = endings_path.const_get(const)[index]
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
@@ -1,5 +1,5 @@
1
1
  module LLT
2
2
  class FormBuilder
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -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
- @nom.match(/men$/) && @stem.match(/min$/)
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.3
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-08 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler