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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f09b8c8b131616312fcf1403fd71d81c766684c27b0827765673b7c00b03a867
4
- data.tar.gz: 70650545f1a9d6d03ff1a41b584be1d4c9852b5320a7f28e2849983811fa6277
3
+ metadata.gz: 0ad7446170226cd9f6f3b88270a86d1ef5d41776ca3cef6f6a5184d0d87f63bf
4
+ data.tar.gz: 6f3f3f3a03fc1531391ded5925780baeee571eedf2c15ef51540808286c45590
5
5
  SHA512:
6
- metadata.gz: cecaae7e7dedb5bb0434b3c5b80232922e71f1fcf5a6833866b8ada83684743a6f9965090b686d83a6470accef74321b78f0af377bece0c71954d0aeae763b7d
7
- data.tar.gz: cd65d310cdfc0d5d143499477f272dd62f8725ec2a55f3a5f81ca96732e425f946e5f68504bbbbce0ef18b28279daa6134c68e06153721efdc6363d3d0847e56
6
+ metadata.gz: 1bbe30bf223d6ba9a5dc8bcc048011b8055cca16f258e268e6bc287765056b377d25b15999505eb532c396da60e548c2cca9e932890b6ad5026a7ab2fce0131d
7
+ data.tar.gz: 7d8d6acca83a1ff942059fa766f3d65cd7e2e17181f48a1958adb63e87bcebc69900446e731c489b4981964cd8b3dd3e12381588786fa0bb119d2795cd7abc7e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- conjugate_french (0.1.1)
4
+ conjugate_french (0.1.2)
5
5
  json
6
6
  terminal-table
7
7
  thor
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/[USERNAME]/conjugate_french.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Martfed/conjugate_french.
36
36
 
37
37
 
38
38
  ## License
@@ -2,4 +2,8 @@
2
2
 
3
3
  require 'conjugate_french'
4
4
 
5
- ConjugateFrench::ConjugateCLI.start(ARGV)
5
+ if ARGV.size == 1
6
+ puts 'please add a correct verb after the verbe method call'
7
+ else
8
+ ConjugateFrench::ConjugateCLI.start(ARGV)
9
+ end
@@ -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 = 'Conjugate to quickly conjugate french verbes'
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
@@ -16,7 +16,11 @@ module ConjugateFrench
16
16
  verb_list['infinitif']['présent'][0] == verb
17
17
  end
18
18
 
19
- TENSES.each { |tense| puts table(tense, full_verb, verb) }
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
@@ -1,3 +1,3 @@
1
1
  module ConjugateFrench
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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.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-30 00:00:00.000000000 Z
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: Conjugate to quickly conjugate french verbes
117
+ summary: ConjugateFrench to quickly conjugate french verbes
117
118
  test_files: []