twirp 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twirp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyrus A. Forbes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-21 00:00:00.000000000 Z
12
+ date: 2018-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-protobuf
@@ -61,7 +61,6 @@ files:
61
61
  - example/main.rb
62
62
  - lib/twirp.rb
63
63
  - lib/twirp/error.rb
64
- - lib/twirp/exception.rb
65
64
  - lib/twirp/service.rb
66
65
  - lib/twirp/version.rb
67
66
  - protoc-gen-twirp_ruby/main.go
@@ -1,21 +0,0 @@
1
- require_relative "./error"
2
-
3
- module Twirp
4
-
5
- class Exception < StandardError
6
-
7
- def initialize(code, msg, meta=nil)
8
- @twerr = Twirp::Error.new(code, msg, meta)
9
- end
10
-
11
- def message
12
- "#{code}: #{msg}"
13
- end
14
-
15
- def code; @twerr.code; end
16
- def msg; @twerr.msg; end
17
- def meta; @twerr.meta; end
18
- def to_json; @twerr.to_json; end
19
- def as_json; @twerr.as_json; end
20
- end
21
- end