iknow_params 2.2.4 → 2.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: e04e6c4dd0a375bed586bd4c0107dccfa2a1226fd42e16397cf7e8cbc74a5dc9
4
- data.tar.gz: a1b11326a2487733f032f2a095ae1e15bf56e2254dc11eab6522710178109a29
3
+ metadata.gz: c54aa3dbf703f1f04fa03e590544353685c0f06164145cba052834c1d55c0930
4
+ data.tar.gz: 6ab10b40f1b8bec45460c00d2bf3a8a5f78d79cc7a4cae4186625f8386c9aeca
5
5
  SHA512:
6
- metadata.gz: 7d883780b8b0ba7bf8175f99d79454451a0767d42c3eadc4965d31a8f73cc8cd6748d79d99411da10dcdeb686bb154e3294d4074a2a0ffbdaae84996e26bce8f
7
- data.tar.gz: c478dacd778625d53f71f28bbd793d00b4558d9e327b52d3f0a77a4ae1b8f879c91bd3bdbdcdca77a0fea8cab188d495e12895d58f98128364c4e69f28cb5ab8
6
+ metadata.gz: a0b4538a9449e86583e8fa478759c432e66d0157da607a742201205d211121f02c85a93fcc9cdddb887af0257570488c821d814fb4d339968221307a116a5942
7
+ data.tar.gz: fc3d1702617b6694a3849fa4fe707475c9fc672a51e659372307d2175b2b69f481f88fa45e2902e756f3f4da0a02e9229bf14908295924a149fcb77e447eaa01
data/.circleci/config.yml CHANGED
@@ -10,7 +10,7 @@ executors:
10
10
  type: string
11
11
  default: "Gemfile"
12
12
  docker:
13
- - image: circleci/ruby:<< parameters.ruby-version >>
13
+ - image: cimg/ruby:<< parameters.ruby-version >>
14
14
  environment:
15
15
  BUNDLE_JOBS: 3
16
16
  BUNDLE_RETRY: 3
@@ -92,9 +92,13 @@ workflows:
92
92
  ruby-version: "2.6"
93
93
  gemfile: gemfiles/activesupport_5_2.gemfile
94
94
  - test:
95
- name: 'ruby 2.6 ActiveSupport 6.0'
96
- ruby-version: "2.6"
95
+ name: 'ruby 2.7 ActiveSupport 6.0'
96
+ ruby-version: "2.7"
97
97
  gemfile: gemfiles/activesupport_6_0.gemfile
98
+ - test:
99
+ name: 'ruby 3.1 ActiveSupport 7.0'
100
+ ruby-version: "3.1"
101
+ gemfile: gemfiles/activesupport_7_0.gemfile
98
102
  - publish:
99
103
  filters:
100
104
  branches:
data/Appraisals CHANGED
@@ -1,7 +1,14 @@
1
- appraise "activesupport-5-2" do
2
- gem "activesupport", "~> 5.2.0"
1
+ appraise 'activesupport-5-2' do
2
+ gem 'activesupport', '~> 5.2.0'
3
+ gem 'rails', '~> 5.2.0'
3
4
  end
4
5
 
5
- appraise 'activesupport-6-0 do
6
- gem 'activesupport', '~> 6.0.0"
6
+ appraise 'activesupport-6-0' do
7
+ gem 'activesupport', '~> 6.0.0'
8
+ gem 'rails', '~> 6.0.0'
9
+ end
10
+
11
+ appraise 'activesupport-7-0' do
12
+ gem 'activesupport', '~> 7.0.0'
13
+ gem 'rails', '~> 7.0.0'
7
14
  end
@@ -4,5 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rspec_junit_formatter"
6
6
  gem "activesupport", "~> 5.2.0"
7
+ gem "rails", "~> 5.2.0"
7
8
 
8
9
  gemspec path: "../"
@@ -4,5 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rspec_junit_formatter"
6
6
  gem "activesupport", "~> 6.0.0"
7
+ gem "rails", "~> 6.0.0"
7
8
 
8
9
  gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rspec_junit_formatter"
6
+ gem "activesupport", "~> 7.0.0"
7
+ gem "rails", "~> 7.0.0"
8
+
9
+ gemspec path: "../"
data/iknow_params.gemspec CHANGED
@@ -13,23 +13,26 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "http://github.com/iknow/iknow_params"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.required_ruby_version = ">= 2.5"
17
+ spec.required_rubygems_version = ">= 2.5"
18
+
16
19
  spec.files = `git ls-files -z`.split("\x0")
17
20
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
21
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
22
  spec.require_paths = ["lib"]
20
23
 
21
- spec.add_development_dependency "bundler", "~> 1.7"
22
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "bundler", "~> 2.0"
25
+ spec.add_development_dependency "rake", "~> 12.0"
23
26
  spec.add_development_dependency "rspec", "~> 3.0"
24
27
  spec.add_development_dependency "sqlite3"
25
- spec.add_development_dependency "actionpack", "> 5.0"
26
- spec.add_development_dependency "rails", "> 5.0"
28
+ spec.add_development_dependency "actionpack", "> 5.2.0"
29
+ spec.add_development_dependency "rails", "> 5.2.0"
27
30
 
28
31
  spec.add_development_dependency "byebug"
29
32
  spec.add_development_dependency "appraisal"
30
33
  spec.add_development_dependency "tzinfo-data"
31
34
 
32
- spec.add_dependency "activesupport", "> 5.0"
35
+ spec.add_dependency "activesupport", "> 5.2.0"
33
36
  spec.add_dependency "tzinfo"
34
- spec.add_dependency "json-schema", "~> 2.8.0"
37
+ spec.add_dependency "json-schema", "~> 3.0.0"
35
38
  end
@@ -177,6 +177,8 @@ class IknowParams::Serializer
177
177
  # Abstract serializer for ISO8601 dates and times
178
178
  class ISO8601 < IknowParams::Serializer
179
179
  def load(str)
180
+ raise TypeError.new unless str.is_a?(::String)
181
+
180
182
  clazz.parse(str)
181
183
  rescue TypeError, ArgumentError => _e
182
184
  raise LoadError.new("Invalid type for conversion to #{clazz}")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IknowParams
4
- VERSION = '2.2.4'
4
+ VERSION = '2.3.0'
5
5
  end
@@ -4,6 +4,7 @@ require 'spec_helper'
4
4
  require 'iknow_params'
5
5
 
6
6
  require 'rails'
7
+ require 'active_support/core_ext'
7
8
  require 'action_controller'
8
9
 
9
10
  RSpec.describe IknowParams::Serializer do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iknow_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dev@iknow.jp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-25 00:00:00.000000000 Z
11
+ date: 2022-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '2.0'
20
20
  type: :development
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: '1.7'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '12.0'
34
34
  type: :development
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: '10.0'
40
+ version: '12.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - ">"
74
74
  - !ruby/object:Gem::Version
75
- version: '5.0'
75
+ version: 5.2.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">"
81
81
  - !ruby/object:Gem::Version
82
- version: '5.0'
82
+ version: 5.2.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">"
88
88
  - !ruby/object:Gem::Version
89
- version: '5.0'
89
+ version: 5.2.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">"
95
95
  - !ruby/object:Gem::Version
96
- version: '5.0'
96
+ version: 5.2.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: byebug
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - ">"
144
144
  - !ruby/object:Gem::Version
145
- version: '5.0'
145
+ version: 5.2.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">"
151
151
  - !ruby/object:Gem::Version
152
- version: '5.0'
152
+ version: 5.2.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: tzinfo
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 2.8.0
173
+ version: 3.0.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 2.8.0
180
+ version: 3.0.0
181
181
  description: ''
182
182
  email:
183
183
  - ''
@@ -188,7 +188,6 @@ files:
188
188
  - ".circleci/config.yml"
189
189
  - ".gitignore"
190
190
  - ".rspec"
191
- - ".travis.yml"
192
191
  - Appraisals
193
192
  - Gemfile
194
193
  - LICENSE.txt
@@ -196,6 +195,7 @@ files:
196
195
  - Rakefile
197
196
  - gemfiles/activesupport_5_2.gemfile
198
197
  - gemfiles/activesupport_6_0.gemfile
198
+ - gemfiles/activesupport_7_0.gemfile
199
199
  - iknow_params.gemspec
200
200
  - lib/iknow_params.rb
201
201
  - lib/iknow_params/parser.rb
@@ -222,14 +222,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
223
  - - ">="
224
224
  - !ruby/object:Gem::Version
225
- version: '0'
225
+ version: '2.5'
226
226
  required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  requirements:
228
228
  - - ">="
229
229
  - !ruby/object:Gem::Version
230
- version: '0'
230
+ version: '2.5'
231
231
  requirements: []
232
- rubygems_version: 3.0.3
232
+ rubygems_version: 3.3.11
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Rails parameter parser for iKnow.
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- dist: trusty
2
- language: ruby
3
- rvm:
4
- - 2.4
5
- gemfile:
6
- - gemfiles/activesupport_5_2.gemfile
7
- notifications:
8
- email: false