conjugate_french 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/LICENSE +21 -0
- data/README.md +1 -1
- data/bin/conjugate_french +5 -1
- data/conjugate_french.gemspec +1 -1
- data/lib/conjugate_french.rb +5 -3
- data/lib/conjugate_french/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ad7446170226cd9f6f3b88270a86d1ef5d41776ca3cef6f6a5184d0d87f63bf
|
4
|
+
data.tar.gz: 6f3f3f3a03fc1531391ded5925780baeee571eedf2c15ef51540808286c45590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bbe30bf223d6ba9a5dc8bcc048011b8055cca16f258e268e6bc287765056b377d25b15999505eb532c396da60e548c2cca9e932890b6ad5026a7ab2fce0131d
|
7
|
+
data.tar.gz: 7d8d6acca83a1ff942059fa766f3d65cd7e2e17181f48a1958adb63e87bcebc69900446e731c489b4981964cd8b3dd3e12381588786fa0bb119d2795cd7abc7e
|
data/Gemfile.lock
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 Federico Ⓥ
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Martfed/conjugate_french.
|
36
36
|
|
37
37
|
|
38
38
|
## License
|
data/bin/conjugate_french
CHANGED
data/conjugate_french.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.authors = ['Martfed']
|
7
7
|
spec.email = ['federicodm90@gmail.com']
|
8
8
|
|
9
|
-
spec.summary = '
|
9
|
+
spec.summary = 'ConjugateFrench to quickly conjugate french verbes'
|
10
10
|
spec.homepage = 'https://rubygems.org/gems/conjugate_french'
|
11
11
|
spec.license = 'MIT'
|
12
12
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
data/lib/conjugate_french.rb
CHANGED
@@ -16,7 +16,11 @@ module ConjugateFrench
|
|
16
16
|
verb_list['infinitif']['présent'][0] == verb
|
17
17
|
end
|
18
18
|
|
19
|
-
|
19
|
+
if full_verb.empty?
|
20
|
+
puts 'The verb you entered was not found. There is probably a typo.'
|
21
|
+
else
|
22
|
+
TENSES.each { |tense| puts table(tense, full_verb, verb) }
|
23
|
+
end
|
20
24
|
end
|
21
25
|
|
22
26
|
private
|
@@ -49,8 +53,6 @@ module ConjugateFrench
|
|
49
53
|
|
50
54
|
def headings(tense, full_verb)
|
51
55
|
[nil, full_verb[0][tense].keys]
|
52
|
-
rescue NoMethodError
|
53
|
-
'no verb found'
|
54
56
|
end
|
55
57
|
end
|
56
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjugate_french
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martfed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- ".travis.yml"
|
82
82
|
- Gemfile
|
83
83
|
- Gemfile.lock
|
84
|
+
- LICENSE
|
84
85
|
- LICENSE.txt
|
85
86
|
- README.md
|
86
87
|
- Rakefile
|
@@ -113,5 +114,5 @@ requirements: []
|
|
113
114
|
rubygems_version: 3.1.2
|
114
115
|
signing_key:
|
115
116
|
specification_version: 4
|
116
|
-
summary:
|
117
|
+
summary: ConjugateFrench to quickly conjugate french verbes
|
117
118
|
test_files: []
|