dorian-times 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/times +6 -2
  3. metadata +3 -4
  4. data/lib/dorian/times.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 657fdb81415dd2a021430b1629969b0163ac66cbd211c698a082fd54dca7502d
4
- data.tar.gz: a62c14526b3a149428ae8805df21a9580d765b0e7d730d49e09771d83ef8a741
3
+ metadata.gz: b4c2849b5200e0b016b5c9365602c3bed4d004f09fba2107d2366801cd16afca
4
+ data.tar.gz: 96ee8928aa52c529133cf4b4b8adc74b7e8c730d30bccbc2fb057b4ce52626cd
5
5
  SHA512:
6
- metadata.gz: 159dce9a2b49c4881552e209d81197f3f64dac67c407b8a4be017e1ba780d7b56fe25787e0b8fabe1e6482c07038a51eb3f0a4f8bc269da0b2cd6892d1bade43
7
- data.tar.gz: ddf6bea1707dfe1c82f0e7535a771f8364af9f5e98bc73a3a54218818d95e22a250f6f6ff272a24d34b7586a529c5923c1a1ef210977ef62718731b2769f5423
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-times
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
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-03-09 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
@@ -21,8 +21,7 @@ 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