your_mom 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/README.rdoc +12 -0
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/bin/your_mom +4 -5
  5. data/lib/dumb.txt +1 -1
  6. data/lib/your_mom.rb +16 -1
  7. metadata +28 -41
@@ -2,10 +2,22 @@
2
2
 
3
3
  A collection of words joined in sentence appropriately relevant to the title, ergo your mom.
4
4
 
5
+ == Install
6
+
7
+ gem install your_mom
8
+
5
9
  == Usage
6
10
 
7
11
  your_mom #=> truth
8
12
 
13
+ == TODO
14
+
15
+ * have multiple joke files
16
+ * alias the command to yo_mama and yo_mamma
17
+ * no arguments any joke from any file
18
+ * arguments like so_stupid or so_fat give the expected joke
19
+ * alias so_stupid to so_dumb, etc
20
+
9
21
  == Copyright
10
22
 
11
23
  Copyright (c) 2010 Adam Bair. See LICENSE for details.
data/Rakefile CHANGED
@@ -42,7 +42,7 @@ task :test => :check_dependencies
42
42
 
43
43
  task :default => :test
44
44
 
45
- require 'rake/rdoctask'
45
+ require 'rdoc/task'
46
46
  Rake::RDocTask.new do |rdoc|
47
47
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
48
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.2.0
@@ -1,9 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
+ require File.join(File.dirname(__FILE__), "..", "lib/your_mom")
2
3
 
3
- mom = ''
4
- File.open(File.expand_path(File.dirname(__FILE__) + '/../lib/dumb.txt')).each do |line|
5
- mom = line if rand($.) < 1
6
- end
7
- puts mom
4
+ your_mom = YourMom.new
5
+ puts your_mom.is_so_dumb
6
+ # like really dumb
8
7
 
9
8
 
@@ -40,4 +40,4 @@ Your mom is so dumb that under "Education" on her job apllication, she put "Hook
40
40
  Your mom is so dumb she put out the cigarette butt that was heating your house.
41
41
  Your mom is so dumb she put lipstick on her forehead, talking about she was trying to makeup her mind.
42
42
  Your mom is so dumb she watches "The Three Stooges" and takes notes.
43
-
43
+ Yo mama so old her birth certificate says expired on it.
@@ -1 +1,16 @@
1
- require 'stupid.rb'
1
+ class YourMom
2
+ def initialize
3
+ @path = File.join(File.dirname(__FILE__), "dumb.txt")
4
+ end
5
+
6
+ def is_so_dumb
7
+ data[rand(data.length)].strip
8
+ end
9
+ alias isd is_so_dumb
10
+
11
+ def data
12
+ return @data if @data
13
+ f = File.open(@path)
14
+ @data ||= f.readlines
15
+ end
16
+ end
metadata CHANGED
@@ -1,33 +1,26 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: your_mom
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 2
9
- version: 0.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Adam Bair
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-03-17 00:00:00 -04:00
18
- default_executable: your_mom
12
+ date: 2012-02-14 00:00:00.000000000Z
19
13
  dependencies: []
20
-
21
- description: A collection of words joined in sentence appropriately relevant to the title, ergo your mom.
14
+ description: A collection of words joined in sentence appropriately relevant to the
15
+ title, ergo your mom.
22
16
  email: adambair@gmail.com
23
- executables:
17
+ executables:
24
18
  - your_mom
25
19
  extensions: []
26
-
27
- extra_rdoc_files:
20
+ extra_rdoc_files:
28
21
  - LICENSE
29
22
  - README.rdoc
30
- files:
23
+ files:
31
24
  - LICENSE
32
25
  - README.rdoc
33
26
  - Rakefile
@@ -35,35 +28,29 @@ files:
35
28
  - bin/your_mom
36
29
  - lib/dumb.txt
37
30
  - lib/your_mom.rb
38
- has_rdoc: true
39
31
  homepage: http://github.com/adambair/your_mom
40
32
  licenses: []
41
-
42
33
  post_install_message:
43
- rdoc_options:
44
- - --charset=UTF-8
45
- require_paths:
34
+ rdoc_options: []
35
+ require_paths:
46
36
  - lib
47
- required_ruby_version: !ruby/object:Gem::Requirement
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- segments:
52
- - 0
53
- version: "0"
54
- required_rubygems_version: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- version: "0"
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
61
49
  requirements: []
62
-
63
50
  rubyforge_project:
64
- rubygems_version: 1.3.6
51
+ rubygems_version: 1.8.15
65
52
  signing_key:
66
53
  specification_version: 3
67
- summary: A collection of words joined in sentence appropriately relevant to the title, ergo your mom.
54
+ summary: A collection of words joined in sentence appropriately relevant to the title,
55
+ ergo your mom.
68
56
  test_files: []
69
-