dicks 0.02

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 +35 -0
  2. metadata +61 -0
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # dicks.rb, now with more logic!
4
+ #
5
+ # 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.
8
+ #
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"
15
+
16
+ # set a min for Kernel#rand
17
+ def range_rand(min,max)
18
+ min + rand(max-min)
19
+ end
20
+
21
+ # make a dick... this should be cleaned up
22
+ def dicks (n)
23
+ n.times do
24
+ print BALLS
25
+ range_rand(1,10).times { print SHAFT }
26
+ print "#{HEAD}\n"
27
+ end
28
+ end
29
+
30
+ if ARGV.empty?
31
+ dicks(5)
32
+ else
33
+ k = ARGV.pop.to_i
34
+ dicks(k)
35
+ end
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dicks
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ version: "0.02"
9
+ platform: ruby
10
+ authors:
11
+ - Boliver T. Shagnasty
12
+ autorequire:
13
+ bindir: bin
14
+ cert_chain: []
15
+
16
+ date: 2010-03-04 00:00:00 -06:00
17
+ default_executable:
18
+ dependencies: []
19
+
20
+ description: Prints ASCII dicks...
21
+ email:
22
+ executables:
23
+ - dicks
24
+ extensions: []
25
+
26
+ extra_rdoc_files: []
27
+
28
+ files:
29
+ - bin/dicks
30
+ has_rdoc: true
31
+ homepage:
32
+ licenses: []
33
+
34
+ post_install_message:
35
+ rdoc_options: []
36
+
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ segments:
51
+ - 0
52
+ version: "0"
53
+ requirements: []
54
+
55
+ rubyforge_project:
56
+ rubygems_version: 1.3.6
57
+ signing_key:
58
+ specification_version: 3
59
+ summary: 8==D
60
+ test_files: []
61
+