dicks 0.02 → 0.03

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/dicks +13 -25
  2. metadata +3 -3
data/bin/dicks CHANGED
@@ -1,35 +1,23 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # dicks.rb, now with more logic!
4
- #
3
+ # dicks v0.03 - Concise version thanks to a kind
4
+ # redditor (ageddyn)
5
+ #
5
6
  # Brutish way to print out a bunch of ascii dongs.
6
- # usage: './dicks.rb n' will print n dicks of length
7
- # 1 or more.
7
+ # usage: 'dicks n' will print n dicks. Defaults
8
+ # to 5 dicks if no argument is called.
8
9
  #
9
- # Defaults to 5 dicks if no argument is called.
10
-
11
- # this is what dongs are made of
12
- BALLS = "8"
13
- SHAFT = "="
14
- HEAD = "D"
10
+ # Sperm patch coming soon.
11
+ # -BTS
15
12
 
16
- # set a min for Kernel#rand
17
- def range_rand(min,max)
18
- min + rand(max-min)
19
- end
13
+ # if you wish to make a dong from scratch
14
+ BALLS,SHAFT,HEAD = "8","=","D"
20
15
 
21
- # make a dick... this should be cleaned up
16
+ # you must first create the universe
22
17
  def dicks (n)
23
- n.times do
24
- print BALLS
25
- range_rand(1,10).times { print SHAFT }
26
- print "#{HEAD}\n"
18
+ n.times do
19
+ puts "#{BALLS}#{SHAFT * (rand(10)+1)}#{HEAD}"
27
20
  end
28
21
  end
29
22
 
30
- if ARGV.empty?
31
- dicks(5)
32
- else
33
- k = ARGV.pop.to_i
34
- dicks(k)
35
- end
23
+ dicks(ARGV.empty? ? 5 : ARGV.pop.to_i)
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- version: "0.02"
7
+ - 3
8
+ version: "0.03"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Boliver T. Shagnasty
@@ -17,7 +17,7 @@ date: 2010-03-04 00:00:00 -06:00
17
17
  default_executable:
18
18
  dependencies: []
19
19
 
20
- description: Prints ASCII dicks...
20
+ description: Prints an arbitrary number of ASCII dicks (default is 5).
21
21
  email:
22
22
  executables:
23
23
  - dicks