dorian-shuffle 0.2.1 → 0.3.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/shuffle +6 -2
  3. metadata +4 -5
  4. data/lib/dorian/shuffle.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f67205cbcb7057ce6afd982cc239ff19f7dcbc8b1ed9a85636abc44b0cf95c3
4
- data.tar.gz: ebfc99491f6d21ae489f023158d2512cae23b528e47f344acb2110c7e4eb79eb
3
+ metadata.gz: fb2914598914f9c7bd83e3e20f7d1fea7ee360b3e97f5947c52669d8722b0af5
4
+ data.tar.gz: d5f6f67613685f854e99c7b99d91e70605fee5f03fcc7fe8a822cc07282acc61
5
5
  SHA512:
6
- metadata.gz: 457d41ef8a94792194fc0f96a87b61c5797305ca1970195a00734161d26baa82ac44a698b55e16f6bfa80b424f375d2d0fc33691c38930c73fa9330b80b71c43
7
- data.tar.gz: f10f998de1975fb24db83373e64d822d8aa2816c2433de0354b76c971e4950fb29cfb618d360c05304ee1e43f96c18c559cfbebcfbf230f8669bdaf3d1ad3e49
6
+ metadata.gz: 6653629e7f25d9b6316523e9da79ffaefa8d2b13fe4f4a09049082855185c76210fa2da8b6a1addde8b2c820a14e2eaea3047475128c8f0450b8b3fda76345c8
7
+ data.tar.gz: a175fb95dc92052244343ab98121b49af4cb4816fda3e0f3704c1132018ce9bdb4cf40cd498d6408256f422d7b58b8f0db295a5e6c18610fbb2509c48ad89fb3
data/bin/shuffle CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require "dorian/shuffle"
5
- Dorian::Shuffle.run
4
+ if ARGV[0] == "--help" || ARGV[0] == "-h"
5
+ puts "USAGE: ... | shuffle"
6
+ exit
7
+ end
8
+
9
+ puts $stdin.each_line.to_a.shuffle
metadata CHANGED
@@ -1,28 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-shuffle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.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-02-08 00:00:00.000000000 Z
11
+ date: 2024-03-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Shuffles the lines of the input
15
15
 
16
16
  e.g. `ls | shuffle`
17
- email: dorian@dorianmarie.fr
17
+ email: dorian@dorianmarie.com
18
18
  executables:
19
19
  - shuffle
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
23
  - bin/shuffle
24
- - lib/dorian/shuffle.rb
25
- homepage: https://github.com/dorianmariecom/shuffle
24
+ homepage: https://github.com/dorianmariecom/dorian-shuffle
26
25
  licenses:
27
26
  - MIT
28
27
  metadata:
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Dorian
4
- class Shuffle
5
- def self.run
6
- if ARGV[0] == "--help" || ARGV[0] == "-h"
7
- puts "USAGE: ... | shuffle"
8
- exit
9
- end
10
-
11
- puts $stdin.each_line.to_a.shuffle
12
- end
13
- end
14
- end