protobuf-activerecord 7.0.0 → 7.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b362902e62f6e87a34d62a4177c774403b83cdfd258b8880f9f905321713cd0d
4
- data.tar.gz: fa45265bea9a946f4d4cb5c32e651594ce2053085214e4418dd6ec0ff19a1b5d
3
+ metadata.gz: 7bc4240e3a09e5096128e31fa18dbd04aae1f3a053e1b77928a446c74ffa97c9
4
+ data.tar.gz: 1f27900848c3d25372398cf6faa872056f528ec2c871cf8cc1e9da460cc0b895
5
5
  SHA512:
6
- metadata.gz: d9900f4e2338cdc2029be1234def0f48ce1c5e61989c3c0d8e98309f0f701a7ded62f92a1270c90adb2fce154db6cb6c492c72a3c670361179c1bdacb8f5705c
7
- data.tar.gz: 6c0e52dfe1785c7c271dbb9e21934b8a7381870df4e569742ba01a51f44d76737fbb9fe216f414fedbaf8b27948750abb2e61663f6665bc79a7ca2203087cf7c
6
+ metadata.gz: b72e52b18db91e69b455418fe3063cd073b988b89832077cba73fc6fce72e860cd4b5e8f3034e1276ef495669a1b2128060457416719b69301e928cf56106214
7
+ data.tar.gz: d299f498ef5d6cea450d0e4e0bbfdb48c4d755f6edfd9536b3f6823823817921a9db70c000b07e1a5ee283e489800c49a118c550ac9047d2443351e992f1cc3c
data/.rubocop.yml CHANGED
@@ -1,7 +1,3 @@
1
- require:
2
- # Standard's config uses custom cops, so it must be loaded
3
- - standard
4
-
1
+ ---
5
2
  inherit_gem:
6
- standard: config/base.yml
7
- standard-performance: config.base.yml
3
+ standard: config/ruby-2.7.yml
data/.standard.yml CHANGED
@@ -1,2 +1,3 @@
1
- parallel: true # default: false
2
- ruby_version: 3.0 # default: RUBY_VERSION
1
+ # For available configuration options, see:
2
+ # https://github.com/standardrb/standard
3
+ format: progress # default: Standard::Formatter
data/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ All notable changes to this project will be documented in this file.
2
+
3
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
+
5
+ Protobuf Active Record 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 it depends on specific Rails versions.
8
+
9
+ ## [Unreleased]
10
+
11
+ ## [7.0.0] – 2024-03-03
12
+
13
+ - Added Rails 7.0 support
@@ -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 CHANGED
@@ -1,22 +1,21 @@
1
- Copyright (c) 2012 Adam Hutchison
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) 2024 Adam Hutchison
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
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:
12
11
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
15
14
 
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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/README.md CHANGED
@@ -1,5 +1,6 @@
1
+ [![Build](https://github.com/liveh2o/protobuf-activerecord/actions/workflows/main.yml/badge.svg)](https://github.com/liveh2o/protobuf-activerecord/actions)
2
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)
1
3
  [![Gem Version](https://badge.fury.io/rb/protobuf-activerecord.svg)](http://badge.fury.io/rb/protobuf-activerecord)
2
- [![Build Status](https://travis-ci.org/liveh2o/protobuf-activerecord.svg?branch=master)](https://travis-ci.org/liveh2o/protobuf-activerecord)
3
4
 
4
5
  # Protobuf ActiveRecord
5
6
 
@@ -170,11 +171,12 @@ end
170
171
 
171
172
  ### Setting attributes to nil
172
173
 
173
- The protocol buffers specification does not allow for the transport of 'null' or 'nil' values for a field. In fact, in order to keep messages small and lightweight this is desireable behavior. Fields are that are not set to a value will not be sent over the wire, but we cannot assume given a message has an absent value for a field that we should set the our attributes to nil.
174
+ The protocol buffers specification does not allow for the transport of 'null' or 'nil' values for a field. In fact, in order to keep messages small and lightweight this is desireable behavior. Fields are that are not set to a value will not be sent over the wire, but we cannot assume given a message has an absent value for a field that we should set the our attributes to nil.
174
175
 
175
- In order to solve this problem, Protobuf::ActiveRecord has a convention that tells it when to set an attribute to nil. A message must define a repeated string field named 'nullify'. If an attribute has the same name as an element in the 'nullify' field, this attribute will be set to nil.
176
+ In order to solve this problem, Protobuf::ActiveRecord has a convention that tells it when to set an attribute to nil. A message must define a repeated string field named 'nullify'. If an attribute has the same name as an element in the 'nullify' field, this attribute will be set to nil.
176
177
 
177
178
  Example:
179
+
178
180
  ```
179
181
  message UserMessage {
180
182
  optional string name = 1;
@@ -182,14 +184,16 @@ message UserMessage {
182
184
  }
183
185
 
184
186
  ```
187
+
185
188
  ```ruby
186
189
  m = UserMessage.new(:nullify => [:name])
187
190
  # When Protobuf::ActiveRecord maps this message, it will set the name attribute to nil overwriting any value that is set.
188
191
  ```
189
192
 
190
- For attribute transformers, the field name will not match the attribute name so we need to give the attribute transformer a hint to instruct it on how to nullify a given attribute. When declaring an attribute transformer, you can specify a :nullify_on option. This indicates for the given attribute, if the value of 'nullify_on' is present in the nullify field, set this attribute to nil.
193
+ For attribute transformers, the field name will not match the attribute name so we need to give the attribute transformer a hint to instruct it on how to nullify a given attribute. When declaring an attribute transformer, you can specify a :nullify_on option. This indicates for the given attribute, if the value of 'nullify_on' is present in the nullify field, set this attribute to nil.
191
194
 
192
195
  Example:
196
+
193
197
  ```Ruby
194
198
  class User < ActiveRecord::Base
195
199
  # When 'account_guid' is present in the nullify array, our 'account_id' attribute will be set to nil
data/Rakefile CHANGED
@@ -1,21 +1,28 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
- require "protobuf/tasks"
4
+
3
5
  require "rspec/core/rake_task"
4
- require "standard/rake"
5
6
 
6
7
  desc "Run specs"
7
- ::RSpec::Core::RakeTask.new(:spec)
8
+ RSpec::Core::RakeTask.new(:spec) do |t|
9
+ t.ruby_opts = %w[-w]
10
+ end
11
+
12
+ require "standard/rake"
8
13
 
9
14
  desc "Run cops and specs (default)"
10
- task default: [:standard, :spec]
15
+ task default: %i[spec standard:fix]
11
16
 
12
17
  desc "Remove protobuf definitions that have been compiled"
13
18
  task :clean do
14
- ::FileUtils.rm(Dir.glob("spec/support/protobuf/**/*.proto"))
19
+ FileUtils.rm(Dir.glob("spec/support/protobuf/**/*.proto"))
15
20
  puts "Cleaned"
16
21
  end
17
22
 
23
+ require "protobuf/tasks"
24
+
18
25
  desc "Compile spec/support protobuf definitions"
19
26
  task :compile, [] => :clean do
20
- ::Rake::Task["protobuf:compile"].invoke("", "spec/support/definitions", "spec/support/protobuf")
27
+ Rake::Task["protobuf:compile"].invoke("", "spec/support/definitions", "spec/support/protobuf")
21
28
  end
@@ -1,4 +1,3 @@
1
- require "set"
2
1
  require "active_support/concern"
3
2
 
4
3
  module Protobuf
@@ -37,7 +37,7 @@ module Protobuf
37
37
  end
38
38
  end
39
39
 
40
- super(association_name, attributes_collection)
40
+ super
41
41
  end
42
42
 
43
43
  # :nodoc:
@@ -47,7 +47,7 @@ module Protobuf
47
47
  attributes = reflection.klass.attributes_from_proto(attributes)
48
48
  end
49
49
 
50
- super(association_name, attributes)
50
+ super
51
51
  end
52
52
  end
53
53
  end
@@ -10,14 +10,14 @@ module Protobuf
10
10
  def create(attributes = {}, &block)
11
11
  attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message)
12
12
 
13
- super(attributes, &block)
13
+ super
14
14
  end
15
15
 
16
16
  # :nodoc:
17
17
  def create!(attributes = {}, &block)
18
18
  attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message)
19
19
 
20
- super(attributes, &block)
20
+ super
21
21
  end
22
22
  end
23
23
 
@@ -27,28 +27,28 @@ module Protobuf
27
27
  def initialize(*args, &block)
28
28
  args[0] = attributes_from_proto(args.first) if args.first.is_a?(::Protobuf::Message)
29
29
 
30
- super(*args, &block)
30
+ super
31
31
  end
32
32
 
33
33
  # :nodoc:
34
34
  def assign_attributes(attributes)
35
35
  attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message)
36
36
 
37
- super(attributes)
37
+ super
38
38
  end
39
39
 
40
40
  # :nodoc:
41
41
  def update(attributes)
42
42
  attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message)
43
43
 
44
- super(attributes)
44
+ super
45
45
  end
46
46
 
47
47
  # :nodoc:
48
48
  def update!(attributes)
49
49
  attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message)
50
50
 
51
- super(attributes)
51
+ super
52
52
  end
53
53
  end
54
54
  end
@@ -1,4 +1,3 @@
1
- require "set"
2
1
  require "active_support/concern"
3
2
 
4
3
  module Protobuf
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module ActiveRecord
3
- VERSION = "7.0.0"
3
+ VERSION = "7.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf-activerecord
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
- autorequire:
9
- bindir: bin
8
+ autorequire:
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-04 00:00:00.000000000 Z
11
+ date: 2025-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.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: 7.0.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: 7.0.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: 7.0.0
40
+ version: 7.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: concurrent-ruby
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -80,132 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
- - !ruby/object:Gem::Dependency
84
- name: benchmark-ips
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: rake
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
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: 3.3.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.3.0
125
- - !ruby/object:Gem::Dependency
126
- name: rspec-pride
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: 3.1.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.1.0
139
- - !ruby/object:Gem::Dependency
140
- name: pry-nav
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: simplecov
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: standard
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
- - !ruby/object:Gem::Dependency
182
- name: sqlite3
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '1.4'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '1.4'
195
- - !ruby/object:Gem::Dependency
196
- name: timecop
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
83
  description: Provides the ability to create Active Record objects from Protocol Buffer
210
84
  messages and vice versa.
211
85
  email:
@@ -214,12 +88,11 @@ executables: []
214
88
  extensions: []
215
89
  extra_rdoc_files: []
216
90
  files:
217
- - ".gitignore"
218
91
  - ".rspec"
219
92
  - ".rubocop.yml"
220
93
  - ".standard.yml"
221
- - ".travis.yml"
222
- - Gemfile
94
+ - CHANGELOG.md
95
+ - CODE_OF_CONDUCT.md
223
96
  - LICENSE.txt
224
97
  - README.md
225
98
  - Rakefile
@@ -241,27 +114,14 @@ files:
241
114
  - lib/protobuf/active_record/transformer.rb
242
115
  - lib/protobuf/active_record/validations.rb
243
116
  - lib/protobuf/active_record/version.rb
244
- - protobuf-activerecord.gemspec
245
- - spec/protobuf/active_record/columns_spec.rb
246
- - spec/protobuf/active_record/nested_attributes_spec.rb
247
- - spec/protobuf/active_record/persistence_spec.rb
248
- - spec/protobuf/active_record/scope_spec.rb
249
- - spec/protobuf/active_record/serialization_spec.rb
250
- - spec/protobuf/active_record/transformation_spec.rb
251
- - spec/protobuf/active_record/transformer_spec.rb
252
- - spec/spec_helper.rb
253
- - spec/support/db.rb
254
- - spec/support/db/setup.rb
255
- - spec/support/definitions/messages.proto
256
- - spec/support/models.rb
257
- - spec/support/models/photo.rb
258
- - spec/support/models/user.rb
259
- - spec/support/protobuf/messages.pb.rb
260
117
  homepage: http://github.com/liveh2o/protobuf-activerecord
261
118
  licenses:
262
119
  - MIT
263
- metadata: {}
264
- post_install_message:
120
+ metadata:
121
+ homepage_uri: http://github.com/liveh2o/protobuf-activerecord
122
+ source_code_uri: http://github.com/liveh2o/protobuf-activerecord
123
+ changelog_uri: http://github.com/liveh2o/protobuf-activerecord/blob/main/CHANGELOG.md
124
+ post_install_message:
265
125
  rdoc_options: []
266
126
  require_paths:
267
127
  - lib
@@ -269,15 +129,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
269
129
  requirements:
270
130
  - - ">="
271
131
  - !ruby/object:Gem::Version
272
- version: '0'
132
+ version: 2.7.0
273
133
  required_rubygems_version: !ruby/object:Gem::Requirement
274
134
  requirements:
275
135
  - - ">="
276
136
  - !ruby/object:Gem::Version
277
137
  version: '0'
278
138
  requirements: []
279
- rubygems_version: 3.4.10
280
- signing_key:
139
+ rubygems_version: 3.4.22
140
+ signing_key:
281
141
  specification_version: 4
282
142
  summary: Google Protocol Buffers integration for Active Record
283
143
  test_files: []
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- *.db
2
- *.gem
3
- .DS_Store
4
- .bundle
5
- .config
6
- .rvmrc
7
- .yardoc
8
- .ruby-*
9
- Gemfile.lock
10
- coverage
11
- pkg/*
12
- tmp
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- ---
2
- language: ruby
3
- rvm:
4
- - 2.5
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in protobuf-activerecord.gemspec
4
- gemspec