bugloco 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bugloco/configuration.rb +1 -1
- data/lib/bugloco/notice.rb +1 -1
- data/lib/bugloco/protobuf/bugloco.pb.rb +5 -7
- data/lib/bugloco/rails/middleware.rb +1 -1
- data/lib/bugloco/version.rb +1 -1
- data/lib/bugloco.rb +1 -1
- data/protobufs/bugloco.proto +2 -3
- data/spec/bugloco/notice_spec.rb +3 -3
- data/spec/bugloco_spec.rb +4 -4
- 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: b5679112575fa2fbe7e3c7772015ea3d7da268de
|
4
|
+
data.tar.gz: 2c9c8eefbb3fdda13a5db613f61fce766d267299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce19403311ddd6a37dbbdd1d5ed8d93812333650de17a65ebbd93e51b2aae8ce4fb3d27ba7043c788ca88d83275d7e642a93c018079987138b81b017d2f8fbbd
|
7
|
+
data.tar.gz: 51fa242e0a98946f031924831c13cdd05c3fa5878b99229a15353ffbbc1fe8af1020a07ffed5db7f1639ce1d2a4c786a651951d16e82ba6ad7161567f0e281df
|
data/lib/bugloco/notice.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
### Generated by rprotoc. DO NOT EDIT!
|
2
|
-
### <proto file: /home/wmn/code/
|
2
|
+
### <proto file: /home/wmn/code/bugloco/bugloco-rb/protobufs/bugloco.proto>
|
3
3
|
# syntax = "proto2";
|
4
4
|
#
|
5
5
|
# package bugloco.proto;
|
@@ -40,11 +40,10 @@
|
|
40
40
|
#
|
41
41
|
# message Company {
|
42
42
|
# required string api_key = 1;
|
43
|
-
# optional int64 id = 2;
|
44
43
|
# }
|
45
44
|
#
|
46
45
|
# message Project {
|
47
|
-
# required
|
46
|
+
# required string key = 1;
|
48
47
|
# optional string framework = 2;
|
49
48
|
# optional string version = 3;
|
50
49
|
# }
|
@@ -100,7 +99,7 @@
|
|
100
99
|
#
|
101
100
|
# message Response {
|
102
101
|
# required bugloco.proto.Status status = 1;
|
103
|
-
# optional
|
102
|
+
# optional string notice_key = 2;
|
104
103
|
# optional bugloco.proto.ErrorCode error_code = 3;
|
105
104
|
# repeated bugloco.proto.ErrorMessage error_messages = 4;
|
106
105
|
# }
|
@@ -149,11 +148,10 @@ module Bugloco
|
|
149
148
|
class Company < ::Protobuf::Message
|
150
149
|
defined_in __FILE__
|
151
150
|
required :string, :api_key, 1
|
152
|
-
optional :int64, :id, 2
|
153
151
|
end
|
154
152
|
class Project < ::Protobuf::Message
|
155
153
|
defined_in __FILE__
|
156
|
-
required :
|
154
|
+
required :string, :key, 1
|
157
155
|
optional :string, :framework, 2
|
158
156
|
optional :string, :version, 3
|
159
157
|
end
|
@@ -209,7 +207,7 @@ module Bugloco
|
|
209
207
|
class Response < ::Protobuf::Message
|
210
208
|
defined_in __FILE__
|
211
209
|
required :'bugloco::proto::Status', :status, 1
|
212
|
-
optional :
|
210
|
+
optional :string, :notice_key, 2
|
213
211
|
optional :'bugloco::proto::ErrorCode', :error_code, 3
|
214
212
|
repeated :'bugloco::proto::ErrorMessage', :error_messages, 4
|
215
213
|
end
|
data/lib/bugloco/version.rb
CHANGED
data/lib/bugloco.rb
CHANGED
data/protobufs/bugloco.proto
CHANGED
@@ -38,11 +38,10 @@ message BacktraceEntry {
|
|
38
38
|
|
39
39
|
message Company {
|
40
40
|
required string api_key = 1;
|
41
|
-
optional int64 id = 2;
|
42
41
|
}
|
43
42
|
|
44
43
|
message Project {
|
45
|
-
required
|
44
|
+
required string key = 1;
|
46
45
|
optional string framework = 2;
|
47
46
|
optional string version = 3;
|
48
47
|
}
|
@@ -98,7 +97,7 @@ message ErrorMessage {
|
|
98
97
|
|
99
98
|
message Response {
|
100
99
|
required bugloco.proto.Status status = 1;
|
101
|
-
optional
|
100
|
+
optional string notice_key = 2;
|
102
101
|
optional bugloco.proto.ErrorCode error_code = 3;
|
103
102
|
repeated bugloco.proto.ErrorMessage error_messages = 4;
|
104
103
|
}
|
data/spec/bugloco/notice_spec.rb
CHANGED
@@ -69,11 +69,11 @@ describe Bugloco::Notice do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
it "should include the project" do
|
72
|
-
@
|
72
|
+
@project_key = "agxkZXZ-YnVnLWxvY29yKwsSCWNvbXBhbmllcxiAgICAgOCXCQwLEghwcm9qZWN0cxiAgICAgOCXCww"
|
73
73
|
Bugloco.config do |config|
|
74
|
-
config.
|
74
|
+
config.project_key = @project_key
|
75
75
|
end
|
76
|
-
expected = Bugloco::Proto::Project.new(
|
76
|
+
expected = Bugloco::Proto::Project.new(key: @project_key)
|
77
77
|
|
78
78
|
run_rack_app
|
79
79
|
expect(@notice_proto_message.project).to eq(expected)
|
data/spec/bugloco_spec.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
describe Bugloco do
|
2
2
|
context "#config" do
|
3
3
|
it "should be configurable" do
|
4
|
-
|
4
|
+
project_key = "agxkZXZ-YnVnLWxvY29yKwsSCWNvbXBhbmllcxiAgICAgOCXCQwLEghwcm9qZWN0cxiAgICAgOCXCww"
|
5
5
|
api_key = "secret_key"
|
6
6
|
|
7
7
|
Bugloco.config do |config|
|
8
|
-
config.
|
8
|
+
config.project_key = project_key
|
9
9
|
config.api_key = api_key
|
10
10
|
end
|
11
11
|
|
12
|
-
expect(Bugloco.config.
|
12
|
+
expect(Bugloco.config.project_key).to eq(project_key)
|
13
13
|
expect(Bugloco.config.api_key).to eq(api_key)
|
14
14
|
end
|
15
15
|
|
@@ -24,7 +24,7 @@ describe Bugloco do
|
|
24
24
|
|
25
25
|
response = Bugloco::Proto::Response.new(
|
26
26
|
status: Bugloco::Proto::Status::SUCCESS,
|
27
|
-
|
27
|
+
notice_key: "SCWNvbXBhbmllcxiAgICAgOCXCQ")
|
28
28
|
FakeWeb.register_uri(:post, Bugloco.config.api_url,
|
29
29
|
body: response.serialize_to_string)
|
30
30
|
|
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.6
|
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-08-
|
11
|
+
date: 2014-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|