table_flipper 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: feaf199a1c7a4f86c8afb21b40d5aee039c979d5
4
+ data.tar.gz: a2148e356db1a9fc4fc95bea8edab5da118f7a52
5
+ SHA512:
6
+ metadata.gz: 84ad740cad8aa4d3719c55c657f0f69d3d9acd65303a4fbc9b10991455d89dd723acf21e1d6c3297e63c7b644f0d834b665eb4dca8369f81ac17a0b7cfe71cda
7
+ data.tar.gz: 57a0a572b1aae898cacb9a34623101f3cf3978d98572bbe0c026560a09607a5f1455b21d8d2f4746d0b28186b28188abf3d94a48ffa3afa8fa1e3085c792194e
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Lazarus Lazaridis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # Table flipper (╯°□°)╯︵ ┻━┻
2
+
3
+ A useless gem that prepends the table flipper on Exception messages.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'table_flipper'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install table_flipper
20
+
21
+ Then try to break your code, ta da:
22
+
23
+ ~~~~~ ruby
24
+ NoMethodError: (╯°□°)╯︵ ┻━┻ : undefined method `do_something' for nil:NilClass
25
+ ~~~~~
26
+
27
+ ![Screenshot](http://i.imgur.com/xRLGT50.png)
28
+
29
+ ## Contributing
30
+
31
+ 1. Fork it ( https://github.com/iridakos/table_flipper/fork )
32
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
33
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
34
+ 4. Push to the branch (`git push origin my-new-feature`)
35
+ 5. Create a new Pull Request
36
+
37
+ ##### [**Lazarus Lazaridis**](http://www.arubystory.com)
@@ -0,0 +1,8 @@
1
+ class Exception
2
+ original_to_s = instance_method(:to_s)
3
+
4
+ define_method :to_s do
5
+ original_message = original_to_s.bind(self).call
6
+ "(╯°□°)╯︵ ┻━┻ : #{original_message}"
7
+ end
8
+ end
@@ -0,0 +1,16 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'table_flipper'
3
+ s.version = '0.0.1'
4
+ s.date = '2016-02-27'
5
+ s.summary = "(╯°□°)╯︵ ┻━┻"
6
+ s.description = "A useless gem prepending (╯°□°)╯︵ ┻━┻ to exception messages"
7
+ s.authors = ['Lazarus Lazaridis']
8
+ s.homepage = 'https://github.com/iridakos/table_flipper'
9
+
10
+ s.files = `git ls-files -z`.split("\x0")
11
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
12
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
13
+ s.require_paths = ['lib']
14
+
15
+ s.license = 'MIT'
16
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: table_flipper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Lazarus Lazaridis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-02-27 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A useless gem prepending (╯°□°)╯︵ ┻━┻ to exception messages
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - LICENSE.md
20
+ - README.md
21
+ - lib/table_flipper.rb
22
+ - table_flipper.gemspec
23
+ homepage: https://github.com/iridakos/table_flipper
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.4.6
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: "(╯°□°)╯︵ ┻━┻"
47
+ test_files: []
48
+ has_rdoc: