verbs 2.3.0 → 2.3.1

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
  SHA256:
3
- metadata.gz: 39ca9a05484aea9907d487a1fd2d6c51bbe969040ae748411640076ae9cb4b50
4
- data.tar.gz: fd81415cc5cad33a4ae06c1e7b45d26edb64bfc94acbf2fc2c0e29f576a228c1
3
+ metadata.gz: cbdce4813c2a5b0f03af2fb7ec38baabc6eb64bd4394cc94fa4c330cbfbb5ab1
4
+ data.tar.gz: acf35a43147e32c004af60c591ae4070752856a108f11436fcb3faf9af955d11
5
5
  SHA512:
6
- metadata.gz: 81bc1a48d71745e5443985abc0a7bb14c9e5548820eb1fa8c6455d81a14baa2928009a07a00e4d6561fac7afdfa3ba313b1e610a8af14e949c505fa6ec7f27cf
7
- data.tar.gz: c16c9318396e3edf0f9b13c78f8c9e84e35bed61bc9fd05714e9009022e2df79c59b1d5057cbeafd22a8bda172c9292d15a35773e2b281f0753cc68c6552f66f
6
+ metadata.gz: c6a4752df14975eddac3c03a21e89e707078b0768ab2b177b6021be8e8d0cc2a80f6622b68397a100cd88232bcfce199b585da9c0e72f7bb5a190346a5b939c6
7
+ data.tar.gz: bc648fd9cf599de7a9743ac2810f0e26b6c4f677e238ef9b65ef827ad9d325057ead500227ea2a292358cfd9a607ba93366fa2f249818da7f6ef6e7e0fa8fcef
@@ -4,17 +4,17 @@ module Verbs
4
4
  def initialize(base)
5
5
  @base = base
6
6
  end
7
-
7
+
8
8
  def conjugate(options)
9
9
  words = @base.to_s.split(' ')
10
10
  words.shift if words.first.downcase == 'to'
11
- infinitive = words.shift.to_sym
11
+ infinitive = words.shift.downcase.to_sym
12
12
  conjugation = ::Verbs::Conjugator.conjugate infinitive, options
13
13
  conjugated = words.unshift(conjugation.to_s).join(' ')
14
14
  @base.is_a?(Symbol) ? conjugated.to_sym : conjugated
15
15
  end
16
16
  end
17
-
17
+
18
18
  module Access
19
19
  def verb
20
20
  ::Verbs::Verblike::Wrapper.new self
@@ -1,3 +1,3 @@
1
1
  module Verbs
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end
@@ -109,6 +109,7 @@ class TestVerbs < Test::Unit::TestCase
109
109
  def test_core_access
110
110
  assert_equal :accepts, :accept.verb.conjugate(:tense => :present, :person => :third, :plurality => :singular, :aspect => :habitual)
111
111
  assert_equal 'accepts', 'accept'.verb.conjugate(:tense => :present, :person => :third, :plurality => :singular, :aspect => :habitual)
112
+ assert_equal 'Girl is Near', 'Be Near'.verb.conjugate(:subject => 'Girl')
112
113
  end
113
114
  def test_aspects
114
115
  Verbs::Conjugator.with_options :person => :first, :plurality => :singular, :subject => true do |standard|
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.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Rossmeissl