sortable-by 0.12.0 → 0.12.1

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: e4ee31050e1942211f65f5fe2c65e770b1f14a0629b885487f2cc9ddb102775f
4
- data.tar.gz: '076397a69e9246cd9ecf527197850e4de5170b50c38c16ec1baa3c449ba3a30c'
3
+ metadata.gz: 7e89dd7025ad14bfd9a012b10d68a70183692121625d14e56feea7e3484d8398
4
+ data.tar.gz: 931017877555f573485ebbaecb5501ba36e5e4c3a2c7d0842ada6ff2f68cd5fb
5
5
  SHA512:
6
- metadata.gz: 927d032e52aa0dc6d6e5ddfa06453a79e2b7433888c1b570cff06b6bcecd4acb64a402869cd5ea42b11168770b16a0c2c54785cffb8eed353dfbde36fbce64d2
7
- data.tar.gz: 9d773d07c8dc4c29791693f0da13ad9ac6751516739dc5466601c59817695e29ff6b4d348776390102d04780f99beeed824bfdb9a2ee7a5ba4ee866bb5bae0d6
6
+ metadata.gz: 45ef18f0d53caa91e2e9cb0c8bcbae4bf4cdc3da59b844e1ddae2f5fa16454905d925a7212a31e4355f077fe7436b25303f17422c47f25592a3036cd623caba3
7
+ data.tar.gz: 724fd46c5ea0fd379980dcfe64a58ea579d9d03edab02516862d654ccc5a472d10bc810ccf48a32d4cc96e70ed5608100596425091c7a541dae5f380f8f4a173
@@ -1,63 +1,66 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sortable-by (0.12.0)
4
+ sortable-by (0.12.1)
5
5
  activerecord
6
6
  activesupport
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- activemodel (6.0.0)
12
- activesupport (= 6.0.0)
13
- activerecord (6.0.0)
14
- activemodel (= 6.0.0)
15
- activesupport (= 6.0.0)
16
- activesupport (6.0.0)
11
+ activemodel (6.0.3.1)
12
+ activesupport (= 6.0.3.1)
13
+ activerecord (6.0.3.1)
14
+ activemodel (= 6.0.3.1)
15
+ activesupport (= 6.0.3.1)
16
+ activesupport (6.0.3.1)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
- zeitwerk (~> 2.1, >= 2.1.8)
21
+ zeitwerk (~> 2.2, >= 2.2.2)
22
22
  ast (2.4.0)
23
- concurrent-ruby (1.1.5)
23
+ concurrent-ruby (1.1.6)
24
24
  diff-lcs (1.3)
25
- i18n (1.6.0)
25
+ i18n (1.8.2)
26
26
  concurrent-ruby (~> 1.0)
27
- jaro_winkler (1.5.3)
28
- minitest (5.11.3)
29
- parallel (1.17.0)
30
- parser (2.6.3.0)
27
+ minitest (5.14.1)
28
+ parallel (1.19.1)
29
+ parser (2.7.1.3)
31
30
  ast (~> 2.4.0)
32
31
  rainbow (3.0.0)
33
- rake (12.3.3)
34
- rspec (3.8.0)
35
- rspec-core (~> 3.8.0)
36
- rspec-expectations (~> 3.8.0)
37
- rspec-mocks (~> 3.8.0)
38
- rspec-core (3.8.2)
39
- rspec-support (~> 3.8.0)
40
- rspec-expectations (3.8.4)
32
+ rake (13.0.1)
33
+ rexml (3.2.4)
34
+ rspec (3.9.0)
35
+ rspec-core (~> 3.9.0)
36
+ rspec-expectations (~> 3.9.0)
37
+ rspec-mocks (~> 3.9.0)
38
+ rspec-core (3.9.2)
39
+ rspec-support (~> 3.9.3)
40
+ rspec-expectations (3.9.2)
41
41
  diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.8.0)
43
- rspec-mocks (3.8.1)
42
+ rspec-support (~> 3.9.0)
43
+ rspec-mocks (3.9.1)
44
44
  diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.8.0)
46
- rspec-support (3.8.2)
47
- rubocop (0.74.0)
48
- jaro_winkler (~> 1.5.1)
45
+ rspec-support (~> 3.9.0)
46
+ rspec-support (3.9.3)
47
+ rubocop (0.84.0)
49
48
  parallel (~> 1.10)
50
- parser (>= 2.6)
49
+ parser (>= 2.7.0.1)
51
50
  rainbow (>= 2.2.2, < 4.0)
51
+ rexml
52
+ rubocop-ast (>= 0.0.3)
52
53
  ruby-progressbar (~> 1.7)
53
- unicode-display_width (>= 1.4.0, < 1.7)
54
+ unicode-display_width (>= 1.4.0, < 2.0)
55
+ rubocop-ast (0.0.3)
56
+ parser (>= 2.7.0.1)
54
57
  ruby-progressbar (1.10.1)
55
- sqlite3 (1.4.1)
58
+ sqlite3 (1.4.2)
56
59
  thread_safe (0.3.6)
57
- tzinfo (1.2.5)
60
+ tzinfo (1.2.7)
58
61
  thread_safe (~> 0.1)
59
- unicode-display_width (1.6.0)
60
- zeitwerk (2.1.9)
62
+ unicode-display_width (1.7.0)
63
+ zeitwerk (2.3.0)
61
64
 
62
65
  PLATFORMS
63
66
  ruby
@@ -71,4 +74,4 @@ DEPENDENCIES
71
74
  sqlite3
72
75
 
73
76
  BUNDLED WITH
74
- 2.0.2
77
+ 2.1.2
@@ -17,7 +17,7 @@ module ActiveRecord # :nodoc:
17
17
  duplicate
18
18
  end
19
19
 
20
- def field(name, opts={})
20
+ def field(name, opts = {})
21
21
  name = name.to_s
22
22
  @_fields[name] = Field.new(name, opts)
23
23
  @_default ||= name
@@ -36,7 +36,7 @@ module ActiveRecord # :nodoc:
36
36
 
37
37
  protected
38
38
 
39
- def order(relation, expr, fallback=true)
39
+ def order(relation, expr, fallback = true)
40
40
  matched = false
41
41
  expr.to_s.split(',').each do |name|
42
42
  name.strip!
@@ -60,7 +60,7 @@ module ActiveRecord # :nodoc:
60
60
  end
61
61
 
62
62
  class Field # :nodoc:
63
- def initialize(name, opts={})
63
+ def initialize(name, opts = {})
64
64
  @cols = Array.wrap(opts[:as])
65
65
  @eager_load = Array.wrap(opts[:eager_load]).presence
66
66
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'sortable-by'
3
- s.version = '0.12.0'
3
+ s.version = '0.12.1'
4
4
  s.authors = ['Dimitrij Denissenko']
5
5
  s.email = ['dimitrij@blacksquaremedia.com']
6
6
  s.summary = 'Generate white-listed sort scopes from URL parameter values'
@@ -2,9 +2,11 @@ ENV['RACK_ENV'] ||= 'test'
2
2
  require 'sortable-by'
3
3
  require 'rspec'
4
4
 
5
- ActiveRecord::Base.configurations['test'] = {
6
- 'adapter' => 'sqlite3',
7
- 'database' => ':memory:',
5
+ ActiveRecord::Base.configurations = {
6
+ 'test' => {
7
+ 'adapter' => 'sqlite3',
8
+ 'database' => ':memory:',
9
+ },
8
10
  }
9
11
  ActiveRecord::Base.establish_connection :test
10
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sortable-by
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2020-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.0.3
150
+ rubygems_version: 3.1.2
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Generate white-listed sort scopes from URL parameter values