what_error 0.1.0.2 β 0.1.1
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.
- checksums.yaml +4 -4
- data/lib/what_error.rb +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: adb30cb1ddd47c1a0e0b02599298e0e7b7ec9116d0f308072379fccc53707b64
|
|
4
|
+
data.tar.gz: 267ece92562a9415b3ce6f4dff3f36254b1fdc6c2c09985bfb41446784e0d144
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8cc7ab3d831cfb25c3681bdb5754a2b9dc44b9da582e86c706309e0322b18fe3cd1d5dcd6a0f4c42ee523f51c786f4aa852c58939fad42a6be7b34dc6feb72e
|
|
7
|
+
data.tar.gz: 83adf337fe4ea7fcbb26a1f14b49121bc8346c4b353252ba76bafce9dfd7c969efff23c782a806667518d9aae10eaf9d8c502494e762729df99f0542816b40da
|
data/lib/what_error.rb
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module WhatError
|
|
4
|
-
VERSION = "0.1.
|
|
4
|
+
VERSION = "0.1.1"
|
|
5
5
|
class << self
|
|
6
6
|
def vykurchhtjtcddhtdxhxbfxbttxjyytsgnxtyxxfudutdutdtxx
|
|
7
|
-
# I rolled my face on the keyboard
|
|
7
|
+
# I rolled over my face on the keyboard
|
|
8
|
+
|
|
9
|
+
@cf = Kernel.caller[-1][/^(.+?):/, 1] or raise ArgumentError, "unknown file"
|
|
8
10
|
|
|
9
11
|
# Why?
|
|
10
12
|
if in_irb? then
|
|
11
13
|
puts "π«: Sorry, WhatError is disabled in IRB. Please require in actual ruby files. UwU, im so cuuuuuute."
|
|
12
14
|
return
|
|
15
|
+
elsif @cf =~ /-/ then
|
|
16
|
+
puts "π«: UwU, I cannnnont red ths QAQ, SOOOOOOORRRYYYY!!! (Shrink into a ball)"
|
|
17
|
+
return
|
|
13
18
|
end
|
|
14
19
|
|
|
15
|
-
@
|
|
16
|
-
@emojis = "ππππ€£ππ€ππ₯°πππ€π€πππ·π ππ‘ππβΊοΈπ«πππ¨π°πππ±π£π₯Ίπ€ππ₯π€π’πͺπππ©ππ
π₯΅π€‘π€₯π€π€«π€€π€ͺπ€―π€©π₯Άπ« π΅βπ«π€’".chars
|
|
20
|
+
@emojis = "πππππππ€£ππ€ππ₯°πππ€π€πππ·π ππ‘ππβΊοΈπ«πππ¨π°πππ±π£π₯Ίπ€ππ₯π€π’πͺπππ©ππ
π₯΅π€‘π€₯π€π€«π€€π€ͺπ€―π€©π₯Άπ« π΅βπ«π€’π©πΎπ".chars
|
|
17
21
|
@dir = %w[/mnt /usr /home /bin /ruby /etc /shared /var /opt /include]
|
|
18
22
|
@e_classes = ObjectSpace.each_object(Class).select { |c| c < StandardError }
|
|
19
23
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: what_error
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tacocat
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-11-
|
|
10
|
+
date: 2025-11-16 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
description: "A mischievous Ruby gem that randomly replaces your code errors with
|
|
13
13
|
exceptions from the StandardError family and generates completely fake, confusing
|