ruby_rockers 0.0.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.
@@ -0,0 +1,13 @@
1
+ require 'ruby_rockers/constants'
2
+ require 'ruby_rockers/helpers'
3
+ class RubyRockers
4
+ class << self
5
+ Constants::NAMES.each do |name|
6
+ define_method(name.initial) do
7
+ msg(name)
8
+ end
9
+ end
10
+ end
11
+
12
+
13
+ end
@@ -0,0 +1,26 @@
1
+ module Constants
2
+ NAMES = ['Amit Kumar',
3
+ 'Yashasree Barve',
4
+ 'Himanshu Joshi',
5
+ 'Manohar Amrutkar',
6
+ 'Prathiba Kn',
7
+ 'Adhiraj Rankhambe',
8
+ 'Gourav Tiwari',
9
+ 'Ashish Upadhayaye',
10
+ 'Manish Puri',
11
+ 'Amit Suryavanshi',
12
+ 'Ankit Gupta',
13
+ 'Atul Patel',
14
+ 'Aaditi Patel',
15
+ 'Ekta Verma',
16
+ 'Ankita Girish Kanitkar',
17
+ 'Manasi Shah',
18
+ 'Ankur Gera',
19
+ 'Amit Thawait',
20
+ 'Amit Suryavanshi',
21
+ 'Rashmi Yadav',
22
+ 'Karan Arora']
23
+
24
+ NEXT_LIFE = ['Plumber', 'Scientist','Carpenter','Teacher', 'Google Employee','Bollywood star','Don']
25
+ SEX = ['Male','Female']
26
+ end
@@ -0,0 +1,12 @@
1
+
2
+ class String
3
+ def initial
4
+ self.split[0][0,1].downcase + self.split[1][0,1].downcase
5
+ end
6
+ end
7
+
8
+ def msg(*args)
9
+ "Dear #{args[0]}, In your next life you will be a #{Constants::SEX.sample}!! Your Occupation will be a #{Constants::NEXT_LIFE.sample}!"
10
+
11
+ end
12
+
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_rockers
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ankit gupta
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-25 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Find your next life
15
+ email: ankit.gupta8898@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/ruby_rockers.rb
21
+ - lib/ruby_rockers/constants.rb
22
+ - lib/ruby_rockers/helpers.rb
23
+ homepage: https://github.com/ankit8898/ruby_rockers
24
+ licenses: []
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 1.8.10
44
+ signing_key:
45
+ specification_version: 3
46
+ summary: Find your next life
47
+ test_files: []