protobuffy 3.4.0 → 3.5.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
  SHA1:
3
- metadata.gz: e4533ebff79e79d880b7092fad218adeac4e707b
4
- data.tar.gz: 807e67cb14ab637caf13793b6a9ca244fd69436d
3
+ metadata.gz: b6c1d5bfad6397559b237d7d382b86d38e52a5b4
4
+ data.tar.gz: 8f09b82dec50f954eaf072c6ce27440188f4ebd2
5
5
  SHA512:
6
- metadata.gz: dd2dfe2fb0f69105b82bc49d03461b00d64e17d0e445d243b9776528a8635170ae14840e32da6d8b9db15b16cb01032febd1b50a637c170f8b5e2777655c4f55
7
- data.tar.gz: 3209aafba7e145cbbf27379eb1752f65253fc3e9004f38ef6b1512b97985dc1138b95cabf97197c5d73bf5c7953f66a00c3c7897a303c750ce862a2eced981f4
6
+ metadata.gz: 87a1c33ee0c8f104fb3165458379f22994a2d82cdd0f81ddc15604992f74c3176361c449c56e267a68f8e018b3ab0abc9c603074fe96319c8205e7c36c7007f9
7
+ data.tar.gz: 7e1128579d172e3404f85442668e1090931110d0216bb4c2ae0f402031a4bcb81fabaa9ed47739d67d438b9ad29e2c23822b6b20ca87f761e5de52d817d38389
@@ -51,5 +51,11 @@ module Protobuf
51
51
  end
52
52
  end
53
53
 
54
+ class DataNotFound < PbError
55
+ def initialize message='Requested data not found'
56
+ super message, 'DATA_NOT_FOUND'
57
+ end
58
+ end
59
+
54
60
  end
55
61
  end
@@ -18,6 +18,7 @@ module Protobuf
18
18
  define :RPC_FAILED, 5
19
19
  define :UNAUTHORIZED_REQUEST, 10
20
20
  define :FORBIDDEN_REQUEST, 11
21
+ define :DATA_NOT_FOUND, 12
21
22
  define :INVALID_REQUEST_PROTO, 6
22
23
  define :BAD_RESPONSE_PROTO, 7
23
24
  define :UNKNOWN_HOST, 8
@@ -18,6 +18,7 @@ module Protobuf
18
18
  Protobuf::Socketrpc::ErrorReason::FORBIDDEN_REQUEST => 403,
19
19
  Protobuf::Socketrpc::ErrorReason::SERVICE_NOT_FOUND => 404,
20
20
  Protobuf::Socketrpc::ErrorReason::METHOD_NOT_FOUND => 404,
21
+ Protobuf::Socketrpc::ErrorReason::DATA_NOT_FOUND => 404,
21
22
  Protobuf::Socketrpc::ErrorReason::RPC_ERROR => 500,
22
23
  Protobuf::Socketrpc::ErrorReason::RPC_FAILED => 500,
23
24
  Protobuf::Socketrpc::ErrorReason::INVALID_REQUEST_PROTO => 500,
@@ -1,3 +1,3 @@
1
1
  module Protobuf
2
- VERSION = '3.4.0'
2
+ VERSION = '3.5.1'
3
3
  end
data/proto/rpc.proto CHANGED
@@ -55,6 +55,7 @@ enum ErrorReason
55
55
  RPC_FAILED = 5; // Rpc failed on server
56
56
  UNAUTHORIZED_REQUEST = 10; // Server received unauthorized request
57
57
  FORBIDDEN_REQUEST = 11; // Server understood the request, but is refusing to fulfill it
58
+ DATA_NOT_FOUND = 12; // Requested data not found
58
59
 
59
60
  // Client-side errors (these are returned by the client-side code)
60
61
  INVALID_REQUEST_PROTO = 6; // Rpc was called with invalid request proto
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuffy
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BJ Neilsen
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-06-19 00:00:00.000000000 Z
15
+ date: 2015-06-29 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport