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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d760866cbe3d6f0cacdf06891814483c95ed63d
4
- data.tar.gz: 25892d899421ca22630b5d1323296656bc2efba1
3
+ metadata.gz: fd8d5c5364b516c6e2dd1f5db0e2fd329ce06fcc
4
+ data.tar.gz: 527ad0f0a8609edc38d0008c414614a894070812
5
5
  SHA512:
6
- metadata.gz: 95a486e9d4af7765cf41667b0bb43fada6d20eb9e698fb72fa26b8e35b5f2302cd6d61912dfe1e01cebd8541035d792de079d26ba8c14f9fbd3f515c33f735d7
7
- data.tar.gz: fdc545f109e1cfcb29145a01ac6fdadaae6523aad64390ff77263db19130e59bf94428e7dab13c51763c3f2b16d2a2070636ec8f94f49875465c0f4a3a4fa4a2
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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveRemote
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
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.0
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-04-27 00:00:00.000000000 Z
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.11
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: []