bugloco 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bugloco/protobuf/bugloco.pb.rb +24 -8
- data/lib/bugloco/version.rb +1 -1
- data/protobufs/bugloco.proto +12 -4
- data/spec/bugloco/notice_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fef7785321fdce820ab8e7fbc512b25f7cfc170
|
4
|
+
data.tar.gz: 569b05df812831ee54b908174052193ee7b68074
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2f44a7e327d5485e73d65941e22da138d0488b11131b1b7cd51e7376639687f8dd71c840c22578903219b716bf1f6dccf8d453c6f97567764cf742d5c3c0b2e
|
7
|
+
data.tar.gz: 35d6cf0754ec224d11a0820fca5a976db4cc2f46d12d07a0dcf95a0d31f4d462f3d2262abb9e171839521cbf64cf4b5dafda34af8c72914c3d706d72ae47f8d3
|
@@ -22,9 +22,12 @@
|
|
22
22
|
# }
|
23
23
|
#
|
24
24
|
# enum ErrorCode {
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
25
|
+
# UNKNOWN_ERROR = 0;
|
26
|
+
# API_KEY_INVALID = 1;
|
27
|
+
# PROJECT_NOT_FOUND = 2;
|
28
|
+
# PROBLEM_RECEIVING_DATA = 3;
|
29
|
+
# INVALID_PROTO_MESSAGE = 4;
|
30
|
+
# PROBLEM_PERSISTING_NOTICE = 5;
|
28
31
|
# }
|
29
32
|
#
|
30
33
|
# message BacktraceEntry {
|
@@ -90,11 +93,16 @@
|
|
90
93
|
# optional bugloco.proto.Server server = 10;
|
91
94
|
# }
|
92
95
|
#
|
96
|
+
# message ErrorMessage {
|
97
|
+
# required string field = 1;
|
98
|
+
# required string message = 2;
|
99
|
+
# }
|
100
|
+
#
|
93
101
|
# message Response {
|
94
102
|
# required bugloco.proto.Status status = 1;
|
95
103
|
# optional int64 notice_id = 2;
|
96
104
|
# optional bugloco.proto.ErrorCode error_code = 3;
|
97
|
-
#
|
105
|
+
# repeated bugloco.proto.ErrorMessage error_messages = 4;
|
98
106
|
# }
|
99
107
|
|
100
108
|
require 'protobuf/message/message'
|
@@ -123,9 +131,12 @@ module Bugloco
|
|
123
131
|
end
|
124
132
|
class ErrorCode < ::Protobuf::Enum
|
125
133
|
defined_in __FILE__
|
126
|
-
|
127
|
-
|
128
|
-
|
134
|
+
UNKNOWN_ERROR = value(:UNKNOWN_ERROR, 0)
|
135
|
+
API_KEY_INVALID = value(:API_KEY_INVALID, 1)
|
136
|
+
PROJECT_NOT_FOUND = value(:PROJECT_NOT_FOUND, 2)
|
137
|
+
PROBLEM_RECEIVING_DATA = value(:PROBLEM_RECEIVING_DATA, 3)
|
138
|
+
INVALID_PROTO_MESSAGE = value(:INVALID_PROTO_MESSAGE, 4)
|
139
|
+
PROBLEM_PERSISTING_NOTICE = value(:PROBLEM_PERSISTING_NOTICE, 5)
|
129
140
|
end
|
130
141
|
class BacktraceEntry < ::Protobuf::Message
|
131
142
|
defined_in __FILE__
|
@@ -190,12 +201,17 @@ module Bugloco
|
|
190
201
|
optional :'bugloco::proto::RunningMode', :running_mode, 9
|
191
202
|
optional :'bugloco::proto::Server', :server, 10
|
192
203
|
end
|
204
|
+
class ErrorMessage < ::Protobuf::Message
|
205
|
+
defined_in __FILE__
|
206
|
+
required :string, :field, 1
|
207
|
+
required :string, :message, 2
|
208
|
+
end
|
193
209
|
class Response < ::Protobuf::Message
|
194
210
|
defined_in __FILE__
|
195
211
|
required :'bugloco::proto::Status', :status, 1
|
196
212
|
optional :int64, :notice_id, 2
|
197
213
|
optional :'bugloco::proto::ErrorCode', :error_code, 3
|
198
|
-
|
214
|
+
repeated :'bugloco::proto::ErrorMessage', :error_messages, 4
|
199
215
|
end
|
200
216
|
end
|
201
217
|
end
|
data/lib/bugloco/version.rb
CHANGED
data/protobufs/bugloco.proto
CHANGED
@@ -20,9 +20,12 @@ enum Status {
|
|
20
20
|
}
|
21
21
|
|
22
22
|
enum ErrorCode {
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
UNKNOWN_ERROR = 0;
|
24
|
+
API_KEY_INVALID = 1;
|
25
|
+
PROJECT_NOT_FOUND = 2;
|
26
|
+
PROBLEM_RECEIVING_DATA = 3;
|
27
|
+
INVALID_PROTO_MESSAGE = 4;
|
28
|
+
PROBLEM_PERSISTING_NOTICE = 5;
|
26
29
|
}
|
27
30
|
|
28
31
|
message BacktraceEntry {
|
@@ -88,9 +91,14 @@ message Notice {
|
|
88
91
|
optional bugloco.proto.Server server = 10;
|
89
92
|
}
|
90
93
|
|
94
|
+
message ErrorMessage {
|
95
|
+
required string field = 1;
|
96
|
+
required string message = 2;
|
97
|
+
}
|
98
|
+
|
91
99
|
message Response {
|
92
100
|
required bugloco.proto.Status status = 1;
|
93
101
|
optional int64 notice_id = 2;
|
94
102
|
optional bugloco.proto.ErrorCode error_code = 3;
|
95
|
-
|
103
|
+
repeated bugloco.proto.ErrorMessage error_messages = 4;
|
96
104
|
}
|
data/spec/bugloco/notice_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugloco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wael M. Nasreddine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|