motherducker 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mother_ducker/strategy_orchestrator.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c7d1b4f4264c1f51618bc9aa71e0da23a194d5164ad94bb1f6e6b75541b13cb
|
4
|
+
data.tar.gz: 57d9c90602ba9b491b520d4b146cd783e9cd52306e5c0922c668e7a66c2f4c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20c350f05ae707e22057fd031878d079b480976cdfc7ca64f390095e8e7940cdbe58108e188423eff86ef62e71571c30df9bc9450dcf99d946318a3056fd5725
|
7
|
+
data.tar.gz: 7ad3cac6661d7adc0a70e26f3492f49d82e80482b7ec894f7b4b8dcf5cb11143dd3879106069195022232a49e38474a2852323a49c94031e99416178787b7fa6
|
@@ -46,8 +46,8 @@ module MotherDucker
|
|
46
46
|
@debugging_used = true
|
47
47
|
end
|
48
48
|
|
49
|
-
def parse_error(
|
50
|
-
if
|
49
|
+
def parse_error(message)
|
50
|
+
if message.match(/undefined method/)
|
51
51
|
line = /\:\d+\:/.match(message)[0].gsub(":", "")
|
52
52
|
file_name = /\#\<\w+\:/.match(message)[0].gsub("#<", "").gsub(":", "")
|
53
53
|
puts "\n"
|
@@ -65,7 +65,10 @@ module MotherDucker
|
|
65
65
|
if answer_2 == "no"
|
66
66
|
puts "Create a method named \"#{method_name}\" in your #{file_name} class."
|
67
67
|
end
|
68
|
+
else
|
69
|
+
puts "Sorry, my AI failed to recognize this error :("
|
68
70
|
end
|
71
|
+
|
69
72
|
end
|
70
73
|
end
|
71
74
|
|