conjugate 1.6.0 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +37 -1
- data/Guardfile +10 -1
- data/README.markdown +2 -4
- data/conjugate.gemspec +3 -1
- data/lib/conjugate/french_templates/irregular_verbs.rb +0 -4
- data/lib/conjugate/french_templates/templates.rb +2 -96
- data/spec/spanish_spec.rb +3 -0
- metadata +29 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62694fcd1b97309b90bfb9b45d46e08953136870
|
4
|
+
data.tar.gz: e2f0b278ce4cd83dfe83194c80137a3fc371aa5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3293687d94223d341c1d1146fc9e7d65cfdb2d5db7b47e9629f93ae2f11110bfbdf33ec0210171dfffef2e5db7b9bb92e86ac4d0f990db60d59acf56cc111ee1
|
7
|
+
data.tar.gz: 6c262b319dc762846f24a0a0ed4014f37b29221b144c65ae3339c6eb8aa8be3027f45ef155b2b535863587043d7f1a6d972872ae05d1caa5008bee7a048f3016
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,44 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
conjugate (1.6.
|
4
|
+
conjugate (1.6.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
8
8
|
specs:
|
9
|
+
coderay (1.1.0)
|
9
10
|
diff-lcs (1.2.5)
|
11
|
+
ffi (1.9.10)
|
12
|
+
formatador (0.2.5)
|
13
|
+
guard (2.12.8)
|
14
|
+
formatador (>= 0.2.4)
|
15
|
+
listen (>= 2.7, <= 4.0)
|
16
|
+
lumberjack (~> 1.0)
|
17
|
+
nenv (~> 0.1)
|
18
|
+
notiffany (~> 0.0)
|
19
|
+
pry (>= 0.9.12)
|
20
|
+
shellany (~> 0.0)
|
21
|
+
thor (>= 0.18.1)
|
22
|
+
guard-rspec (4.3.1)
|
23
|
+
guard (~> 2.1)
|
24
|
+
rspec (>= 2.14, < 4.0)
|
25
|
+
listen (3.0.1)
|
26
|
+
rb-fsevent (>= 0.9.3)
|
27
|
+
rb-inotify (>= 0.9)
|
28
|
+
lumberjack (1.0.9)
|
29
|
+
method_source (0.8.2)
|
30
|
+
nenv (0.2.0)
|
31
|
+
notiffany (0.0.6)
|
32
|
+
nenv (~> 0.1)
|
33
|
+
shellany (~> 0.0)
|
34
|
+
pry (0.10.1)
|
35
|
+
coderay (~> 1.1.0)
|
36
|
+
method_source (~> 0.8.1)
|
37
|
+
slop (~> 3.4)
|
10
38
|
rake (10.1.1)
|
39
|
+
rb-fsevent (0.9.5)
|
40
|
+
rb-inotify (0.9.5)
|
41
|
+
ffi (>= 0.5.0)
|
11
42
|
rspec (2.14.1)
|
12
43
|
rspec-core (~> 2.14.0)
|
13
44
|
rspec-expectations (~> 2.14.0)
|
@@ -16,11 +47,16 @@ GEM
|
|
16
47
|
rspec-expectations (2.14.5)
|
17
48
|
diff-lcs (>= 1.1.3, < 2.0)
|
18
49
|
rspec-mocks (2.14.6)
|
50
|
+
shellany (0.0.1)
|
51
|
+
slop (3.6.0)
|
52
|
+
thor (0.19.1)
|
19
53
|
|
20
54
|
PLATFORMS
|
21
55
|
ruby
|
22
56
|
|
23
57
|
DEPENDENCIES
|
24
58
|
conjugate!
|
59
|
+
guard
|
60
|
+
guard-rspec
|
25
61
|
rake
|
26
62
|
rspec
|
data/Guardfile
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
# A sample Guardfile
|
2
2
|
# More info at https://github.com/guard/guard#readme
|
3
3
|
|
4
|
-
|
4
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
5
|
+
# rspec may be run, below are examples of the most common uses.
|
6
|
+
# * bundler: 'bundle exec rspec'
|
7
|
+
# * bundler binstubs: 'bin/rspec'
|
8
|
+
# * spring: 'bin/rsspec' (This will use spring if running and you have
|
9
|
+
# installed the spring binstubs per the docs)
|
10
|
+
# * zeus: 'zeus rspec' (requires the server to be started separetly)
|
11
|
+
# * 'just' rspec: 'rspec'
|
12
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
5
13
|
watch(%r{^spec/.+_spec\.rb$})
|
6
14
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
7
15
|
watch('spec/spec_helper.rb') { "spec" }
|
@@ -13,6 +21,7 @@ guard :rspec do
|
|
13
21
|
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
14
22
|
watch('config/routes.rb') { "spec/routing" }
|
15
23
|
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
24
|
+
watch('spec/rails_helper.rb') { "spec" }
|
16
25
|
|
17
26
|
# Capybara features specs
|
18
27
|
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
data/README.markdown
CHANGED
@@ -3,7 +3,7 @@ Conjugate
|
|
3
3
|
[![Build Status](https://travis-ci.org/JeremyGeros/Conjugate.png?branch=master)](https://travis-ci.org/JeremyGeros/Conjugate)
|
4
4
|
|
5
5
|
Conjugates verbs into their proper form given a pronoun. Can conjugate irregular verbs that are in this list https://gist.github.com/1841995
|
6
|
-
Currently only has support for Spanish.
|
6
|
+
Currently only has support for Spanish and French.
|
7
7
|
|
8
8
|
```
|
9
9
|
Conjugate::Spanish.conjugate(:pronoun => :yo, :verb => 'tener')
|
@@ -16,7 +16,7 @@ Conjugate::Spanish.conjugate(:pronoun => :yo, :verb => 'tener', :tense => :past)
|
|
16
16
|
=> tuve
|
17
17
|
```
|
18
18
|
|
19
|
-
Also now works for French
|
19
|
+
Also now works for French
|
20
20
|
|
21
21
|
```
|
22
22
|
Conjugate::French.conjugate(:pronoun => :je, :verb => 'acheter', :tense => :present)
|
@@ -62,5 +62,3 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
62
62
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
63
63
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
64
64
|
|
65
|
-
|
66
|
-
|
data/conjugate.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'conjugate'
|
3
|
-
gem.version = '1.6.
|
3
|
+
gem.version = '1.6.2'
|
4
4
|
gem.date = '2015-07-08'
|
5
5
|
gem.summary = "Conjugate Verbs using a version of the templates defined here http://en.wiktionary.org/wiki/Category:Spanish_verb_inflection-table_templates"
|
6
6
|
gem.description = gem.summary
|
@@ -17,4 +17,6 @@ Gem::Specification.new do |gem|
|
|
17
17
|
|
18
18
|
gem.add_development_dependency 'rspec'
|
19
19
|
gem.add_development_dependency 'rake'
|
20
|
+
gem.add_development_dependency 'guard'
|
21
|
+
gem.add_development_dependency 'guard-rspec'
|
20
22
|
end
|
@@ -221,8 +221,6 @@ FrenchIrregularVerbs = {
|
|
221
221
|
|
222
222
|
'rejeter' => :e_xx_er,
|
223
223
|
|
224
|
-
'dormir' => :ir_s,
|
225
|
-
|
226
224
|
'endormir' => :ir_s,
|
227
225
|
|
228
226
|
'redormir' => :ir_s,
|
@@ -323,8 +321,6 @@ FrenchIrregularVerbs = {
|
|
323
321
|
|
324
322
|
'geindre' => :re_gn,
|
325
323
|
|
326
|
-
'peindre' => :re_gn,
|
327
|
-
|
328
324
|
'repeindre' => :re_gn,
|
329
325
|
|
330
326
|
'restreindre' => :re_gn,
|
@@ -2965,53 +2965,6 @@ FrenchTemplates = {
|
|
2965
2965
|
:past_participle => "{{{1}}}i"
|
2966
2966
|
},
|
2967
2967
|
|
2968
|
-
:lire => {
|
2969
|
-
:infinitive => "{{{1}}}lire",
|
2970
|
-
:present => {
|
2971
|
-
:je => "{{{1}}}lis",
|
2972
|
-
:tu => "{{{1}}}lis",
|
2973
|
-
:il => "{{{1}}}lit",
|
2974
|
-
:nous => "{{{1}}}lisons",
|
2975
|
-
:vous => "{{{1}}}lisez",
|
2976
|
-
:ils => "{{{1}}}lisent"
|
2977
|
-
},
|
2978
|
-
:imperfect => {
|
2979
|
-
:je => "{{{1}}}lisais",
|
2980
|
-
:tu => "{{{1}}}lisais",
|
2981
|
-
:il => "{{{1}}}lisait",
|
2982
|
-
:nous => "{{{1}}}lisions",
|
2983
|
-
:vous => "{{{1}}}lisiez",
|
2984
|
-
:ils => "{{{1}}}lisaient"
|
2985
|
-
},
|
2986
|
-
:past_historic => {
|
2987
|
-
:je => "{{{1}}}lus",
|
2988
|
-
:tu => "{{{1}}}lus",
|
2989
|
-
:il => "{{{1}}}lut",
|
2990
|
-
:nous => "{{{1}}}lûmes",
|
2991
|
-
:vous => "{{{1}}}lûtes",
|
2992
|
-
:ils => "{{{1}}}lurent"
|
2993
|
-
},
|
2994
|
-
:future => {
|
2995
|
-
:je => "{{{1}}}lirai",
|
2996
|
-
:tu => "{{{1}}}liras",
|
2997
|
-
:il => "{{{1}}}lira",
|
2998
|
-
:nous => "{{{1}}}lirons",
|
2999
|
-
:vous => "{{{1}}}lirez",
|
3000
|
-
:ils => "{{{1}}}liront"
|
3001
|
-
},
|
3002
|
-
:conditional => {
|
3003
|
-
:je => "{{{1}}}lirais",
|
3004
|
-
:tu => "{{{1}}}lirais",
|
3005
|
-
:il => "{{{1}}}lirait",
|
3006
|
-
:nous => "{{{1}}}lirions",
|
3007
|
-
:vous => "{{{1}}}liriez",
|
3008
|
-
:ils => "{{{1}}}liraient"
|
3009
|
-
},
|
3010
|
-
|
3011
|
-
:present_participle => "{{{1}}}lisant",
|
3012
|
-
:past_participle => "{{{1}}}lu"
|
3013
|
-
},
|
3014
|
-
|
3015
2968
|
:luire => {
|
3016
2969
|
:infinitive => "{{{1}}}luire",
|
3017
2970
|
:present => {
|
@@ -4703,54 +4656,7 @@ FrenchTemplates = {
|
|
4703
4656
|
:present_participle => "taisant",
|
4704
4657
|
:past_participle => "tu"
|
4705
4658
|
},
|
4706
|
-
|
4707
|
-
:tenir => {
|
4708
|
-
:infinitive => "{{{1}}}tenir",
|
4709
|
-
:present => {
|
4710
|
-
:je => "{{{1}}}tiens",
|
4711
|
-
:tu => "{{{1}}}tiens",
|
4712
|
-
:il => "{{{1}}}tient",
|
4713
|
-
:nous => "{{{1}}}tenons",
|
4714
|
-
:vous => "{{{1}}}tenez",
|
4715
|
-
:ils => "{{{1}}}tiennent"
|
4716
|
-
},
|
4717
|
-
:imperfect => {
|
4718
|
-
:je => "{{{1}}}tenais",
|
4719
|
-
:tu => "{{{1}}}tenais",
|
4720
|
-
:il => "{{{1}}}tenait",
|
4721
|
-
:nous => "{{{1}}}tenions",
|
4722
|
-
:vous => "{{{1}}}teniez",
|
4723
|
-
:ils => "{{{1}}}tenaient"
|
4724
|
-
},
|
4725
|
-
:past_historic => {
|
4726
|
-
:je => "{{{1}}}tins",
|
4727
|
-
:tu => "{{{1}}}tins",
|
4728
|
-
:il => "{{{1}}}tint",
|
4729
|
-
:nous => "{{{1}}}tînmes",
|
4730
|
-
:vous => "{{{1}}}tîntes",
|
4731
|
-
:ils => "{{{1}}}tinrent"
|
4732
|
-
},
|
4733
|
-
:future => {
|
4734
|
-
:je => "{{{1}}}tiendrai",
|
4735
|
-
:tu => "{{{1}}}tiendras",
|
4736
|
-
:il => "{{{1}}}tiendra",
|
4737
|
-
:nous => "{{{1}}}tiendrons",
|
4738
|
-
:vous => "{{{1}}}tiendrez",
|
4739
|
-
:ils => "{{{1}}}tiendront"
|
4740
|
-
},
|
4741
|
-
:conditional => {
|
4742
|
-
:je => "{{{1}}}tiendrais",
|
4743
|
-
:tu => "{{{1}}}tiendrais",
|
4744
|
-
:il => "{{{1}}}tiendrait",
|
4745
|
-
:nous => "{{{1}}}tiendrions",
|
4746
|
-
:vous => "{{{1}}}tiendriez",
|
4747
|
-
:ils => "{{{1}}}tiendraient"
|
4748
|
-
},
|
4749
|
-
|
4750
|
-
:present_participle => "{{{1}}}tenant",
|
4751
|
-
:past_participle => "{{{1}}}tenu"
|
4752
|
-
},
|
4753
|
-
|
4659
|
+
|
4754
4660
|
:traire => {
|
4755
4661
|
:infinitive => "traire",
|
4756
4662
|
:present => {
|
@@ -5373,4 +5279,4 @@ FrenchTemplates = {
|
|
5373
5279
|
}
|
5374
5280
|
|
5375
5281
|
|
5376
|
-
}
|
5282
|
+
}
|
data/spec/spanish_spec.rb
CHANGED
@@ -109,6 +109,9 @@ describe 'Spanish Conjugations' do
|
|
109
109
|
|
110
110
|
verb = Conjugate::Spanish.conjugate({verb: 'ir', tense: :future, pronoun: :yo})
|
111
111
|
expect(verb).to eq('iré')
|
112
|
+
|
113
|
+
verb = Conjugate::Spanish.conjugate(:pronoun => :yo, :verb => 'tener', :tense => :past)
|
114
|
+
expect(verb).to eq('tuve')
|
112
115
|
end
|
113
116
|
|
114
117
|
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.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Geros
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: guard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
description: Conjugate Verbs using a version of the templates defined here http://en.wiktionary.org/wiki/Category:Spanish_verb_inflection-table_templates
|
42
70
|
email: jeremy@govocab.com
|
43
71
|
executables: []
|