bullet_train-scope_validator 1.6.38 → 1.7.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: 4a8d7b819d5fa7bc194d272903804e0d7abcde86b1f2af9940299b95dd81ffe2
4
- data.tar.gz: 70b48a07474b53c9626d98c7c8fa523f0c0e49d9ff7c78b3e2329c2a87631b16
3
+ metadata.gz: 2aabf9183e1cfde192145b319fdbff57d56bbe9dedb508aa70e3c55c1287c46a
4
+ data.tar.gz: 46ce5ff38a6cacddc6444d6b241dcf7d262ca3d3bb57a189fb6e271e77169b05
5
5
  SHA512:
6
- metadata.gz: 1081c92f317ae2f04da696f570e79d0a7b624c5d08019a00a70dfa0bdce72e3ec94bda7864b61e6e8eef9f2781f9ee9234cc31712e7ef5a85bcea6ecb3f1abcb
7
- data.tar.gz: d1f7e8eb0eae09681db347155ec92d19c11dee3897f63703ba5fa217940d706ddf9e6615dc52c749a8baca33c9f6eb5fe8f47d19df95ed51e09437a7e288ca41
6
+ metadata.gz: d867559baffb79e5809062b96e33551be141c5e8fa28b51a2e75f8dc3d3e9ee6be121dd7a4a8b969187806a21b27f8fa7ba83e289e4602a028228a0db3801256
7
+ data.tar.gz: f34e68b759812ee82f7ecee65dbe157a5c302704b8f0beac28affac669f70a87d7d03f639613bc0ca714715f4f1e3c5d87a91be5ac1092b0d9ff5bb3868a1d2c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bullet_train-scope_validator (1.6.38)
4
+ bullet_train-scope_validator (1.7.0)
5
5
  rails
6
6
 
7
7
  GEM
@@ -124,9 +124,9 @@ GEM
124
124
  net-protocol
125
125
  net-protocol (0.2.2)
126
126
  timeout
127
- net-smtp (0.4.0.1)
127
+ net-smtp (0.5.0)
128
128
  net-protocol
129
- nio4r (2.7.0)
129
+ nio4r (2.7.1)
130
130
  nokogiri (1.16.3-arm64-darwin)
131
131
  racc (~> 1.4)
132
132
  nokogiri (1.16.3-x86_64-linux)
@@ -137,7 +137,7 @@ GEM
137
137
  psych (5.1.2)
138
138
  stringio
139
139
  racc (1.7.3)
140
- rack (3.0.9.1)
140
+ rack (3.0.10)
141
141
  rack-session (2.0.0)
142
142
  rack (>= 3.0.0)
143
143
  rack-test (2.1.0)
@@ -176,10 +176,10 @@ GEM
176
176
  zeitwerk (~> 2.6)
177
177
  rainbow (3.1.1)
178
178
  rake (13.0.6)
179
- rdoc (6.6.2)
179
+ rdoc (6.6.3.1)
180
180
  psych (>= 4.0.0)
181
181
  regexp_parser (2.2.0)
182
- reline (0.4.3)
182
+ reline (0.5.0)
183
183
  io-console (~> 0.5)
184
184
  rexml (3.2.5)
185
185
  rubocop (1.24.1)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BulletTrain
4
4
  module ScopeValidator
5
- VERSION = "1.6.38"
5
+ VERSION = "1.7.0"
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  class ScopeValidator < ActiveModel::EachValidator
2
2
  def validate_each(record, attribute, value)
3
- id_method = "#{attribute}_id".to_sym
4
- valid_collection = "valid_#{attribute.to_s.pluralize}".to_sym
3
+ id_method = :"#{attribute}_id"
4
+ valid_collection = :"valid_#{attribute.to_s.pluralize}"
5
5
 
6
6
  if record.send(id_method).present?
7
7
  # Don't allow users to assign the IDs of other teams' or users' resources to this attribute.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-scope_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.38
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-20 00:00:00.000000000 Z
11
+ date: 2024-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails