magic_nine_ball 0.0.1 → 0.0.3

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/magic_nine_ball.rb +26 -0
  2. metadata +6 -3
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'magic_nine_ball'
4
+
5
+ class MagicNineBall
6
+
7
+ print "What is your question "
8
+ question = gets.chomp
9
+ array = ["Yes, in due time.",
10
+ "My sources say no.",
11
+ "Definitely not.",
12
+ "Yes.",
13
+ "You will have to wait.",
14
+ "I have my doubts.",
15
+ "Outlook so so.",
16
+ "Looks good to me!",
17
+ "Who knows?",
18
+ "Looking good!",
19
+ "Probably.",
20
+ "Are you kidding?",
21
+ "Go for it!",
22
+ "Don't bet on it.",
23
+ "Forget about it."]
24
+ @array = array
25
+ puts @array.sample
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_nine_ball
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,13 +13,16 @@ date: 2013-11-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Type in your question to get your fortune!
15
15
  email: trosborn@gmail.com
16
- executables: []
16
+ executables:
17
+ - magic_nine_ball.rb
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - lib/MagicNineBall.rb
22
+ - bin/magic_nine_ball.rb
21
23
  homepage: http://rubygems.org/gems/magic_eight_ball
22
- licenses: []
24
+ licenses:
25
+ - MIT
23
26
  post_install_message:
24
27
  rdoc_options: []
25
28
  require_paths: