steppy 0.5.3 → 0.5.4
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/Gemfile.lock +1 -1
- data/lib/steppy/error.rb +15 -1
- data/lib/steppy/version.rb +1 -1
- 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: f2969c8372d3a0376c291cc217e47c45c9cea6fabafd28ccc13556546aaab279
|
4
|
+
data.tar.gz: 8c9338e9ebce22988467f05e4a2f28b14452fc68adecca428890411f3f3cd48b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80899b0790ae1222e0cad723139f8ea684bc19eee4968d82e1a1a72c9a80a0d81aef9473722e2cc07932bec1da9bf4c4514e35dbbacfaeecd760efee88377960
|
7
|
+
data.tar.gz: 2596206005472684f1797fab86859a00267f97b097064a25396683c48801ed2053c40ebdc8ef0368ab3c64d05c77b9529a90c986bd559f5ac6daf17bfdd8a678
|
data/Gemfile.lock
CHANGED
data/lib/steppy/error.rb
CHANGED
@@ -1,4 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Incase you need to throw an error related to steppy
|
4
|
-
class SteppyError < StandardError
|
4
|
+
class SteppyError < StandardError
|
5
|
+
attr_reader :step
|
6
|
+
# rubocop:disable Airbnb/OptArgParameters
|
7
|
+
def initialize(step = nil)
|
8
|
+
# rubocop:enable Airbnb/OptArgParameters
|
9
|
+
if step
|
10
|
+
@step = step
|
11
|
+
message = step.to_json
|
12
|
+
else
|
13
|
+
message = 'Steppy Failed!'
|
14
|
+
end
|
15
|
+
|
16
|
+
super(message)
|
17
|
+
end
|
18
|
+
end
|
data/lib/steppy/version.rb
CHANGED