active_remote 7.0.0 → 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/{ruby.yml → main.yml} +15 -6
  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 +17 -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 +7 -7
  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 +2 -2
  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 +29 -80
  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: 7.0.0
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hutchison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-09 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,40 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '7.0'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '7.1'
19
+ version: 7.1.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '7.0'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '7.1'
26
+ version: 7.1.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: activesupport
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '7.0'
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '7.1'
33
+ version: 7.1.0
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: '7.0'
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '7.1'
40
+ version: 7.1.0
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: protobuf
55
43
  requirement: !ruby/object:Gem::Requirement
@@ -65,7 +53,7 @@ dependencies:
65
53
  - !ruby/object:Gem::Version
66
54
  version: '3.0'
67
55
  - !ruby/object:Gem::Dependency
68
- name: rake
56
+ name: benchmark-ips
69
57
  requirement: !ruby/object:Gem::Requirement
70
58
  requirements:
71
59
  - - ">="
@@ -79,21 +67,21 @@ dependencies:
79
67
  - !ruby/object:Gem::Version
80
68
  version: '0'
81
69
  - !ruby/object:Gem::Dependency
82
- name: rspec
70
+ name: protobuf-rspec
83
71
  requirement: !ruby/object:Gem::Requirement
84
72
  requirements:
85
73
  - - ">="
86
74
  - !ruby/object:Gem::Version
87
- version: 3.3.0
75
+ version: 1.1.2
88
76
  type: :development
89
77
  prerelease: false
90
78
  version_requirements: !ruby/object:Gem::Requirement
91
79
  requirements:
92
80
  - - ">="
93
81
  - !ruby/object:Gem::Version
94
- version: 3.3.0
82
+ version: 1.1.2
95
83
  - !ruby/object:Gem::Dependency
96
- name: rspec-its
84
+ name: pry
97
85
  requirement: !ruby/object:Gem::Requirement
98
86
  requirements:
99
87
  - - ">="
@@ -107,63 +95,63 @@ dependencies:
107
95
  - !ruby/object:Gem::Version
108
96
  version: '0'
109
97
  - !ruby/object:Gem::Dependency
110
- name: rspec-pride
98
+ name: rspec-its
111
99
  requirement: !ruby/object:Gem::Requirement
112
100
  requirements:
113
101
  - - ">="
114
102
  - !ruby/object:Gem::Version
115
- version: 3.1.0
103
+ version: '0'
116
104
  type: :development
117
105
  prerelease: false
118
106
  version_requirements: !ruby/object:Gem::Requirement
119
107
  requirements:
120
108
  - - ">="
121
109
  - !ruby/object:Gem::Version
122
- version: 3.1.0
110
+ version: '0'
123
111
  - !ruby/object:Gem::Dependency
124
- name: mad_rubocop
112
+ name: rspec-pride
125
113
  requirement: !ruby/object:Gem::Requirement
126
114
  requirements:
127
115
  - - ">="
128
116
  - !ruby/object:Gem::Version
129
- version: '0'
117
+ version: 3.1.0
130
118
  type: :development
131
119
  prerelease: false
132
120
  version_requirements: !ruby/object:Gem::Requirement
133
121
  requirements:
134
122
  - - ">="
135
123
  - !ruby/object:Gem::Version
136
- version: '0'
124
+ version: 3.1.0
137
125
  - !ruby/object:Gem::Dependency
138
- name: pry
126
+ name: rspec
139
127
  requirement: !ruby/object:Gem::Requirement
140
128
  requirements:
141
129
  - - ">="
142
130
  - !ruby/object:Gem::Version
143
- version: '0'
131
+ version: 3.3.0
144
132
  type: :development
145
133
  prerelease: false
146
134
  version_requirements: !ruby/object:Gem::Requirement
147
135
  requirements:
148
136
  - - ">="
149
137
  - !ruby/object:Gem::Version
150
- version: '0'
138
+ version: 3.3.0
151
139
  - !ruby/object:Gem::Dependency
152
- name: protobuf-rspec
140
+ name: simplecov
153
141
  requirement: !ruby/object:Gem::Requirement
154
142
  requirements:
155
143
  - - ">="
156
144
  - !ruby/object:Gem::Version
157
- version: 1.1.2
145
+ version: '0'
158
146
  type: :development
159
147
  prerelease: false
160
148
  version_requirements: !ruby/object:Gem::Requirement
161
149
  requirements:
162
150
  - - ">="
163
151
  - !ruby/object:Gem::Version
164
- version: 1.1.2
152
+ version: '0'
165
153
  - !ruby/object:Gem::Dependency
166
- name: simplecov
154
+ name: standard
167
155
  requirement: !ruby/object:Gem::Requirement
168
156
  requirements:
169
157
  - - ">="
@@ -177,7 +165,7 @@ dependencies:
177
165
  - !ruby/object:Gem::Version
178
166
  version: '0'
179
167
  - !ruby/object:Gem::Dependency
180
- name: benchmark-ips
168
+ name: rake
181
169
  requirement: !ruby/object:Gem::Requirement
182
170
  requirements:
183
171
  - - ">="
@@ -201,11 +189,11 @@ executables:
201
189
  extensions: []
202
190
  extra_rdoc_files: []
203
191
  files:
204
- - ".github/workflows/ruby.yml"
192
+ - ".github/workflows/main.yml"
205
193
  - ".gitignore"
206
194
  - ".rspec"
207
195
  - ".rubocop.yml"
208
- - ".travis.yml"
196
+ - ".standard.yml"
209
197
  - CHANGES.md
210
198
  - Gemfile
211
199
  - LICENSE
@@ -292,47 +280,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
280
  - !ruby/object:Gem::Version
293
281
  version: '0'
294
282
  requirements: []
295
- rubygems_version: 3.5.6
283
+ rubygems_version: 3.5.23
296
284
  signing_key:
297
285
  specification_version: 4
298
286
  summary: Active Record for your platform
299
- test_files:
300
- - spec/lib/active_remote/association_spec.rb
301
- - spec/lib/active_remote/base_spec.rb
302
- - spec/lib/active_remote/dirty_spec.rb
303
- - spec/lib/active_remote/dsl_spec.rb
304
- - spec/lib/active_remote/errors_spec.rb
305
- - spec/lib/active_remote/integration_spec.rb
306
- - spec/lib/active_remote/persistence_spec.rb
307
- - spec/lib/active_remote/primary_key_spec.rb
308
- - spec/lib/active_remote/query_attribute_spec.rb
309
- - spec/lib/active_remote/rpc_adapters/protobuf_adapter_spec.rb
310
- - spec/lib/active_remote/rpc_spec.rb
311
- - spec/lib/active_remote/scope_keys_spec.rb
312
- - spec/lib/active_remote/search_spec.rb
313
- - spec/lib/active_remote/serialization_spec.rb
314
- - spec/lib/active_remote/serializers/protobuf_spec.rb
315
- - spec/lib/active_remote/validations_spec.rb
316
- - spec/spec_helper.rb
317
- - spec/support/definitions/author.proto
318
- - spec/support/definitions/category.proto
319
- - spec/support/definitions/error.proto
320
- - spec/support/definitions/post.proto
321
- - spec/support/definitions/serializer.proto
322
- - spec/support/definitions/tag.proto
323
- - spec/support/helpers.rb
324
- - spec/support/models.rb
325
- - spec/support/models/author.rb
326
- - spec/support/models/category.rb
327
- - spec/support/models/default_author.rb
328
- - spec/support/models/message_with_options.rb
329
- - spec/support/models/no_attributes.rb
330
- - spec/support/models/post.rb
331
- - spec/support/models/tag.rb
332
- - spec/support/protobuf.rb
333
- - spec/support/protobuf/author.pb.rb
334
- - spec/support/protobuf/category.pb.rb
335
- - spec/support/protobuf/error.pb.rb
336
- - spec/support/protobuf/post.pb.rb
337
- - spec/support/protobuf/serializer.pb.rb
338
- - 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