active_remote 6.1.2 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +41 -0
  3. data/.rubocop.yml +2 -27
  4. data/.standard.yml +2 -0
  5. data/CHANGES.md +190 -53
  6. data/README.md +6 -5
  7. data/Rakefile +2 -5
  8. data/active_remote.gemspec +19 -20
  9. data/lib/active_remote/association.rb +3 -3
  10. data/lib/active_remote/base.rb +12 -12
  11. data/lib/active_remote/dirty.rb +2 -2
  12. data/lib/active_remote/dsl.rb +14 -14
  13. data/lib/active_remote/integration.rb +9 -9
  14. data/lib/active_remote/persistence.rb +7 -7
  15. data/lib/active_remote/query_attributes.rb +3 -3
  16. data/lib/active_remote/rpc.rb +2 -3
  17. data/lib/active_remote/rpc_adapters/protobuf_adapter.rb +2 -2
  18. data/lib/active_remote/search.rb +25 -8
  19. data/lib/active_remote/serializers/protobuf.rb +10 -9
  20. data/lib/active_remote/validations.rb +2 -2
  21. data/lib/active_remote/version.rb +1 -1
  22. data/spec/lib/active_remote/association_spec.rb +25 -25
  23. data/spec/lib/active_remote/dirty_spec.rb +8 -8
  24. data/spec/lib/active_remote/dsl_spec.rb +7 -7
  25. data/spec/lib/active_remote/errors_spec.rb +2 -2
  26. data/spec/lib/active_remote/integration_spec.rb +4 -4
  27. data/spec/lib/active_remote/persistence_spec.rb +34 -34
  28. data/spec/lib/active_remote/primary_key_spec.rb +2 -2
  29. data/spec/lib/active_remote/rpc_adapters/protobuf_adapter_spec.rb +1 -1
  30. data/spec/lib/active_remote/rpc_spec.rb +13 -15
  31. data/spec/lib/active_remote/scope_keys_spec.rb +2 -2
  32. data/spec/lib/active_remote/search_spec.rb +31 -4
  33. data/spec/lib/active_remote/serialization_spec.rb +2 -2
  34. data/spec/lib/active_remote/serializers/protobuf_spec.rb +7 -7
  35. data/spec/lib/active_remote/validations_spec.rb +1 -1
  36. data/spec/support/models/author.rb +3 -3
  37. data/spec/support/models/category.rb +3 -3
  38. data/spec/support/models/default_author.rb +3 -3
  39. data/spec/support/models/post.rb +4 -4
  40. data/spec/support/protobuf/author.pb.rb +5 -11
  41. data/spec/support/protobuf/category.pb.rb +5 -11
  42. data/spec/support/protobuf/error.pb.rb +1 -6
  43. data/spec/support/protobuf/post.pb.rb +6 -12
  44. data/spec/support/protobuf/serializer.pb.rb +1 -8
  45. data/spec/support/protobuf/tag.pb.rb +5 -11
  46. metadata +33 -71
  47. data/.travis.yml +0 -5
@@ -1,17 +1,14 @@
1
- # encoding: utf-8
2
-
3
1
  ##
4
2
  # This file is auto-generated. DO NOT EDIT!
5
3
  #
6
- require 'protobuf'
7
- require 'protobuf/rpc/service'
8
-
4
+ require "protobuf"
5
+ require "protobuf/rpc/service"
9
6
 
10
7
  ##
11
8
  # Imports
12
9
  #
13
- require 'error.pb'
14
- require 'category.pb'
10
+ require "error.pb"
11
+ require "category.pb"
15
12
 
16
13
  module Generic
17
14
  module Remote
@@ -21,9 +18,10 @@ module Generic
21
18
  # Message Classes
22
19
  #
23
20
  class Post < ::Protobuf::Message; end
21
+
24
22
  class Posts < ::Protobuf::Message; end
25
- class PostRequest < ::Protobuf::Message; end
26
23
 
24
+ class PostRequest < ::Protobuf::Message; end
27
25
 
28
26
  ##
29
27
  # Message Fields
@@ -48,7 +46,6 @@ module Generic
48
46
  repeated :string, :user_guid, 4
49
47
  end
50
48
 
51
-
52
49
  ##
53
50
  # Service Classes
54
51
  #
@@ -62,8 +59,5 @@ module Generic
62
59
  rpc :delete_all, ::Generic::Remote::Posts, ::Generic::Remote::Posts
63
60
  rpc :destroy_all, ::Generic::Remote::Posts, ::Generic::Remote::Posts
64
61
  end
65
-
66
62
  end
67
-
68
63
  end
69
-
@@ -1,10 +1,7 @@
1
- # encoding: utf-8
2
-
3
1
  ##
4
2
  # This file is auto-generated. DO NOT EDIT!
5
3
  #
6
- require 'protobuf'
7
-
4
+ require "protobuf"
8
5
 
9
6
  ##
10
7
  # Message Classes
@@ -14,11 +11,8 @@ class Serializer < ::Protobuf::Message
14
11
  define :DEFAULT, 0
15
12
  define :USER, 1
16
13
  end
17
-
18
14
  end
19
15
 
20
-
21
-
22
16
  ##
23
17
  # Message Fields
24
18
  #
@@ -40,4 +34,3 @@ class Serializer
40
34
  optional :uint64, :uint64_field, 15
41
35
  optional ::Serializer::Type, :enum_field, 16
42
36
  end
43
-
@@ -1,16 +1,13 @@
1
- # encoding: utf-8
2
-
3
1
  ##
4
2
  # This file is auto-generated. DO NOT EDIT!
5
3
  #
6
- require 'protobuf'
7
- require 'protobuf/rpc/service'
8
-
4
+ require "protobuf"
5
+ require "protobuf/rpc/service"
9
6
 
10
7
  ##
11
8
  # Imports
12
9
  #
13
- require 'error.pb'
10
+ require "error.pb"
14
11
 
15
12
  module Generic
16
13
  module Remote
@@ -20,9 +17,10 @@ module Generic
20
17
  # Message Classes
21
18
  #
22
19
  class Tag < ::Protobuf::Message; end
20
+
23
21
  class Tags < ::Protobuf::Message; end
24
- class TagRequest < ::Protobuf::Message; end
25
22
 
23
+ class TagRequest < ::Protobuf::Message; end
26
24
 
27
25
  ##
28
26
  # Message Fields
@@ -42,7 +40,6 @@ module Generic
42
40
  repeated :string, :name, 2
43
41
  end
44
42
 
45
-
46
43
  ##
47
44
  # Service Classes
48
45
  #
@@ -57,8 +54,5 @@ module Generic
57
54
  rpc :delete_all, ::Generic::Remote::Tags, ::Generic::Remote::Tags
58
55
  rpc :destroy_all, ::Generic::Remote::Tags, ::Generic::Remote::Tags
59
56
  end
60
-
61
57
  end
62
-
63
58
  end
64
-
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: 6.1.2
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hutchison
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-15 00:00:00.000000000 Z
11
+ date: 2024-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 6.1.0
19
+ version: 7.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 6.1.0
26
+ version: 7.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.1.0
33
+ version: 7.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 6.1.0
40
+ version: 7.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: protobuf
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: benchmark-ips
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,21 +67,21 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
70
+ name: protobuf-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 3.3.0
75
+ version: 1.1.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 3.3.0
82
+ version: 1.1.2
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec-its
84
+ name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,63 +95,63 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec-pride
98
+ name: rspec-its
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 3.1.0
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 3.1.0
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: mad_rubocop
112
+ name: rspec-pride
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 3.1.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 3.1.0
125
125
  - !ruby/object:Gem::Dependency
126
- name: pry
126
+ name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 3.3.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 3.3.0
139
139
  - !ruby/object:Gem::Dependency
140
- name: protobuf-rspec
140
+ name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 1.1.2
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 1.1.2
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: simplecov
154
+ name: standard
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -165,7 +165,7 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: benchmark-ips
168
+ name: rake
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
@@ -189,10 +189,11 @@ executables:
189
189
  extensions: []
190
190
  extra_rdoc_files: []
191
191
  files:
192
+ - ".github/workflows/main.yml"
192
193
  - ".gitignore"
193
194
  - ".rspec"
194
195
  - ".rubocop.yml"
195
- - ".travis.yml"
196
+ - ".standard.yml"
196
197
  - CHANGES.md
197
198
  - Gemfile
198
199
  - LICENSE
@@ -264,7 +265,7 @@ files:
264
265
  homepage: https://github.com/liveh2o/active_remote
265
266
  licenses: []
266
267
  metadata: {}
267
- post_install_message:
268
+ post_install_message:
268
269
  rdoc_options: []
269
270
  require_paths:
270
271
  - lib
@@ -272,54 +273,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
273
  requirements:
273
274
  - - ">="
274
275
  - !ruby/object:Gem::Version
275
- version: '0'
276
+ version: 2.7.0
276
277
  required_rubygems_version: !ruby/object:Gem::Requirement
277
278
  requirements:
278
279
  - - ">="
279
280
  - !ruby/object:Gem::Version
280
281
  version: '0'
281
282
  requirements: []
282
- rubygems_version: 3.4.6
283
- signing_key:
283
+ rubygems_version: 3.5.23
284
+ signing_key:
284
285
  specification_version: 4
285
286
  summary: Active Record for your platform
286
- test_files:
287
- - spec/lib/active_remote/association_spec.rb
288
- - spec/lib/active_remote/base_spec.rb
289
- - spec/lib/active_remote/dirty_spec.rb
290
- - spec/lib/active_remote/dsl_spec.rb
291
- - spec/lib/active_remote/errors_spec.rb
292
- - spec/lib/active_remote/integration_spec.rb
293
- - spec/lib/active_remote/persistence_spec.rb
294
- - spec/lib/active_remote/primary_key_spec.rb
295
- - spec/lib/active_remote/query_attribute_spec.rb
296
- - spec/lib/active_remote/rpc_adapters/protobuf_adapter_spec.rb
297
- - spec/lib/active_remote/rpc_spec.rb
298
- - spec/lib/active_remote/scope_keys_spec.rb
299
- - spec/lib/active_remote/search_spec.rb
300
- - spec/lib/active_remote/serialization_spec.rb
301
- - spec/lib/active_remote/serializers/protobuf_spec.rb
302
- - spec/lib/active_remote/validations_spec.rb
303
- - spec/spec_helper.rb
304
- - spec/support/definitions/author.proto
305
- - spec/support/definitions/category.proto
306
- - spec/support/definitions/error.proto
307
- - spec/support/definitions/post.proto
308
- - spec/support/definitions/serializer.proto
309
- - spec/support/definitions/tag.proto
310
- - spec/support/helpers.rb
311
- - spec/support/models.rb
312
- - spec/support/models/author.rb
313
- - spec/support/models/category.rb
314
- - spec/support/models/default_author.rb
315
- - spec/support/models/message_with_options.rb
316
- - spec/support/models/no_attributes.rb
317
- - spec/support/models/post.rb
318
- - spec/support/models/tag.rb
319
- - spec/support/protobuf.rb
320
- - spec/support/protobuf/author.pb.rb
321
- - spec/support/protobuf/category.pb.rb
322
- - spec/support/protobuf/error.pb.rb
323
- - spec/support/protobuf/post.pb.rb
324
- - spec/support/protobuf/serializer.pb.rb
325
- - spec/support/protobuf/tag.pb.rb
287
+ test_files: []
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- language: ruby
3
- rvm:
4
- - 2.3
5
- - jruby