conjugate 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/conjugate.gemspec +1 -1
- data/lib/conjugate/common.rb +3 -1
- data/lib/conjugate/french.rb +0 -7
- data/lib/conjugate/spanish.rb +0 -7
- metadata +1 -1
data/conjugate.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'conjugate'
|
3
|
-
s.version = '1.4.
|
3
|
+
s.version = '1.4.3'
|
4
4
|
s.date = '2012-02-15'
|
5
5
|
s.summary = "Conjugate Verbs using a version of the templates defined here http://en.wiktionary.org/wiki/Category:Spanish_verb_inflection-table_templates"
|
6
6
|
s.description = s.summary
|
data/lib/conjugate/common.rb
CHANGED
@@ -76,7 +76,9 @@ module Common
|
|
76
76
|
# stubbed method individual languages override this to support multiple tenses names
|
77
77
|
def common_name(t)
|
78
78
|
return nil unless t
|
79
|
-
|
79
|
+
changable_names = {:past => :preterite}
|
80
|
+
actual_tense = changable_names[t.to_sym] || t
|
81
|
+
actual_tense
|
80
82
|
end
|
81
83
|
|
82
84
|
end
|
data/lib/conjugate/french.rb
CHANGED
@@ -19,12 +19,5 @@ module Conjugate
|
|
19
19
|
FrenchTemplates[(opts[:template] || find_irregular(opts[:verb]) || regular_ending(opts[:verb])).to_sym]
|
20
20
|
end
|
21
21
|
|
22
|
-
def common_name(t)
|
23
|
-
return nil unless t
|
24
|
-
changable_names = {:past => :preterite}
|
25
|
-
tense = changable_names[t.to_sym] || t
|
26
|
-
tense
|
27
|
-
end
|
28
|
-
|
29
22
|
end
|
30
23
|
end
|
data/lib/conjugate/spanish.rb
CHANGED
@@ -19,12 +19,5 @@ module Conjugate
|
|
19
19
|
SpanishTemplates[(opts[:template] || find_irregular(opts[:verb]) || regular_ending(opts[:verb])).to_sym]
|
20
20
|
end
|
21
21
|
|
22
|
-
def common_name(t)
|
23
|
-
return nil unless t
|
24
|
-
changable_names = {:past => :preterite}
|
25
|
-
tense = changable_names[t.to_sym] || t
|
26
|
-
tense
|
27
|
-
end
|
28
|
-
|
29
22
|
end
|
30
23
|
end
|