activemodel-csv_validator 0.1.2 → 0.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70497b097149f6420e459692ce751284d875f4fffefb300effaaf0bc968bb0af
|
4
|
+
data.tar.gz: c90873d6905072f64ab9ac0ec9e4d14bb48ce466767eeaaed4cc28373602eccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42860cc23cec314965afe22f391b5b8e16236493a7879f22199e3d9c9907c5ca2d72bbc4c2e0ba4b7bada981ba1a4005a83f7424e9cfdbdf900151ef7f9f762b
|
7
|
+
data.tar.gz: 2e6d01b41a9698946e6ad19928a660262929274ede445c8e5e04ab576ea485e72e371baf17fa47936e737c915497a6e2e7f7fb25578c27688033801dfe0361c1
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
+
spec.required_ruby_version = '>= 2.6.0'
|
25
26
|
spec.add_dependency "activemodel", ">= 5.2.0"
|
26
27
|
spec.add_dependency "activesupport", ">= 5.2.0"
|
27
28
|
spec.add_development_dependency "bundler", "~> 2.0"
|
@@ -12,7 +12,7 @@ module ActiveModel
|
|
12
12
|
rows = CSV.parse(content, headers: :first_row, converters: :integer)
|
13
13
|
|
14
14
|
if options[:max].present? && rows.size > options[:max]
|
15
|
-
record.errors.add(attribute, :max_rows, options.slice(:max).merge(rows: rows.size))
|
15
|
+
record.errors.add(attribute, :max_rows, **options.slice(:max).merge(rows: rows.size))
|
16
16
|
end
|
17
17
|
|
18
18
|
if options[:headers].present?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activemodel-csv_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aki77
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -116,14 +116,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
119
|
+
version: 2.6.0
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
126
|
+
rubygems_version: 3.1.2
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: CSV Validator for Active Model
|