active_remote 7.1.1 → 7.2.0

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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +1 -1
  3. data/.standard.yml +2 -1
  4. data/{CHANGES.md → CHANGELOG.md} +10 -4
  5. data/CODE_OF_CONDUCT.md +132 -0
  6. data/LICENSE.txt +21 -0
  7. data/Rakefile +13 -8
  8. data/lib/active_remote/association.rb +8 -13
  9. data/lib/active_remote/base.rb +2 -4
  10. data/lib/active_remote/dirty.rb +0 -32
  11. data/lib/active_remote/version.rb +1 -1
  12. metadata +18 -187
  13. data/.github/workflows/main.yml +0 -41
  14. data/.gitignore +0 -13
  15. data/Gemfile +0 -4
  16. data/LICENSE +0 -22
  17. data/active_remote.gemspec +0 -38
  18. data/bin/benchmark +0 -43
  19. data/bin/console +0 -10
  20. data/spec/lib/active_remote/association_spec.rb +0 -257
  21. data/spec/lib/active_remote/attribute_methods_spec.rb +0 -33
  22. data/spec/lib/active_remote/base_spec.rb +0 -10
  23. data/spec/lib/active_remote/dirty_spec.rb +0 -93
  24. data/spec/lib/active_remote/dsl_spec.rb +0 -85
  25. data/spec/lib/active_remote/errors_spec.rb +0 -31
  26. data/spec/lib/active_remote/integration_spec.rb +0 -111
  27. data/spec/lib/active_remote/persistence_spec.rb +0 -416
  28. data/spec/lib/active_remote/primary_key_spec.rb +0 -49
  29. data/spec/lib/active_remote/query_attribute_spec.rb +0 -43
  30. data/spec/lib/active_remote/rpc_adapters/protobuf_adapter_spec.rb +0 -24
  31. data/spec/lib/active_remote/rpc_spec.rb +0 -86
  32. data/spec/lib/active_remote/scope_keys_spec.rb +0 -42
  33. data/spec/lib/active_remote/search_spec.rb +0 -114
  34. data/spec/lib/active_remote/serialization_spec.rb +0 -33
  35. data/spec/lib/active_remote/serializers/protobuf_spec.rb +0 -89
  36. data/spec/lib/active_remote/validations_spec.rb +0 -56
  37. data/spec/spec_helper.rb +0 -29
  38. data/spec/support/definitions/author.proto +0 -30
  39. data/spec/support/definitions/category.proto +0 -33
  40. data/spec/support/definitions/error.proto +0 -6
  41. data/spec/support/definitions/post.proto +0 -35
  42. data/spec/support/definitions/serializer.proto +0 -23
  43. data/spec/support/definitions/tag.proto +0 -30
  44. data/spec/support/helpers.rb +0 -35
  45. data/spec/support/models/author.rb +0 -26
  46. data/spec/support/models/category.rb +0 -19
  47. data/spec/support/models/default_author.rb +0 -12
  48. data/spec/support/models/message_with_options.rb +0 -11
  49. data/spec/support/models/no_attributes.rb +0 -2
  50. data/spec/support/models/post.rb +0 -21
  51. data/spec/support/models/tag.rb +0 -22
  52. data/spec/support/models.rb +0 -7
  53. data/spec/support/protobuf/author.pb.rb +0 -58
  54. data/spec/support/protobuf/category.pb.rb +0 -61
  55. data/spec/support/protobuf/error.pb.rb +0 -21
  56. data/spec/support/protobuf/post.pb.rb +0 -63
  57. data/spec/support/protobuf/serializer.pb.rb +0 -36
  58. data/spec/support/protobuf/tag.pb.rb +0 -58
  59. data/spec/support/protobuf.rb +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6f395bd97fb13e6ded5f85f0f5c3cd55d10ea38e157f1863f85b19290110ace
4
- data.tar.gz: 934db7491402610d164055e6ef83ec81306e3771f482652563e126717df68774
3
+ metadata.gz: 4cbac5d784c60de521085db8130deaab48e717ad11181507aaba6d5e31f62d03
4
+ data.tar.gz: bcd69479782546032f635d4185c22ec889a4464fbc7e35ff3c2c71488c8633bf
5
5
  SHA512:
6
- metadata.gz: cb616008104648457e29e51654629458988c21452d256accfaf1921c4653b4e329807f56613a30e5cd9e26a9f7a3b5ca101227abd166f4f7b0670f357c781430
7
- data.tar.gz: d8ca55f2ce6bf1d5742f724515a5aeaa55e88d9a021869f13e1573884e5b75582bdc9fbe964e215b1b6b715ad16032be6e240a42c9f1cec5addce5e09b85df75
6
+ metadata.gz: b069cb6b997c13bcce15b483dd1ebe806fc4a3695ac5218eeb96b03e35cb7f40ea857b4121c508480b78ac9fd04036ef7f8a42b01240a0f6c2167bb7c5d6a86c
7
+ data.tar.gz: effa301ad14ad261ec7fd312b44458cdf53ff20b4ad343d39576148ef323a115483f729b27ae29ffdead8ccab9d16ef49a62ab1ad3846a249cb18a95d99e4d64
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --order rand
2
1
  --require rspec/pride
3
2
  --format PrideFormatter
3
+ --require spec_helper
data/.standard.yml CHANGED
@@ -1,2 +1,3 @@
1
- parallel: true # default: false
1
+ # For available configuration options, see:
2
+ # https://github.com/standardrb/standard
2
3
  format: progress # default: Standard::Formatter
@@ -1,12 +1,18 @@
1
- # Changelog
2
-
3
1
  All notable changes to this project will be documented in this file.
4
2
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
+
5
+ Active Remote adheres to a shifted version of [semver](https://semver.org/spec/v2.0.0.html)
6
+ (a la Rails): major/minor versions shadow Rails [versions](https://guides.rubyonrails.org/maintenance_policy.html#versioning)
7
+ since Active Remote depends on specific Rails versions.
7
8
 
8
9
  ## [Unreleased]
9
10
 
11
+ ### Changed
12
+
13
+ - Update to ActiveModel 7.2
14
+ - Require Ruby 3.1 (to match Rails)
15
+
10
16
  ## [7.1.0] - 2024-12-04
11
17
 
12
18
  ### Changed
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2012-2024 Adam Hutchison
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,14 +1,17 @@
1
- #!/usr/bin/env rake
1
+ # frozen_string_literal: true
2
+
2
3
  require "bundler/gem_tasks"
3
- require "protobuf/tasks"
4
+
4
5
  require "rspec/core/rake_task"
5
- require "standard/rake"
6
6
 
7
- desc "Run specs"
8
- ::RSpec::Core::RakeTask.new(:spec)
7
+ desc "Run all examples"
8
+ RSpec::Core::RakeTask.new(:spec) do |t|
9
+ t.ruby_opts = %w[-w]
10
+ end
9
11
 
10
- desc "Run cops and specs (default)"
11
- task default: [:standard, :spec]
12
+ require "standard/rake"
13
+
14
+ task default: %i[spec standard:fix]
12
15
 
13
16
  desc "Remove protobuf definitions that have been compiled"
14
17
  task :clean do
@@ -16,7 +19,9 @@ task :clean do
16
19
  puts "Cleaned"
17
20
  end
18
21
 
22
+ require "protobuf/tasks"
23
+
19
24
  desc "Compile spec/support protobuf definitions"
20
25
  task :compile do
21
- ::Rake::Task["protobuf:compile"].invoke("", "spec/support/definitions", "spec/support/protobuf")
26
+ Rake::Task["protobuf:compile"].invoke("", "spec/support/definitions", "spec/support/protobuf")
22
27
  end
@@ -74,6 +74,8 @@ module ActiveRemote
74
74
  # end
75
75
  #
76
76
  def has_many(has_many_class, options = {})
77
+ options[:has_many] = true
78
+
77
79
  perform_association(has_many_class, options) do |klass, object|
78
80
  foreign_key = options.fetch(:foreign_key) { :"#{object.class.name.demodulize.underscore}_guid" }
79
81
  search_hash = {}
@@ -82,9 +84,6 @@ module ActiveRemote
82
84
 
83
85
  search_hash.values.any?(&:nil?) ? [] : klass.search(**search_hash)
84
86
  end
85
-
86
- options[:has_many] = true
87
- create_association_writer(has_many_class, options)
88
87
  end
89
88
 
90
89
  # Create a `has_one` association for a given remote resource.
@@ -133,15 +132,6 @@ module ActiveRemote
133
132
 
134
133
  private
135
134
 
136
- def create_association_writer(associated_klass, options = {})
137
- define_method(:"#{associated_klass}=") do |new_value|
138
- raise "New value must be an array" if options[:has_many] == true && new_value.class != Array
139
-
140
- instance_variable_set(:"@#{associated_klass}", new_value)
141
- new_value
142
- end
143
- end
144
-
145
135
  def perform_association(associated_klass, options = {})
146
136
  define_method(associated_klass) do
147
137
  klass_name = options.fetch(:class_name) { associated_klass }
@@ -159,7 +149,12 @@ module ActiveRemote
159
149
  value
160
150
  end
161
151
 
162
- create_association_writer(associated_klass, options)
152
+ define_method(:"#{associated_klass}=") do |new_value|
153
+ raise "New value must be an array" if options[:has_many] == true && new_value.class != Array
154
+
155
+ instance_variable_set(:"@#{associated_klass}", new_value)
156
+ new_value
157
+ end
163
158
  end
164
159
  end
165
160
  end
@@ -49,10 +49,8 @@ module ActiveRemote
49
49
  super
50
50
  @new_record = true
51
51
 
52
- skip_dirty_tracking do
53
- run_callbacks :initialize do
54
- yield self if block_given?
55
- end
52
+ run_callbacks :initialize do
53
+ yield self if block_given?
56
54
  end
57
55
  end
58
56
 
@@ -8,16 +8,6 @@ module ActiveRemote
8
8
 
9
9
  included do
10
10
  include ActiveModel::Dirty
11
-
12
- attr_accessor :_active_remote_track_changes
13
- end
14
-
15
- def disable_dirty_tracking
16
- @_active_remote_track_changes = false
17
- end
18
-
19
- def enable_dirty_tracking
20
- @_active_remote_track_changes = true
21
11
  end
22
12
 
23
13
  # Override #reload to provide dirty tracking.
@@ -54,30 +44,8 @@ module ActiveRemote
54
44
  end
55
45
  end
56
46
 
57
- def skip_dirty_tracking
58
- disable_dirty_tracking
59
-
60
- yield
61
-
62
- enable_dirty_tracking
63
- end
64
-
65
47
  private
66
48
 
67
- # Wether or not changes are currently being tracked for this class.
68
- #
69
- def _active_remote_track_changes?
70
- @_active_remote_track_changes != false
71
- end
72
-
73
- # Override ActiveAttr's attribute= method so we can provide support for
74
- # ActiveModel::Dirty.
75
- #
76
- def attribute=(name, value)
77
- send(:"#{name}_will_change!") if _active_remote_track_changes? && value != self[name]
78
- super
79
- end
80
-
81
49
  # Override #update to only send changed attributes.
82
50
  #
83
51
  def remote_update(*)
@@ -1,3 +1,3 @@
1
1
  module ActiveRemote
2
- VERSION = "7.1.1"
2
+ VERSION = "7.2.0"
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: 7.1.1
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hutchison
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-29 00:00:00.000000000 Z
11
+ date: 2026-02-13 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: 7.1.0
19
+ version: 7.2.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: 7.1.0
26
+ version: 7.2.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: 7.1.0
33
+ version: 7.2.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: 7.1.0
40
+ version: 7.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: protobuf
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,156 +52,23 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: benchmark-ips
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: protobuf-rspec
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: 1.1.2
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 1.1.2
83
- - !ruby/object:Gem::Dependency
84
- name: pry
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rspec-its
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: rspec-pride
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: 3.1.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: 3.1.0
125
- - !ruby/object:Gem::Dependency
126
- name: rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: 3.3.0
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: 3.3.0
139
- - !ruby/object:Gem::Dependency
140
- name: simplecov
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: standard
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: rake
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
55
  description: Active Remote provides Active Record-like object-relational mapping over
182
56
  RPC. It was written for use with Google Protocol Buffers, but could be extended
183
57
  to use any RPC data format.
184
58
  email:
185
59
  - liveh2o@gmail.com
186
- executables:
187
- - benchmark
188
- - console
60
+ executables: []
189
61
  extensions: []
190
62
  extra_rdoc_files: []
191
63
  files:
192
- - ".github/workflows/main.yml"
193
- - ".gitignore"
194
64
  - ".rspec"
195
65
  - ".rubocop.yml"
196
66
  - ".standard.yml"
197
- - CHANGES.md
198
- - Gemfile
199
- - LICENSE
67
+ - CHANGELOG.md
68
+ - CODE_OF_CONDUCT.md
69
+ - LICENSE.txt
200
70
  - README.md
201
71
  - Rakefile
202
- - active_remote.gemspec
203
- - bin/benchmark
204
- - bin/console
205
72
  - lib/active_remote.rb
206
73
  - lib/active_remote/association.rb
207
74
  - lib/active_remote/attribute_methods.rb
@@ -223,49 +90,13 @@ files:
223
90
  - lib/active_remote/serializers/protobuf.rb
224
91
  - lib/active_remote/validations.rb
225
92
  - lib/active_remote/version.rb
226
- - spec/lib/active_remote/association_spec.rb
227
- - spec/lib/active_remote/attribute_methods_spec.rb
228
- - spec/lib/active_remote/base_spec.rb
229
- - spec/lib/active_remote/dirty_spec.rb
230
- - spec/lib/active_remote/dsl_spec.rb
231
- - spec/lib/active_remote/errors_spec.rb
232
- - spec/lib/active_remote/integration_spec.rb
233
- - spec/lib/active_remote/persistence_spec.rb
234
- - spec/lib/active_remote/primary_key_spec.rb
235
- - spec/lib/active_remote/query_attribute_spec.rb
236
- - spec/lib/active_remote/rpc_adapters/protobuf_adapter_spec.rb
237
- - spec/lib/active_remote/rpc_spec.rb
238
- - spec/lib/active_remote/scope_keys_spec.rb
239
- - spec/lib/active_remote/search_spec.rb
240
- - spec/lib/active_remote/serialization_spec.rb
241
- - spec/lib/active_remote/serializers/protobuf_spec.rb
242
- - spec/lib/active_remote/validations_spec.rb
243
- - spec/spec_helper.rb
244
- - spec/support/definitions/author.proto
245
- - spec/support/definitions/category.proto
246
- - spec/support/definitions/error.proto
247
- - spec/support/definitions/post.proto
248
- - spec/support/definitions/serializer.proto
249
- - spec/support/definitions/tag.proto
250
- - spec/support/helpers.rb
251
- - spec/support/models.rb
252
- - spec/support/models/author.rb
253
- - spec/support/models/category.rb
254
- - spec/support/models/default_author.rb
255
- - spec/support/models/message_with_options.rb
256
- - spec/support/models/no_attributes.rb
257
- - spec/support/models/post.rb
258
- - spec/support/models/tag.rb
259
- - spec/support/protobuf.rb
260
- - spec/support/protobuf/author.pb.rb
261
- - spec/support/protobuf/category.pb.rb
262
- - spec/support/protobuf/error.pb.rb
263
- - spec/support/protobuf/post.pb.rb
264
- - spec/support/protobuf/serializer.pb.rb
265
- - spec/support/protobuf/tag.pb.rb
266
93
  homepage: https://github.com/liveh2o/active_remote
267
- licenses: []
268
- metadata: {}
94
+ licenses:
95
+ - MIT
96
+ metadata:
97
+ homepage_uri: https://github.com/liveh2o/active_remote
98
+ source_code_uri: https://github.com/liveh2o/active_remote
99
+ changelog_uri: https://github.com/liveh2o/active_remote/blob/main/CHANGELOG.md
269
100
  post_install_message:
270
101
  rdoc_options: []
271
102
  require_paths:
@@ -274,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
274
105
  requirements:
275
106
  - - ">="
276
107
  - !ruby/object:Gem::Version
277
- version: 2.7.0
108
+ version: 3.1.0
278
109
  required_rubygems_version: !ruby/object:Gem::Requirement
279
110
  requirements:
280
111
  - - ">="
@@ -1,41 +0,0 @@
1
- # This workflow uses actions that are not certified by GitHub.
2
- # They are provided by a third-party and are governed by
3
- # separate terms of service, privacy policy, and support
4
- # documentation.
5
-
6
- # GitHub recommends pinning actions to a commit SHA.
7
- # To get a newer version, you will need to update the SHA.
8
- # You can also reference a tag or branch, but the action may change without warning.
9
- name: ci
10
-
11
- on:
12
- push:
13
- branches: [main]
14
- pull_request:
15
- branches: [main]
16
-
17
- jobs:
18
- lint:
19
- runs-on: ubuntu-latest
20
- steps:
21
- - uses: actions/checkout@v4
22
- - uses: ruby/setup-ruby@v1
23
- with:
24
- ruby-version: "3.1"
25
- bundler-cache: true
26
- - run: bundle exec standardrb --parallel --format github
27
- test:
28
- runs-on: ubuntu-latest
29
- strategy:
30
- fail-fast: false
31
- matrix:
32
- ruby:
33
- [2.7, 3.0, 3.1, head, debug, jruby-9.4, jruby-head, truffleruby-head]
34
- continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
35
- steps:
36
- - uses: actions/checkout@v4
37
- - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
38
- with:
39
- ruby-version: ${{ matrix.ruby }}
40
- - run: bundle install
41
- - run: bundle exec rspec
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- *.gem
2
- *.swp
3
- .DS_Store
4
- .bundle
5
- .config
6
- .ruby-*
7
- .rvmrc
8
- .yardoc
9
- .idea
10
- Gemfile.lock
11
- coverage
12
- pkg/*
13
- tmp