explicit-parameters 0.3.0 → 0.4.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
- SHA1:
3
- metadata.gz: 8007f1c3362222d21bc09f01d1d3ce1406f176ba
4
- data.tar.gz: 1542bd6f3733ebd9caa701aac35220789b584459
2
+ SHA256:
3
+ metadata.gz: b1fbf814254206c49efcc797d87c28787d825ed5b624b497bc3e6effbe427cb5
4
+ data.tar.gz: ba57d27a8d2b94a54255c86e587536701ab1979d7b82a3dea962e8f6db68cbcc
5
5
  SHA512:
6
- metadata.gz: 61b2789a592f1f1f38515a811617547715a69e5bc218cc443696d47f128dc249b1c995bfdacb968d6ae5c92b9ebcde771af7e578753b36606f48d95b88f15740
7
- data.tar.gz: f298ac5df2438dab73eda4b5d5f1c3255657747f8ac79141d580c46ab0e537f0dbc40ea7b7809d688411f8214c40eb8f6b39f84576f5bf6eacbb7fe8ecd7e637
6
+ metadata.gz: c8e059e8e7063c82ee36d433a8a6e26d405369719826f6bb6ef24c67e74e7201c2cc7b937ade21cabb88899c220fc49b2567cbc099d38465afea21c2be0fd18e
7
+ data.tar.gz: 464edf9d6615639ff168e86755e6b7d380f7f2eba68ad09833ea6feb49853c5e18de3f948fc2804c57d3f790ef71924a381f0a43fa2332da3e9ce735d65bc0cf
@@ -1,7 +1,8 @@
1
1
  sudo: false
2
2
  cache: bundler
3
3
  rvm:
4
- 2.2.3
4
+ 2.6.4
5
5
  gemfile:
6
- - gemfiles/Gemfile.rails-5.0
7
- - gemfiles/Gemfile.rails-5.1
6
+ - gemfiles/Gemfile.rails-6.0
7
+ before_install:
8
+ - gem install bundler
@@ -17,11 +17,11 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'actionpack', '>= 5.0', '< 5.3'
21
- spec.add_dependency 'activemodel', '>= 5.0', '< 5.3'
20
+ spec.add_dependency 'actionpack', '>= 6.0'
21
+ spec.add_dependency 'activemodel', '>= 6.0'
22
22
  spec.add_dependency 'virtus', '~> 1.0'
23
23
 
24
- spec.add_development_dependency 'bundler', '~> 1.7'
24
+ spec.add_development_dependency 'bundler'
25
25
  spec.add_development_dependency 'rake', '~> 10.0'
26
26
  spec.add_development_dependency 'rspec', '~> 3.0'
27
27
  end
@@ -1,24 +1,24 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actionpack (5.1.0)
5
- actionview (= 5.1.0)
6
- activesupport (= 5.1.0)
4
+ actionpack (5.2.3)
5
+ actionview (= 5.2.3)
6
+ activesupport (= 5.2.3)
7
7
  rack (~> 2.0)
8
- rack-test (~> 0.6.3)
8
+ rack-test (>= 0.6.3)
9
9
  rails-dom-testing (~> 2.0)
10
10
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
11
- actionview (5.1.0)
12
- activesupport (= 5.1.0)
11
+ actionview (5.2.3)
12
+ activesupport (= 5.2.3)
13
13
  builder (~> 3.1)
14
14
  erubi (~> 1.4)
15
15
  rails-dom-testing (~> 2.0)
16
16
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
17
- activemodel (5.1.0)
18
- activesupport (= 5.1.0)
19
- activesupport (5.1.0)
17
+ activemodel (5.2.3)
18
+ activesupport (= 5.2.3)
19
+ activesupport (5.2.3)
20
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
21
- i18n (~> 0.7)
21
+ i18n (>= 0.7, < 2)
22
22
  minitest (~> 5.1)
23
23
  tzinfo (~> 1.1)
24
24
  axiom-types (0.1.1)
@@ -28,44 +28,47 @@ GEM
28
28
  builder (3.2.3)
29
29
  coercible (1.0.0)
30
30
  descendants_tracker (~> 0.0.1)
31
- concurrent-ruby (1.0.5)
31
+ concurrent-ruby (1.1.5)
32
+ crass (1.0.4)
32
33
  descendants_tracker (0.0.4)
33
34
  thread_safe (~> 0.3, >= 0.3.1)
34
35
  diff-lcs (1.3)
35
36
  equalizer (0.0.11)
36
- erubi (1.6.0)
37
- i18n (0.8.1)
37
+ erubi (1.8.0)
38
+ i18n (1.6.0)
39
+ concurrent-ruby (~> 1.0)
38
40
  ice_nine (0.11.2)
39
- loofah (2.0.3)
41
+ loofah (2.2.3)
42
+ crass (~> 1.0.2)
40
43
  nokogiri (>= 1.5.9)
41
- mini_portile2 (2.1.0)
42
- minitest (5.10.1)
43
- nokogiri (1.7.1)
44
- mini_portile2 (~> 2.1.0)
45
- rack (2.0.1)
46
- rack-test (0.6.3)
47
- rack (>= 1.0)
48
- rails-dom-testing (2.0.2)
49
- activesupport (>= 4.2.0, < 6.0)
50
- nokogiri (~> 1.6)
51
- rails-html-sanitizer (1.0.3)
52
- loofah (~> 2.0)
44
+ mini_portile2 (2.4.0)
45
+ minitest (5.11.3)
46
+ nokogiri (1.10.4)
47
+ mini_portile2 (~> 2.4.0)
48
+ rack (2.0.7)
49
+ rack-test (1.1.0)
50
+ rack (>= 1.0, < 3)
51
+ rails-dom-testing (2.0.3)
52
+ activesupport (>= 4.2.0)
53
+ nokogiri (>= 1.6)
54
+ rails-html-sanitizer (1.2.0)
55
+ loofah (~> 2.2, >= 2.2.2)
53
56
  rake (10.5.0)
54
- rspec (3.5.0)
55
- rspec-core (~> 3.5.0)
56
- rspec-expectations (~> 3.5.0)
57
- rspec-mocks (~> 3.5.0)
58
- rspec-core (3.5.4)
59
- rspec-support (~> 3.5.0)
60
- rspec-expectations (3.5.0)
57
+ rspec (3.8.0)
58
+ rspec-core (~> 3.8.0)
59
+ rspec-expectations (~> 3.8.0)
60
+ rspec-mocks (~> 3.8.0)
61
+ rspec-core (3.8.2)
62
+ rspec-support (~> 3.8.0)
63
+ rspec-expectations (3.8.4)
61
64
  diff-lcs (>= 1.2.0, < 2.0)
62
- rspec-support (~> 3.5.0)
63
- rspec-mocks (3.5.0)
65
+ rspec-support (~> 3.8.0)
66
+ rspec-mocks (3.8.1)
64
67
  diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.5.0)
66
- rspec-support (3.5.0)
68
+ rspec-support (~> 3.8.0)
69
+ rspec-support (3.8.2)
67
70
  thread_safe (0.3.6)
68
- tzinfo (1.2.3)
71
+ tzinfo (1.2.5)
69
72
  thread_safe (~> 0.1)
70
73
  virtus (1.0.5)
71
74
  axiom-types (~> 0.1)
@@ -84,4 +87,4 @@ DEPENDENCIES
84
87
  virtus (~> 1.0)
85
88
 
86
89
  BUNDLED WITH
87
- 1.14.6
90
+ 2.0.2
@@ -1,3 +1,3 @@
1
1
  module ExplicitParameters
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
@@ -30,7 +30,7 @@ RSpec.describe DummyController do
30
30
 
31
31
  it 'coerce parameters to the required type' do
32
32
  get :index, page_size: '42'
33
- expect(json_response).to be == {value: 42, type: 'Fixnum'}
33
+ expect(json_response).to be == {value: 42, type: 'Integer'}
34
34
  end
35
35
 
36
36
  it 'returns a 422 if parameters are invalid' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: explicit-parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -16,40 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5.3'
19
+ version: '6.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '5.0'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '5.3'
26
+ version: '6.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: activemodel
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - ">="
38
32
  - !ruby/object:Gem::Version
39
- version: '5.0'
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '5.3'
33
+ version: '6.0'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - ">="
48
39
  - !ruby/object:Gem::Version
49
- version: '5.0'
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '5.3'
40
+ version: '6.0'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: virtus
55
43
  requirement: !ruby/object:Gem::Requirement
@@ -68,16 +56,16 @@ dependencies:
68
56
  name: bundler
69
57
  requirement: !ruby/object:Gem::Requirement
70
58
  requirements:
71
- - - "~>"
59
+ - - ">="
72
60
  - !ruby/object:Gem::Version
73
- version: '1.7'
61
+ version: '0'
74
62
  type: :development
75
63
  prerelease: false
76
64
  version_requirements: !ruby/object:Gem::Requirement
77
65
  requirements:
78
- - - "~>"
66
+ - - ">="
79
67
  - !ruby/object:Gem::Version
80
- version: '1.7'
68
+ version: '0'
81
69
  - !ruby/object:Gem::Dependency
82
70
  name: rake
83
71
  requirement: !ruby/object:Gem::Requirement
@@ -121,10 +109,8 @@ files:
121
109
  - README.md
122
110
  - Rakefile
123
111
  - explicit-parameters.gemspec
124
- - gemfiles/Gemfile.rails-5.0
125
- - gemfiles/Gemfile.rails-5.0.lock
126
- - gemfiles/Gemfile.rails-5.1
127
- - gemfiles/Gemfile.rails-5.1.lock
112
+ - gemfiles/Gemfile.rails-6.0
113
+ - gemfiles/Gemfile.rails-6.0.lock
128
114
  - lib/explicit-parameters.rb
129
115
  - lib/explicit_parameters.rb
130
116
  - lib/explicit_parameters/controller.rb
@@ -153,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
139
  - !ruby/object:Gem::Version
154
140
  version: '0'
155
141
  requirements: []
156
- rubyforge_project:
157
- rubygems_version: 2.5.1
142
+ rubygems_version: 3.0.4
158
143
  signing_key:
159
144
  specification_version: 4
160
145
  summary: Explicit parameters validation and casting for Rails APIs
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'actionpack', '~> 5.0'
4
- gem 'activemodel', '~> 5.0'
5
- gem 'virtus', '~> 1.0'
6
- gem 'rake', '~> 10.0'
7
- gem 'rspec', '~> 3.0'
@@ -1,89 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- actionpack (5.0.0)
5
- actionview (= 5.0.0)
6
- activesupport (= 5.0.0)
7
- rack (~> 2.0)
8
- rack-test (~> 0.6.3)
9
- rails-dom-testing (~> 2.0)
10
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
11
- actionview (5.0.0)
12
- activesupport (= 5.0.0)
13
- builder (~> 3.1)
14
- erubis (~> 2.7.0)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- activemodel (5.0.0)
18
- activesupport (= 5.0.0)
19
- activesupport (5.0.0)
20
- concurrent-ruby (~> 1.0, >= 1.0.2)
21
- i18n (~> 0.7)
22
- minitest (~> 5.1)
23
- tzinfo (~> 1.1)
24
- axiom-types (0.1.1)
25
- descendants_tracker (~> 0.0.4)
26
- ice_nine (~> 0.11.0)
27
- thread_safe (~> 0.3, >= 0.3.1)
28
- builder (3.2.2)
29
- coercible (1.0.0)
30
- descendants_tracker (~> 0.0.1)
31
- concurrent-ruby (1.0.2)
32
- descendants_tracker (0.0.4)
33
- thread_safe (~> 0.3, >= 0.3.1)
34
- diff-lcs (1.2.5)
35
- equalizer (0.0.11)
36
- erubis (2.7.0)
37
- i18n (0.7.0)
38
- ice_nine (0.11.2)
39
- loofah (2.0.3)
40
- nokogiri (>= 1.5.9)
41
- mini_portile2 (2.1.0)
42
- minitest (5.9.0)
43
- nokogiri (1.6.8)
44
- mini_portile2 (~> 2.1.0)
45
- pkg-config (~> 1.1.7)
46
- pkg-config (1.1.7)
47
- rack (2.0.1)
48
- rack-test (0.6.3)
49
- rack (>= 1.0)
50
- rails-dom-testing (2.0.1)
51
- activesupport (>= 4.2.0, < 6.0)
52
- nokogiri (~> 1.6.0)
53
- rails-html-sanitizer (1.0.3)
54
- loofah (~> 2.0)
55
- rake (10.5.0)
56
- rspec (3.5.0)
57
- rspec-core (~> 3.5.0)
58
- rspec-expectations (~> 3.5.0)
59
- rspec-mocks (~> 3.5.0)
60
- rspec-core (3.5.1)
61
- rspec-support (~> 3.5.0)
62
- rspec-expectations (3.5.0)
63
- diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.5.0)
65
- rspec-mocks (3.5.0)
66
- diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.5.0)
68
- rspec-support (3.5.0)
69
- thread_safe (0.3.5)
70
- tzinfo (1.2.2)
71
- thread_safe (~> 0.1)
72
- virtus (1.0.5)
73
- axiom-types (~> 0.1)
74
- coercible (~> 1.0)
75
- descendants_tracker (~> 0.0, >= 0.0.3)
76
- equalizer (~> 0.0, >= 0.0.9)
77
-
78
- PLATFORMS
79
- ruby
80
-
81
- DEPENDENCIES
82
- actionpack (~> 5.0.0)
83
- activemodel (~> 5.0.0)
84
- rake (~> 10.0)
85
- rspec (~> 3.0)
86
- virtus (~> 1.0)
87
-
88
- BUNDLED WITH
89
- 1.12.3