dorian-times 0.3.2 → 0.4.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 +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: e1aa03b5b6df1cea2713410ede4987d2e4c2c2e67fb776d75b17197b104da90d
4
+ data.tar.gz: efe2a1d62d94ad22b15fbdfdb0971e86934dc8def1767e94dc3a48d574d8f4c9
5
5
  SHA512:
6
- metadata.gz: 159dce9a2b49c4881552e209d81197f3f64dac67c407b8a4be017e1ba780d7b56fe25787e0b8fabe1e6482c07038a51eb3f0a4f8bc269da0b2cd6892d1bade43
7
- data.tar.gz: ddf6bea1707dfe1c82f0e7535a771f8364af9f5e98bc73a3a54218818d95e22a250f6f6ff272a24d34b7586a529c5923c1a1ef210977ef62718731b2769f5423
6
+ metadata.gz: bd1ea050b3e240f671bbbb608a4ec3412b1b3dcc6ea1fd4694b110dcda97a5e70dab5e0ecd7993a8a065c87430cb4c800217fd4bde6bfd745d70f371d43c73d0
7
+ data.tar.gz: 24817b08af6a01198ad32348fea9ecd89480859fd018663ed66c5ef293a7756581d4a9628fc341d283572986e136291c3e490c6f9a6e052870f701268160302f
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.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: 2024-03-09 00:00:00.000000000 Z
11
+ date: 2024-04-03 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