fucking_goddamn_new 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc ADDED
@@ -0,0 +1,17 @@
1
+ = Fucking Goddamn New
2
+
3
+ Everyone gets pissed at their code sometimes.
4
+
5
+ Why shouldn't it work?
6
+
7
+ == Installation
8
+
9
+ $ sudo gem install fucking-goddamn-new
10
+
11
+ == Usage
12
+
13
+ $ irb
14
+ >> require 'fucking_goddamn_new'
15
+ => true
16
+ >> Object.fucking.goddamn.new
17
+ => #<Object:0x101486ed8>
@@ -0,0 +1,11 @@
1
+ class Object
2
+
3
+ %w( fucking fuck damn god damn goddamn bitch chickenfucker motherfucker ).each do |word|
4
+ sym = word.to_sym
5
+ define_method(sym) { self } unless respond_to?(sym)
6
+
7
+ sym = "#{ word }!".to_sym
8
+ define_method(sym) { self } unless respond_to?(sym)
9
+ end
10
+
11
+ end
@@ -0,0 +1,23 @@
1
+ require File.dirname(__FILE__) + '/../lib/fucking_goddamn_new'
2
+
3
+ class Dog
4
+
5
+ attr_accessor :name
6
+
7
+ def initialize options={}
8
+ options.each { |k,v| instance_variable_set("@#{k}", v) }
9
+ end
10
+
11
+ end
12
+
13
+ describe 'Swearing at code' do
14
+
15
+ it 'should feel good!' do
16
+ rover = Dog.new :name => 'rover'
17
+ rover.name.should == 'rover'
18
+
19
+ fido = Dog.fucking.goddamn.new :name => 'fido'
20
+ fido.name.should == 'fido'
21
+ end
22
+
23
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fucking_goddamn_new
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - BM5k
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-02-23 00:00:00 -07:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: Swear in your code!
22
+ email: me@bm5k.com
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files:
28
+ - README.rdoc
29
+ files:
30
+ - README.rdoc
31
+ - lib/fucking_goddamn_new.rb
32
+ - spec/fucking_goddamn_new_spec.rb
33
+ has_rdoc: true
34
+ homepage: http://github.com/BM5k/fucking-goddamn-new
35
+ licenses: []
36
+
37
+ post_install_message:
38
+ rdoc_options: []
39
+
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ requirements: []
57
+
58
+ rubyforge_project:
59
+ rubygems_version: 1.3.6
60
+ signing_key:
61
+ specification_version: 3
62
+ summary: Why the fuck not
63
+ test_files:
64
+ - spec/fucking_goddamn_new_spec.rb