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 CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'conjugate'
3
- s.version = '1.4.2'
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
@@ -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
- t
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
@@ -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
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjugate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: