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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7d28134b419fbb2ee99cd315b16e42269776c008d0ef38df1844ba7b98f609b
4
- data.tar.gz: e095f56920e95a520550188e58a6c5552d94cb708a4770e949fd5ad97408921b
3
+ metadata.gz: f2969c8372d3a0376c291cc217e47c45c9cea6fabafd28ccc13556546aaab279
4
+ data.tar.gz: 8c9338e9ebce22988467f05e4a2f28b14452fc68adecca428890411f3f3cd48b
5
5
  SHA512:
6
- metadata.gz: 6ef30f706a2d4bb8cde4345e644d253e47ad06b56f733a2f8f922d4a3f6bea7afc00df5e774426f31427d50579666cbc4db6af26b09abe6f897f64c5825185da
7
- data.tar.gz: e7583317391e48a0d928e9ebbe8626c41be01aa4796739e52065aa4065a19f02574a400cec0b40c83488db90b6bd46d85d5eb44fefef9379f578226f6f0625ac
6
+ metadata.gz: 80899b0790ae1222e0cad723139f8ea684bc19eee4968d82e1a1a72c9a80a0d81aef9473722e2cc07932bec1da9bf4c4514e35dbbacfaeecd760efee88377960
7
+ data.tar.gz: 2596206005472684f1797fab86859a00267f97b097064a25396683c48801ed2053c40ebdc8ef0368ab3c64d05c77b9529a90c986bd559f5ac6daf17bfdd8a678
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- steppy (0.5.3)
4
+ steppy (0.5.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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; end
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Steppy
4
- VERSION = '0.5.3'
4
+ VERSION = '0.5.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steppy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj