fucking_goddamn_new 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 507049ef9230a84aee1296d053a2616dc45d837b
4
+ data.tar.gz: 8a9878d1cde11596c9c6fc3b7eea8028e16b123a
5
+ SHA512:
6
+ metadata.gz: 676db31031e414d4fb36306e5201dd8df37da2a51347512b48b14b5f63930b77e063b99329373f9349a24f02232f4c59451b3ab6476df47b75db5d73cb321c54
7
+ data.tar.gz: a9751ef30f2c715e9ad45f97bede2ba4f88edebed629bf409f76b19f7e35b9a858c04c63e860f769c2c6a63146e2516a549c7ef6407879264f045692fae97ac1
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ ._*
2
+ .DS*
3
+ .swp*
4
+ coverage/*
5
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
data/.travis.yml ADDED
@@ -0,0 +1,15 @@
1
+ bundler_args: --without development
2
+
3
+ cache: bundler
4
+
5
+ global:
6
+ secure: EJphsOUplpH3xvVvkkpdjPyZZAztukomPVCzlfm3AzD5rVFX4vsWl9woQafw6i3slM/E/80LMIi8dFlXrPOLbivk+5uYprfO1QziXiLzcUuJ1oDO8wreWRbO84vXZMN+LyvAPh6zS2XiKI2v80deyaC1M5vakQ3eWbMJYIDZLXw=
7
+
8
+ language: ruby
9
+
10
+ rvm:
11
+ - 1.9.3
12
+ - 2.0.0
13
+ - 2.1.2
14
+
15
+ script: bundle exec rake spec
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :development_group => :test
4
+
5
+ group :development do
6
+ gem 'pry'
7
+ gem 'pry-doc'
8
+
9
+ # install the appropriate pry debug tool
10
+ gem 'pry-byebug', require: false, platform: 'ruby_20'
11
+ gem 'pry-debugger', require: false, platform: 'ruby_19'
12
+
13
+ gem 'travis'
14
+ end
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # Fucking Goddamn New
2
+
3
+ [![rubygems][gem-image]][gem] [![build status][ci-image]][ci] [![code quality][cq-image]][cq] [![code quality][cc-image]][cq]
4
+
5
+ Everyone gets pissed at their code sometimes.
6
+
7
+ Why shouldn't it work?
8
+
9
+ ## Installation
10
+
11
+ `$ gem install fucking_goddamn_new`
12
+
13
+ or add `gem 'fucking_goddamn_new'` to your gemfile
14
+
15
+ ## Usage
16
+
17
+ ```
18
+ $ irb
19
+ >> require 'fucking_goddamn_new'
20
+ #> true
21
+ >> Object.fucking.goddamn.new
22
+ #> #<Object:0x007fab0602f6d0>
23
+ >> Object.fucking(:work).goddammit
24
+ #> Object
25
+ >> Object.fucking.new
26
+ #> #<Object:0x007fab06056ac8>
27
+ ```
28
+
29
+ <!-- links -->
30
+ [ci]: http://travis-ci.org/BM5k/fucking-goddamn-new "build status"
31
+ [cq]: https://codeclimate.com/github/BM5k/fucking-goddamn-new "code quality"
32
+ [gem]: http://rubygems.org/gems/fucking_goddamn_new
33
+
34
+ <!-- images -->
35
+ [cc-image]: https://codeclimate.com/github/BM5k/fucking-goddamn-new/coverage.png
36
+ [ci-image]: https://travis-ci.org/BM5k/fucking-goddamn-new.svg?branch=master
37
+ [cq-image]: https://codeclimate.com/github/BM5k/fucking-goddamn-new.png
38
+ [gem-image]: https://badge.fury.io/rb/fucking_goddamn_new.svg
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new :spec
5
+ task :default => :spec
@@ -0,0 +1,23 @@
1
+ $:.push File.expand_path('../lib', __FILE__)
2
+ require 'fucking_goddamn_new/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'fucking_goddamn_new'
6
+ s.description = 'Swear in your code!'
7
+ s.summary = 'Why the fuck not'
8
+ s.authors = %w[ BM5k ]
9
+ s.email = %w[ me@bm5k.com ]
10
+ s.homepage = 'http://github.com/BM5k/fucking-goddamn-new'
11
+
12
+ s.version = FuckingGoddamnNew::VERSION
13
+ s.date = '2010-02-23'
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ['lib']
19
+
20
+ s.add_development_dependency 'rake'
21
+ s.add_development_dependency 'rspec', '~> 2'
22
+ s.add_development_dependency 'codeclimate-test-reporter'
23
+ end
@@ -0,0 +1,3 @@
1
+ module FuckingGoddamnNew
2
+ VERSION = '1.0.0'
3
+ end
@@ -1,11 +1,35 @@
1
- class Object
1
+ module FuckingGoddamnNew
2
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)
3
+ DICTIONARY = %w[
4
+ ass
5
+ bitch
6
+ chickenfucker
7
+ cocksucker
8
+ cunt
9
+ damn
10
+ dick
11
+ fuck
12
+ fucking
13
+ god
14
+ goddammit
15
+ goddamn
16
+ motherfucker
17
+ piece_of_shit
18
+ piss
19
+ shit
20
+ tits
21
+ ]
6
22
 
7
- sym = "#{ word }!".to_sym
8
- define_method(sym) { self } unless respond_to?(sym)
23
+ DICTIONARY.each do |word|
24
+ yell = "#{ word }!"
25
+ define_method(word) { |*args| self } unless respond_to?(word)
26
+ define_method(yell) { |*args| self } unless respond_to?(yell)
27
+ end
28
+
29
+ def self.extended base
30
+ base.instance_eval { include FuckingGoddamnNew }
9
31
  end
10
32
 
11
33
  end
34
+
35
+ Object.extend FuckingGoddamnNew
@@ -1,23 +1,23 @@
1
- require File.dirname(__FILE__) + '/../lib/fucking_goddamn_new'
1
+ require 'spec_helper'
2
2
 
3
- class Dog
3
+ describe Object do
4
4
 
5
- attr_accessor :name
5
+ subject(:object) { Object.new }
6
6
 
7
- def initialize options={}
8
- options.each { |k,v| instance_variable_set("@#{k}", v) }
9
- end
10
-
11
- end
7
+ FuckingGoddamnNew::DICTIONARY.each do |word|
12
8
 
13
- describe 'Swearing at code' do
9
+ describe ".#{ word }" do
10
+ it 'returns self' do
11
+ Object.send(word).should == Object
12
+ end
13
+ end
14
14
 
15
- it 'should feel good!' do
16
- rover = Dog.new :name => 'rover'
17
- rover.name.should == 'rover'
15
+ describe "##{ word }" do
16
+ it 'returns self' do
17
+ object.send(word).should == object
18
+ end
19
+ end
18
20
 
19
- fido = Dog.fucking.goddamn.new :name => 'fido'
20
- fido.name.should == 'fido'
21
21
  end
22
22
 
23
23
  end
@@ -0,0 +1,6 @@
1
+ require 'codeclimate-test-reporter'
2
+ CodeClimate::TestReporter.start
3
+
4
+ require File.dirname(__FILE__) + '/../lib/fucking_goddamn_new'
5
+
6
+ require 'pry' unless ENV['CI']
metadata CHANGED
@@ -1,64 +1,99 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
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
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - BM5k
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-02-23 00:00:00 -07:00
18
- default_executable:
19
- dependencies: []
20
-
11
+ date: 2010-02-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: codeclimate-test-reporter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
21
55
  description: Swear in your code!
22
- email: me@bm5k.com
56
+ email:
57
+ - me@bm5k.com
23
58
  executables: []
24
-
25
59
  extensions: []
26
-
27
- extra_rdoc_files:
28
- - README.rdoc
29
- files:
30
- - README.rdoc
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
+ - Gemfile
66
+ - README.md
67
+ - Rakefile
68
+ - fucking_goddamn_new.gemspec
31
69
  - lib/fucking_goddamn_new.rb
70
+ - lib/fucking_goddamn_new/version.rb
32
71
  - spec/fucking_goddamn_new_spec.rb
33
- has_rdoc: true
72
+ - spec/spec_helper.rb
34
73
  homepage: http://github.com/BM5k/fucking-goddamn-new
35
74
  licenses: []
36
-
75
+ metadata: {}
37
76
  post_install_message:
38
77
  rdoc_options: []
39
-
40
- require_paths:
78
+ require_paths:
41
79
  - lib
42
- required_ruby_version: !ruby/object:Gem::Requirement
43
- requirements:
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
44
82
  - - ">="
45
- - !ruby/object:Gem::Version
46
- segments:
47
- - 0
48
- version: "0"
49
- required_rubygems_version: !ruby/object:Gem::Requirement
50
- requirements:
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
51
87
  - - ">="
52
- - !ruby/object:Gem::Version
53
- segments:
54
- - 0
55
- version: "0"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
56
90
  requirements: []
57
-
58
91
  rubyforge_project:
59
- rubygems_version: 1.3.6
92
+ rubygems_version: 2.2.2
60
93
  signing_key:
61
- specification_version: 3
94
+ specification_version: 4
62
95
  summary: Why the fuck not
63
- test_files:
96
+ test_files:
64
97
  - spec/fucking_goddamn_new_spec.rb
98
+ - spec/spec_helper.rb
99
+ has_rdoc:
data/README.rdoc DELETED
@@ -1,17 +0,0 @@
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>