dorian-shuffle 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f66d07b15101eedbdb134b1c9c97f25c71cccd603965c24aa24a8d0b6b0ccd2
4
- data.tar.gz: f05d28109cd8beaf4b360ff8cd29bf63bca57c20a99357fc64c4ee1d0188e73b
3
+ metadata.gz: 5623fe35931f578ba4a68ae66cb8a3d87aa450128cccf3469c51814916937d3e
4
+ data.tar.gz: 306c65a104a99153c81c1f0cc571cfe8c3d555fc0bc16436e8ef09517697876c
5
5
  SHA512:
6
- metadata.gz: 4ecb679c4cb8ba8c771113f026bef9e4143717c057f7ccddf1bd08b65c2576f8064985a262e911b58cd603a438fa2c8c19c38b137fdab02ac60fe802a921651a
7
- data.tar.gz: 141c4040ebe9a3971f72cb07bdc81a60155d265998141056faa447a24e9be08115068951a60e1d9108d31282758499934a3be032fa826eb1613efb5e4da2e55e
6
+ metadata.gz: c6fba67832fea31e35ecc60f75d66d5bd428a547f9329497c5ff62aa84e5d115036ab4b44138be7847d2271279b79b1bd96953e42430a763a7f155516bfb4641
7
+ data.tar.gz: 3b6fcbdf60cdfff467d9a84c430ddcb7adb6c1637fa460915e1f4bec97ca7b1b22171f0f1a53d15f2d3ff65fd1e3c989ceffe5dcf8dca7d8b7f3e7c6494f3caa
File without changes
@@ -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,28 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-shuffle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
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-08 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: e.g. `ls | dorian-shuffle`
13
+ description: |-
14
+ Shuffles the lines of the input
15
+
16
+ e.g. `ls | shuffle`
14
17
  email: dorian@dorianmarie.fr
15
18
  executables:
16
- - dorian-shuffle
19
+ - shuffle
17
20
  extensions: []
18
21
  extra_rdoc_files: []
19
22
  files:
20
- - bin/dorian-shuffle
23
+ - bin/shuffle
21
24
  - lib/dorian/shuffle.rb
22
25
  homepage: https://github.com/dorianmariefr/shuffle
23
26
  licenses:
24
27
  - MIT
25
- metadata: {}
28
+ metadata:
29
+ rubygems_mfa_required: 'true'
26
30
  post_install_message:
27
31
  rdoc_options: []
28
32
  require_paths:
@@ -38,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
42
  - !ruby/object:Gem::Version
39
43
  version: '0'
40
44
  requirements: []
41
- rubygems_version: 3.2.19
45
+ rubygems_version: 3.2.22
42
46
  signing_key:
43
47
  specification_version: 4
44
48
  summary: Shuffles the lines of the input