active_remote 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_remote/rpc_adapters/protobuf_adapter.rb +3 -1
- data/lib/active_remote/version.rb +1 -1
- metadata +4 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd8d5c5364b516c6e2dd1f5db0e2fd329ce06fcc
|
4
|
+
data.tar.gz: 527ad0f0a8609edc38d0008c414614a894070812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 873149c7dbeb4b9433fdd9972ac2cbdf4d290c177ef18a26fe90a26fd85e966e25f280371ba132a61503b03bb80ede31d74aa6f41c56282c37feae027bba1254
|
7
|
+
data.tar.gz: 72c6f72c80b9d4c1f0152e7cc9d0f63af14d241a9f43ec4584a44c9fc44ce91831387d031534c43fae04db4831bf36a16d5256c846341eb05fa8f25fc35ec867
|
@@ -38,6 +38,8 @@ module ActiveRemote
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def protobuf_error_class(error)
|
41
|
+
return ::ActiveRemote::ActiveRemoteError unless error.respond_to?(:error_type)
|
42
|
+
|
41
43
|
case error.error_type
|
42
44
|
when ::Protobuf::Socketrpc::ErrorReason::BAD_REQUEST_DATA
|
43
45
|
::ActiveRemote::BadRequestDataError
|
@@ -60,7 +62,7 @@ module ActiveRemote
|
|
60
62
|
when ::Protobuf::Socketrpc::ErrorReason::IO_ERROR
|
61
63
|
::ActiveRemote::IOError
|
62
64
|
else
|
63
|
-
ActiveRemoteError
|
65
|
+
::ActiveRemote::ActiveRemoteError
|
64
66
|
end
|
65
67
|
end
|
66
68
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Hutchison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -262,48 +262,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
262
|
version: '0'
|
263
263
|
requirements: []
|
264
264
|
rubyforge_project:
|
265
|
-
rubygems_version: 2.6.
|
265
|
+
rubygems_version: 2.6.10
|
266
266
|
signing_key:
|
267
267
|
specification_version: 4
|
268
268
|
summary: Active Record for your platform
|
269
|
-
test_files:
|
270
|
-
- spec/lib/active_remote/association_spec.rb
|
271
|
-
- spec/lib/active_remote/attributes_spec.rb
|
272
|
-
- spec/lib/active_remote/base_spec.rb
|
273
|
-
- spec/lib/active_remote/dirty_spec.rb
|
274
|
-
- spec/lib/active_remote/dsl_spec.rb
|
275
|
-
- spec/lib/active_remote/integration_spec.rb
|
276
|
-
- spec/lib/active_remote/persistence_spec.rb
|
277
|
-
- spec/lib/active_remote/primary_key_spec.rb
|
278
|
-
- spec/lib/active_remote/query_attribute_spec.rb
|
279
|
-
- spec/lib/active_remote/rpc_spec.rb
|
280
|
-
- spec/lib/active_remote/scope_keys_spec.rb
|
281
|
-
- spec/lib/active_remote/search_spec.rb
|
282
|
-
- spec/lib/active_remote/serialization_spec.rb
|
283
|
-
- spec/lib/active_remote/serializers/protobuf_spec.rb
|
284
|
-
- spec/lib/active_remote/typecasting_spec.rb
|
285
|
-
- spec/lib/active_remote/validations_spec.rb
|
286
|
-
- spec/spec_helper.rb
|
287
|
-
- spec/support/definitions/author.proto
|
288
|
-
- spec/support/definitions/category.proto
|
289
|
-
- spec/support/definitions/error.proto
|
290
|
-
- spec/support/definitions/post.proto
|
291
|
-
- spec/support/definitions/serializer.proto
|
292
|
-
- spec/support/definitions/tag.proto
|
293
|
-
- spec/support/helpers.rb
|
294
|
-
- spec/support/models.rb
|
295
|
-
- spec/support/models/author.rb
|
296
|
-
- spec/support/models/category.rb
|
297
|
-
- spec/support/models/default_author.rb
|
298
|
-
- spec/support/models/message_with_options.rb
|
299
|
-
- spec/support/models/no_attributes.rb
|
300
|
-
- spec/support/models/post.rb
|
301
|
-
- spec/support/models/tag.rb
|
302
|
-
- spec/support/models/typecasted_author.rb
|
303
|
-
- spec/support/protobuf.rb
|
304
|
-
- spec/support/protobuf/author.pb.rb
|
305
|
-
- spec/support/protobuf/category.pb.rb
|
306
|
-
- spec/support/protobuf/error.pb.rb
|
307
|
-
- spec/support/protobuf/post.pb.rb
|
308
|
-
- spec/support/protobuf/serializer.pb.rb
|
309
|
-
- spec/support/protobuf/tag.pb.rb
|
269
|
+
test_files: []
|