gruf-commander 1.3.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41cfc73ca2a7a717e17afc86524aa0f3f6dbfc1d579ccecb0566288c0b17132b
4
- data.tar.gz: f833d546d055ab18e8f302a7188910f47f58f98affcfe9b7393c83d60b687db3
3
+ metadata.gz: 4ab08560f428f45aa380a648c20648fe2123f87e988343341900e80182193bbe
4
+ data.tar.gz: 6af1eae02d2c5a6153b4812fc510f215b85cffc6eedc3ea3e2310a2209cab254
5
5
  SHA512:
6
- metadata.gz: c31c795d6cd2c9a7b7564fbc304643146982b38093ac91400da1b78d0f77e56b87c992c074c9e2b3588f5d2d40e968b8e4ae158c52c3e0cea03e48735f1f63bb
7
- data.tar.gz: b1a02faca4576d09ea4dbe5e3a8b7819e2196bd32fa7ff6d04dc7288682bfb0d0211c1f5bfd9feffbe2b15bce9b561c815b2dc77893134b7dacf14941bba1388
6
+ metadata.gz: 938e216cc9bb7d88a19e970f6ac96dfcea93b4570a0204c4df0cd7a4c6216ef0eae858be45c340ee779a1265b9194f40f1f25984a481d685806eb81b957453ab
7
+ data.tar.gz: 3b8d575dd34bf221aa70679b55a30faabacd5ae6c53e8952b43af058527150e91be357bf4a8bc345ff888745f77bef30f6e3f6be155c6283b1dd7da60941a2b1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@ Changelog for the gruf-commander gem. This includes internal history before the
2
2
 
3
3
  ### Pending release
4
4
 
5
+ ### 1.3.1
6
+
7
+ - Fix NameError with InvalidRequest object
8
+
5
9
  ### 1.3.0
6
10
 
7
11
  - Add support for Ruby 3.2, 3.3, 3.4
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2018-present, BigCommerce Pty. Ltd. All rights reserved
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6
+ # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
7
+ # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8
+ # persons to whom the Software is furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
11
+ # Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
14
+ # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
+ # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
+ #
18
+ module Gruf
19
+ module Commander
20
+ ##
21
+ # Used when submitting requests from commands; utilize to issue a validation exception on a request
22
+ #
23
+ class InvalidRequest < StandardError
24
+ attr_reader :request
25
+
26
+ ##
27
+ # @param [Request] request
28
+ # @param [String] message
29
+ #
30
+ def initialize(request, message = '')
31
+ @request = request
32
+ super(message)
33
+ end
34
+ end
35
+ end
36
+ end
@@ -17,22 +17,6 @@
17
17
  #
18
18
  module Gruf
19
19
  module Commander
20
- ##
21
- # Used when submitting requests from commands; utilize to issue a validation exception on a request
22
- #
23
- class InvalidRequest < StandardError
24
- attr_reader :request
25
-
26
- ##
27
- # @param [Request] request
28
- # @param [String] message
29
- #
30
- def initialize(request, message = '')
31
- @request = request
32
- super(message)
33
- end
34
- end
35
-
36
20
  ##
37
21
  # Base request class
38
22
  #
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Gruf
19
19
  module Commander
20
- VERSION = '1.3.0'
20
+ VERSION = '1.3.1'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gruf-commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
@@ -52,6 +52,7 @@ files:
52
52
  - lib/gruf-commander.rb
53
53
  - lib/gruf/commander.rb
54
54
  - lib/gruf/commander/command.rb
55
+ - lib/gruf/commander/invalid_request.rb
55
56
  - lib/gruf/commander/request.rb
56
57
  - lib/gruf/commander/request_validation_interceptor.rb
57
58
  - lib/gruf/commander/version.rb