dorian-times 0.1.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 +7 -0
  2. data/bin/times +4 -0
  3. data/lib/dorian/times.rb +14 -0
  4. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bdcb785f38a3c0c8ddf6fa79c17a86480f819cda19bb2a0c916584a8e6830e75
4
+ data.tar.gz: f47ca094d3fabd867b123c27d3d10251a3254fc5bf968aaeb4d8b8881cf3f2c8
5
+ SHA512:
6
+ metadata.gz: 1a80f5998c56dbe7036d21dbadfff87fecea528e859abf36af6e36ccc71ee677f0adaf3568f64debb96c5f730053ee35251dbda11648a6ab6d2b52d8b82f6b85
7
+ data.tar.gz: b5d8beba368511237918474dcaee8999566524128663ead9d2ec1ccf8805b80a05356a11519159efab76ffee3fcaf46f50e3673ccbb9ecf97602dae0f004ea82
data/bin/times ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'dorian/times'
4
+ Dorian::Times.run
@@ -0,0 +1,14 @@
1
+ module Dorian
2
+ class Times
3
+ def self.run
4
+ if ARGV.size != 1
5
+ puts "USAGE: times N"
6
+ exit
7
+ end
8
+
9
+ ARGV.first.to_i.times do |i|
10
+ puts i
11
+ end
12
+ end
13
+ end
14
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dorian-times
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dorian Marié
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-10-08 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: e.g. `times 10
14
+ email: dorian@dorianmarie.fr
15
+ executables:
16
+ - times
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/times
21
+ - lib/dorian/times.rb
22
+ homepage: https://github.com/dorianmariefr/times
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 3.2.19
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Prints numbers from 0 to N
45
+ test_files: []