bugloco 0.0.2 → 0.0.3

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: 47458d1e986e645aa899ce0f91d9285b36e9c88f
4
- data.tar.gz: 27fc2e6fa0eb66513114f8aa4c23ab31f795adcf
3
+ metadata.gz: 0fef7785321fdce820ab8e7fbc512b25f7cfc170
4
+ data.tar.gz: 569b05df812831ee54b908174052193ee7b68074
5
5
  SHA512:
6
- metadata.gz: ac1236859a8495ce7f27485fb7169bf585f25ac6eae524d1574b942499e71243645ea32e9f9f5b2e528ab9c943fd375ab15121381a2b2174be4dadf6618f2396
7
- data.tar.gz: 7b18d5dbf10f446744fc6793504ec248e082e2e265959290474ac5e42799dc5e8394ac15d56f176d627d7c8e95ed92183c3324a7ea19e8508bb6e5b6fed2001f
6
+ metadata.gz: f2f44a7e327d5485e73d65941e22da138d0488b11131b1b7cd51e7376639687f8dd71c840c22578903219b716bf1f6dccf8d453c6f97567764cf742d5c3c0b2e
7
+ data.tar.gz: 35d6cf0754ec224d11a0820fca5a976db4cc2f46d12d07a0dcf95a0d31f4d462f3d2262abb9e171839521cbf64cf4b5dafda34af8c72914c3d706d72ae47f8d3
@@ -22,9 +22,12 @@
22
22
  # }
23
23
  #
24
24
  # enum ErrorCode {
25
- # API_KEY_INVALID = 0;
26
- # PROJECT_NOT_FOUND = 1;
27
- # UNKNOWN_ERROR = 2;
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
- # optional string error_message = 4;
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
- API_KEY_INVALID = value(:API_KEY_INVALID, 0)
127
- PROJECT_NOT_FOUND = value(:PROJECT_NOT_FOUND, 1)
128
- UNKNOWN_ERROR = value(:UNKNOWN_ERROR, 2)
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
- optional :string, :error_message, 4
214
+ repeated :'bugloco::proto::ErrorMessage', :error_messages, 4
199
215
  end
200
216
  end
201
217
  end
@@ -1,3 +1,3 @@
1
1
  module Bugloco
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -20,9 +20,12 @@ enum Status {
20
20
  }
21
21
 
22
22
  enum ErrorCode {
23
- API_KEY_INVALID = 0;
24
- PROJECT_NOT_FOUND = 1;
25
- UNKNOWN_ERROR = 2;
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
- optional string error_message = 4;
103
+ repeated bugloco.proto.ErrorMessage error_messages = 4;
96
104
  }
@@ -103,7 +103,7 @@ describe Bugloco::Notice do
103
103
  run_rack_app
104
104
 
105
105
  expected = Bugloco::Proto::Notifier.new(
106
- name: "Bugloco",
106
+ name: "bugloco-rb",
107
107
  version: Bugloco::VERSION
108
108
  )
109
109
 
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.2
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-07-23 00:00:00.000000000 Z
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler