dorian-shuffle 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dorian/shuffle.rb +5 -0
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe67669bf2ba29bc0844e8bb5b92c5e02674253ba3214bdbd5155604aa60524c
4
- data.tar.gz: '0741137830cef478fd4685df286976b4e98728c7b8d610f0f91abba555c8cabe'
3
+ metadata.gz: 5623fe35931f578ba4a68ae66cb8a3d87aa450128cccf3469c51814916937d3e
4
+ data.tar.gz: 306c65a104a99153c81c1f0cc571cfe8c3d555fc0bc16436e8ef09517697876c
5
5
  SHA512:
6
- metadata.gz: 34ebe0a46bbae34c932f6c0e7a896175e34498f42e4bd0bb77604adac53e43935a870f3d2b02f4264c6319b1aab58daa22301822f9edfa4792627c261a55d975
7
- data.tar.gz: d5db16a67ab630e6d7cfc58e85b7ea22634246da421f62ca6f8f04cd18ac4c6cff7a39a2070d4a465f9f5eaddadb6c293b51c83db3d0edb5bb3176fd504b594e
6
+ metadata.gz: c6fba67832fea31e35ecc60f75d66d5bd428a547f9329497c5ff62aa84e5d115036ab4b44138be7847d2271279b79b1bd96953e42430a763a7f155516bfb4641
7
+ data.tar.gz: 3b6fcbdf60cdfff467d9a84c430ddcb7adb6c1637fa460915e1f4bec97ca7b1b22171f0f1a53d15f2d3ff65fd1e3c989ceffe5dcf8dca7d8b7f3e7c6494f3caa
@@ -1,6 +1,11 @@
1
1
  module Dorian
2
2
  class Shuffle
3
3
  def self.run
4
+ if ARGV[0] == "--help" || ARGV[0] == "-h"
5
+ puts "USAGE: ... | shuffle"
6
+ exit
7
+ end
8
+
4
9
  puts STDIN.each_line.to_a.shuffle
5
10
  end
6
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-shuffle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.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: 2021-10-10 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Shuffles the lines of the input
@@ -25,7 +25,8 @@ files:
25
25
  homepage: https://github.com/dorianmariefr/shuffle
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: