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: 54fb95b435cca7028c60d4d3b5f504b505c9aa7f319186b67c046cc0f73dd661
4
- data.tar.gz: 2db441729fcd5d45534ebdfe64de47ad7cfb0f8faeff08d61af1263e9470d0c3
3
+ metadata.gz: 70497b097149f6420e459692ce751284d875f4fffefb300effaaf0bc968bb0af
4
+ data.tar.gz: c90873d6905072f64ab9ac0ec9e4d14bb48ce466767eeaaed4cc28373602eccc
5
5
  SHA512:
6
- metadata.gz: 88c3e60bf3797839d34f2f4aa65973c0d9df66a73b76988b55988899063bd4a4a452f82c1f589bfee8e78e643f87a344af6367e38bc9a68df2de9c050a39e4dc
7
- data.tar.gz: b222343748c62a20e7dbcf3fbc1b3ee240de25420270b054cdab3315583448b0ad5a55111a325299e380ab85c0edccf768637b811cde17fd2deebaff51f78456
6
+ metadata.gz: 42860cc23cec314965afe22f391b5b8e16236493a7879f22199e3d9c9907c5ca2d72bbc4c2e0ba4b7bada981ba1a4005a83f7424e9cfdbdf900151ef7f9f762b
7
+ data.tar.gz: 2e6d01b41a9698946e6ad19928a660262929274ede445c8e5e04ab576ea485e72e371baf17fa47936e737c915497a6e2e7f7fb25578c27688033801dfe0361c1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.0
2
+
3
+ - Drop support ruby@2.5
4
+ - Fix keyword args warn
5
+
1
6
  ## 0.1.2
2
7
 
3
8
  - Update dependency
@@ -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"
@@ -1,5 +1,5 @@
1
1
  module Activemodel
2
2
  module CsvValidator
3
- VERSION = '0.1.2'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -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.1.2
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: 2020-03-22 00:00:00.000000000 Z
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: '0'
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.0.3
126
+ rubygems_version: 3.1.2
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: CSV Validator for Active Model