active_remote 3.1.1 → 3.1.2.pre

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
- SHA1:
3
- metadata.gz: fd8d5c5364b516c6e2dd1f5db0e2fd329ce06fcc
4
- data.tar.gz: 527ad0f0a8609edc38d0008c414614a894070812
2
+ SHA256:
3
+ metadata.gz: 39944a221275cad858e3e27fe66c5036683d97a2eb2cefe23090d2891f5f9774
4
+ data.tar.gz: 24c7e515d381a239743a226a810395f5670e1d76373c715c3944d941d0f4f17c
5
5
  SHA512:
6
- metadata.gz: 873149c7dbeb4b9433fdd9972ac2cbdf4d290c177ef18a26fe90a26fd85e966e25f280371ba132a61503b03bb80ede31d74aa6f41c56282c37feae027bba1254
7
- data.tar.gz: 72c6f72c80b9d4c1f0152e7cc9d0f63af14d241a9f43ec4584a44c9fc44ce91831387d031534c43fae04db4831bf36a16d5256c846341eb05fa8f25fc35ec867
6
+ metadata.gz: 16633c569df3b15168fe01521f22e4d35dcb54326350d9e195163c223484e954652a725cb7731d441f20466d61ec4ac3ed0d8d2c5dfd6b17723e9e591d8c3679
7
+ data.tar.gz: d8e5ae3f58f4e8f025199b07b63d65749c7e2f844d638c80fb1d1c5b21f6df47be11d4232f774e2e27e2bbcca3007741ec7172b7e0178d9b90f0a11a68a473f7
@@ -238,7 +238,6 @@ module ActiveRemote
238
238
  run_callbacks :create do
239
239
  # Use the getter here so we get the type casting.
240
240
  new_attributes = attributes
241
- new_attributes.delete(primary_key.to_s)
242
241
 
243
242
  response = rpc.execute(:create, new_attributes)
244
243
 
@@ -1,3 +1,3 @@
1
1
  module ActiveRemote
2
- VERSION = "3.1.1"
2
+ VERSION = "3.1.2.pre"
3
3
  end
@@ -208,7 +208,7 @@ describe ::ActiveRemote::Persistence do
208
208
  subject { Tag.new }
209
209
 
210
210
  it "creates the record" do
211
- expected_attributes = subject.attributes.reject { |key, value| key == "guid" }
211
+ expected_attributes = subject.attributes
212
212
  expect(rpc).to receive(:execute).with(:create, expected_attributes)
213
213
  subject.save
214
214
  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.1
4
+ version: 3.1.2.pre
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-05-05 00:00:00.000000000 Z
11
+ date: 2018-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -257,13 +257,53 @@ required_ruby_version: !ruby/object:Gem::Requirement
257
257
  version: '0'
258
258
  required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  requirements:
260
- - - ">="
260
+ - - ">"
261
261
  - !ruby/object:Gem::Version
262
- version: '0'
262
+ version: 1.3.1
263
263
  requirements: []
264
264
  rubyforge_project:
265
- rubygems_version: 2.6.10
265
+ rubygems_version: 2.7.4
266
266
  signing_key:
267
267
  specification_version: 4
268
268
  summary: Active Record for your platform
269
- test_files: []
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