dorian-times 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/times +2 -1
  3. data/lib/dorian/times.rb +4 -2
  4. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47322ff50860db49a582a4afab2f0a28a386496fa6f9c7bb58038cce44f57c80
4
- data.tar.gz: 198bd2b59be468eeefcd6794af2282e83c1b020b94404bad5adc28441af21bb3
3
+ metadata.gz: 983dad65170344c822affc18e658f377566fca44ef5b4862859afb30af88875a
4
+ data.tar.gz: f88b4c5a0b57513cfad776d55a741503430f05319545052c28fbedbbc2feded5
5
5
  SHA512:
6
- metadata.gz: f45e1d20efd9c852a86d5aaf415b6e17e4857457918d869f9e8ea3f97d6b085f7ed8ab6ea34e4bd40ece6b8dd3426c2724c67e216fa3c83301970ba6279a6459
7
- data.tar.gz: 507cfac90318e4b8293a73ae475f4a33025a3a7bcecefe2669996a29d2be1a01084d17f38e08d099f7d4941c97ee05f68dd506709d318e329f8bba68a140a31c
6
+ metadata.gz: d36e291dac68aa08c75996ec59038a7a81b477bf140a72fa24aa74d505b8497265da50ebb7cd77258cd9d332cc2d1c28864b84b64fab158a95e7eb4cfb5cd446
7
+ data.tar.gz: bd37891b22068773b18bb30f914020e59337947208d96e3f12b873bc0b7a97db6f2fd7b24c1437f8c0567def145455b5f4071c8c808609d9a353c1ffdd88ddb7
data/bin/times CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
- require 'dorian/times'
4
+ require "dorian/times"
4
5
  Dorian::Times.run
data/lib/dorian/times.rb CHANGED
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Dorian
2
4
  class Times
3
5
  def self.run
4
- if ARGV.size != 1
5
- puts 'USAGE: times N'
6
+ if ARGV.size != 1 || ARGV[0] == "--help" || ARGV[0] == "-h"
7
+ puts "USAGE: times N"
6
8
  exit
7
9
  end
8
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-times
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Prints numbers from 0 to N
@@ -22,10 +22,11 @@ extra_rdoc_files: []
22
22
  files:
23
23
  - bin/times
24
24
  - lib/dorian/times.rb
25
- homepage: https://github.com/dorianmariefr/times
25
+ homepage: https://github.com/dorianmariecom/times
26
26
  licenses:
27
27
  - MIT
28
- metadata: {}
28
+ metadata:
29
+ rubygems_mfa_required: 'true'
29
30
  post_install_message:
30
31
  rdoc_options: []
31
32
  require_paths:
@@ -41,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
42
  - !ruby/object:Gem::Version
42
43
  version: '0'
43
44
  requirements: []
44
- rubygems_version: 3.2.19
45
+ rubygems_version: 3.5.3
45
46
  signing_key:
46
47
  specification_version: 4
47
48
  summary: Prints numbers from 0 to N