bullet_train-scope_validator 1.2.27 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dedbb460db988bca675b5c8f9671070d0b2b272857d8f79d171aaa4a5d61b76e
4
- data.tar.gz: b812d4b58e73fa98da33c7e94813f7eeaa104831a078c217c56a3c05ead69ac8
3
+ metadata.gz: c0d719fb23e8b0744b1636c98231b972a1e122d6147d7655e0d4c7200c0f58a9
4
+ data.tar.gz: eb5b2d8da9baefde57599518231e89c6563614bb2fe7a85c29e19d7661da7715
5
5
  SHA512:
6
- metadata.gz: f940a9e54201f5300ce48c12492634660b3ceec4973d8a44ffc5e5c1225ccfefb8068732e1eab31f697515b8733241cf8496b92bd8d2fe47b7e6d18cf398fe88
7
- data.tar.gz: 8943d841abd47be725738e903497b04433775d544bb4c0f57e1fc593446bc96fa859b36bbdbfd656a80489f23170ff457044149d1f9c93001913fcc3cfdf010a
6
+ metadata.gz: 6de65b02ce6f4febc3d82bfcef90b5480d45cfe60006e8a7a7edc4eac8db1cce1748e20cfc51a030d44bc40e76044a5872f704a421788d57aacf4d7b449f95fe
7
+ data.tar.gz: 19afd4daa752d2841348c60a985a3dd32b61df38d819b05a4d398e7db010a72eb9a9d6f304ae0b2cc83ccf62e6a6bd1584e7b9569c6c513e633b07d134e64149
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bullet_train-scope_validator (1.2.27)
4
+ bullet_train-scope_validator (1.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -50,7 +50,7 @@ end
50
50
 
51
51
  ### Example Form
52
52
 
53
- ```
53
+ ```erb
54
54
  <%= form.collection_select(:customer_id, @team.customers, :id, :name) %>
55
55
  ```
56
56
 
@@ -101,7 +101,7 @@ end
101
101
 
102
102
  If you're wondering what the connection between `validates :customer, scope: true` and `def valid_customers` is, it's just a convention that the former will call the latter based on the name of the attibute being validated. We've favored a full-blown method definition for this instead of simply passing in a proc into the validator because having a method allows us to also DRY up our form view to use the same definition of valid options, like so:
103
103
 
104
- ```
104
+ ```erb
105
105
  <%= form.collection_select(:customer_id, form.object.valid_customers, :id, :name) %>
106
106
  ```
107
107
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BulletTrain
4
4
  module ScopeValidator
5
- VERSION = "1.2.27"
5
+ VERSION = "1.3.0"
6
6
  end
7
7
  end
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.2.27
4
+ version: 1.3.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: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2023-08-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Protect `belongs_to` attributes from ID stuffing.
14
14
  email:
@@ -31,12 +31,12 @@ files:
31
31
  - lib/bullet_train/scope_validator/version.rb
32
32
  - lib/validators/scope_validator.rb
33
33
  - sig/bullet_train/scope_validator.rbs
34
- homepage: https://github.com/bullet-train-co/bullet_train-scope_validator
34
+ homepage: https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-scope_validator
35
35
  licenses:
36
36
  - MIT
37
37
  metadata:
38
- homepage_uri: https://github.com/bullet-train-co/bullet_train-scope_validator
39
- source_code_uri: https://github.com/bullet-train-co/bullet_train-scope_validator
38
+ homepage_uri: https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-scope_validator
39
+ source_code_uri: https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-scope_validator
40
40
  post_install_message:
41
41
  rdoc_options: []
42
42
  require_paths:
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  requirements: []
55
- rubygems_version: 3.4.10
55
+ rubygems_version: 3.3.7
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: Protect `belongs_to` attributes from ID stuffing.