dorian-times 0.3.1 → 0.4.0

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 +6 -2
  3. metadata +4 -5
  4. data/lib/dorian/times.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 983dad65170344c822affc18e658f377566fca44ef5b4862859afb30af88875a
4
- data.tar.gz: f88b4c5a0b57513cfad776d55a741503430f05319545052c28fbedbbc2feded5
3
+ metadata.gz: b4c2849b5200e0b016b5c9365602c3bed4d004f09fba2107d2366801cd16afca
4
+ data.tar.gz: 96ee8928aa52c529133cf4b4b8adc74b7e8c730d30bccbc2fb057b4ce52626cd
5
5
  SHA512:
6
- metadata.gz: d36e291dac68aa08c75996ec59038a7a81b477bf140a72fa24aa74d505b8497265da50ebb7cd77258cd9d332cc2d1c28864b84b64fab158a95e7eb4cfb5cd446
7
- data.tar.gz: bd37891b22068773b18bb30f914020e59337947208d96e3f12b873bc0b7a97db6f2fd7b24c1437f8c0567def145455b5f4071c8c808609d9a353c1ffdd88ddb7
6
+ metadata.gz: 19978a489099eeb3616264d5cf815cc5e48a09f07ae17fe1c9d9abed32c7670fc7e23469a414e1c4a0883337684a42a257f98b54044b2d4564e285b1482d0ee1
7
+ data.tar.gz: d6b5ed32f83ef65658548aaf77a46722a770caad2f8e7e9d20c4e5eaea3079cb0a213756c843b06e1cb66f17991605e58f812cd274863d26ec86d9d9c0531157
data/bin/times CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require "dorian/times"
5
- Dorian::Times.run
4
+ if ARGV.size != 1 || ARGV[0] == "--help" || ARGV[0] == "-h"
5
+ puts "USAGE: times N"
6
+ exit
7
+ end
8
+
9
+ ARGV.first.to_i.times { |i| puts i + 1 }
metadata CHANGED
@@ -1,28 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-times
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-08 00:00:00.000000000 Z
11
+ date: 2024-03-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Prints numbers from 0 to N
15
15
 
16
16
  e.g. `times 10`
17
- email: dorian@dorianmarie.fr
17
+ email: dorian@dorianmarie.com
18
18
  executables:
19
19
  - times
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
23
  - bin/times
24
- - lib/dorian/times.rb
25
- homepage: https://github.com/dorianmariecom/times
24
+ homepage: https://github.com/dorianmariecom/dorian-times
26
25
  licenses:
27
26
  - MIT
28
27
  metadata:
data/lib/dorian/times.rb DELETED
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Dorian
4
- class Times
5
- def self.run
6
- if ARGV.size != 1 || ARGV[0] == "--help" || ARGV[0] == "-h"
7
- puts "USAGE: times N"
8
- exit
9
- end
10
-
11
- ARGV.first.to_i.times { |i| puts i + 1 }
12
- end
13
- end
14
- end