dorian-shuffle 0.2.2 → 0.3.0

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/shuffle +6 -2
  3. metadata +3 -4
  4. data/lib/dorian/shuffle.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ac62c3435fa83c9e55674d3484a83b6642cf5ee24b930b683f8ca2b47f5c361
4
- data.tar.gz: 5f35ce71b909166eac8f2067c65bf213a4f088047112f4b1a7800750129cca55
3
+ metadata.gz: fb2914598914f9c7bd83e3e20f7d1fea7ee360b3e97f5947c52669d8722b0af5
4
+ data.tar.gz: d5f6f67613685f854e99c7b99d91e70605fee5f03fcc7fe8a822cc07282acc61
5
5
  SHA512:
6
- metadata.gz: 1760199cfc99d3500349f9cbe8281128e79eb398b5dd2b532959dc1d1a3d275236901ae2304aa17c2545dce7b02343231311457de9f211eb2e7679dcb9a010cc
7
- data.tar.gz: dcad47eb4d7cd22c56752beb1d531dd607bbd998532e7aed4b7e65624a2d7ae8178b53095c0604ef9989f779eecb909792998a2145bbe7b42c92b65085663ee0
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-shuffle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
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-03-09 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
@@ -21,8 +21,7 @@ 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