youre_doing_it_wrong 1.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.
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 James Tucker
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ module YoureDoingItWrong
2
+ module_function
3
+
4
+ def do_it_right!
5
+ warn "[YDIW] The noise starts here, if you hear a peep from me, you're evil"
6
+ [Object, Kernel, Class, Module].each do |c|
7
+ c.class_eval do
8
+ def method_added *a
9
+ warn "[YDIW] You did it wrong @ #{caller[1]} (method_added)"
10
+ super if defined? super
11
+ end
12
+
13
+ alias singleton_method_added method_added
14
+
15
+ def extended(base)
16
+ warn "[YDIW] You did it wrong @ #{caller[1]} (extend)"
17
+ super if defined? super
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,8 @@
1
+ Gem::Specification.new("youre_doing_it_wrong", "1.0.0") do |s|
2
+ s.authors = ["James Tucker"]
3
+ s.email = ["raggi@google.com"]
4
+ s.description = "Warns you if you're doing it wrong"
5
+ s.summary = s.description
6
+ s.homepage = "https://github.com/raggi/youre_doing_it_wrong"
7
+ s.files = `git ls-files`.split($/)
8
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: youre_doing_it_wrong
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - James Tucker
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2013-01-03 00:00:00 Z
19
+ dependencies: []
20
+
21
+ description: Warns you if you're doing it wrong
22
+ email:
23
+ - raggi@google.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - LICENSE
32
+ - lib/youre_doing_it_wrong.rb
33
+ - youre_doing_it_wrong.gemspec
34
+ homepage: https://github.com/raggi/youre_doing_it_wrong
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
+ none: false
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ hash: 3
48
+ segments:
49
+ - 0
50
+ version: "0"
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ requirements: []
61
+
62
+ rubyforge_project:
63
+ rubygems_version: 1.8.24
64
+ signing_key:
65
+ specification_version: 3
66
+ summary: Warns you if you're doing it wrong
67
+ test_files: []
68
+
69
+ has_rdoc: