verbs 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/verbs/conjugator.rb +2 -0
- data/lib/verbs/version.rb +1 -1
- data/test/test_verbs.rb +1 -0
- metadata +3 -3
data/lib/verbs/conjugator.rb
CHANGED
@@ -117,6 +117,8 @@ module Verbs
|
|
117
117
|
infinitive.to_s.concat('ing').to_sym
|
118
118
|
elsif infinitive.to_s.match(/ie$/)
|
119
119
|
infinitive.to_s[0..-2].concat('ying').to_sym
|
120
|
+
elsif infinitive.to_s.match(/e$/)
|
121
|
+
infinitive.to_s[0..-2].concat('ing').to_sym
|
120
122
|
else
|
121
123
|
infinitive.to_s[0..-1].concat('ing').to_sym
|
122
124
|
end
|
data/lib/verbs/version.rb
CHANGED
data/test/test_verbs.rb
CHANGED
@@ -65,6 +65,7 @@ class TestVerbs < Test::Unit::TestCase
|
|
65
65
|
end
|
66
66
|
def test_regular_conjugation_with_terminal_e
|
67
67
|
assert_equal 'created', Verbs::Conjugator.conjugate(:create, :tense => :past, :person => :first, :plurality => :singular, :aspect => :perfective)
|
68
|
+
assert_equal 'was hiding', Verbs::Conjugator.conjugate(:hide, :tense => :past, :person => :first, :plurality => :singular, :aspect => :progressive)
|
68
69
|
end
|
69
70
|
def test_regular_conjugation_with_unusual_terminal_e
|
70
71
|
assert_equal 'dyed', Verbs::Conjugator.conjugate(:dye, :tense => :past, :person => :first, :plurality => :singular, :aspect => :perfective)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: verbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
segments:
|
100
100
|
- 0
|
101
|
-
hash:
|
101
|
+
hash: -499867661
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
none: false
|
104
104
|
requirements:
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
segments:
|
109
109
|
- 0
|
110
|
-
hash:
|
110
|
+
hash: -499867661
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
113
|
rubygems_version: 1.8.24
|