query_helper 0.2.5 → 0.2.6

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: 9e3a9ded9b05b03a8401a63c12f0fd27eac2cc3626b8378bc403fabcc58f5081
4
- data.tar.gz: 62955d32fc7038eac24c71b774219fb6262abae9c9902ed7b7a12541e7a7f696
3
+ metadata.gz: bd74b25ab6dec2f0e3134685cefed049a7159a18e3275e35472492a34549579a
4
+ data.tar.gz: 1944a711b68598a1cca8ff26d997173db0b89f649ff2d8c5086b84752016da58
5
5
  SHA512:
6
- metadata.gz: 2b169439dec28f51236270c032daaadbc69ddee241a3ee8c9a98abb2a222817844db98489edeefb54134e04718e4d1780b42e1941120a6af3115298e2c01f4bb
7
- data.tar.gz: b7ee5f5541b002e5171e9652a0b060a744f58ab56d82dd8053dfa39916265dc7996be1ec3b4bfc2158bce4265e3271439ddb6edfd6a7da7ea4264345168c8c74
6
+ metadata.gz: 2ba12818f15699010276c02db6c932d61023b97d3ca742c8edd0bef96c1f085a792bae1ec3935a0db1ac3e06d84345bcebf65dcc369a96ea8b4884c41b0746bd
7
+ data.tar.gz: f97690b832ab759b8cb2005cd221611bf70bbc619aad66154f8936a875a587559d7c1b72485dd2506f2d2a8372b9fc89fa3e0442eea911e0997fb1797101bd93
data/Gemfile.lock CHANGED
@@ -1,96 +1,96 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- query_helper (0.2.5)
4
+ query_helper (0.2.6)
5
5
  activerecord (~> 5.0)
6
6
  activesupport (~> 5.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (5.2.3)
12
- actionview (= 5.2.3)
13
- activesupport (= 5.2.3)
14
- rack (~> 2.0)
11
+ actionpack (5.2.4.2)
12
+ actionview (= 5.2.4.2)
13
+ activesupport (= 5.2.4.2)
14
+ rack (~> 2.0, >= 2.0.8)
15
15
  rack-test (>= 0.6.3)
16
16
  rails-dom-testing (~> 2.0)
17
17
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
- actionview (5.2.3)
19
- activesupport (= 5.2.3)
18
+ actionview (5.2.4.2)
19
+ activesupport (= 5.2.4.2)
20
20
  builder (~> 3.1)
21
21
  erubi (~> 1.4)
22
22
  rails-dom-testing (~> 2.0)
23
23
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
- activemodel (5.2.3)
25
- activesupport (= 5.2.3)
26
- activerecord (5.2.3)
27
- activemodel (= 5.2.3)
28
- activesupport (= 5.2.3)
24
+ activemodel (5.2.4.2)
25
+ activesupport (= 5.2.4.2)
26
+ activerecord (5.2.4.2)
27
+ activemodel (= 5.2.4.2)
28
+ activesupport (= 5.2.4.2)
29
29
  arel (>= 9.0)
30
- activesupport (5.2.3)
30
+ activesupport (5.2.4.2)
31
31
  concurrent-ruby (~> 1.0, >= 1.0.2)
32
32
  i18n (>= 0.7, < 2)
33
33
  minitest (~> 5.1)
34
34
  tzinfo (~> 1.1)
35
35
  arel (9.0.0)
36
- builder (3.2.3)
37
- byebug (11.0.1)
38
- concurrent-ruby (1.1.5)
39
- crass (1.0.4)
36
+ builder (3.2.4)
37
+ byebug (11.1.1)
38
+ concurrent-ruby (1.1.6)
39
+ crass (1.0.6)
40
40
  diff-lcs (1.3)
41
41
  erubi (1.9.0)
42
42
  faker (1.9.6)
43
43
  i18n (>= 0.7)
44
- i18n (1.6.0)
44
+ i18n (1.8.2)
45
45
  concurrent-ruby (~> 1.0)
46
- loofah (2.3.0)
46
+ loofah (2.4.0)
47
47
  crass (~> 1.0.2)
48
48
  nokogiri (>= 1.5.9)
49
- method_source (0.9.2)
49
+ method_source (1.0.0)
50
50
  mini_portile2 (2.4.0)
51
- minitest (5.12.2)
52
- nokogiri (1.10.4)
51
+ minitest (5.14.0)
52
+ nokogiri (1.10.9)
53
53
  mini_portile2 (~> 2.4.0)
54
- rack (2.0.7)
54
+ rack (2.2.2)
55
55
  rack-test (1.1.0)
56
56
  rack (>= 1.0, < 3)
57
57
  rails-dom-testing (2.0.3)
58
58
  activesupport (>= 4.2.0)
59
59
  nokogiri (>= 1.6)
60
- rails-html-sanitizer (1.2.0)
61
- loofah (~> 2.2, >= 2.2.2)
62
- railties (5.2.3)
63
- actionpack (= 5.2.3)
64
- activesupport (= 5.2.3)
60
+ rails-html-sanitizer (1.3.0)
61
+ loofah (~> 2.3)
62
+ railties (5.2.4.2)
63
+ actionpack (= 5.2.4.2)
64
+ activesupport (= 5.2.4.2)
65
65
  method_source
66
66
  rake (>= 0.8.7)
67
67
  thor (>= 0.19.0, < 2.0)
68
- rake (10.5.0)
69
- rspec (3.8.0)
70
- rspec-core (~> 3.8.0)
71
- rspec-expectations (~> 3.8.0)
72
- rspec-mocks (~> 3.8.0)
73
- rspec-core (3.8.2)
74
- rspec-support (~> 3.8.0)
75
- rspec-expectations (3.8.4)
68
+ rake (13.0.1)
69
+ rspec (3.9.0)
70
+ rspec-core (~> 3.9.0)
71
+ rspec-expectations (~> 3.9.0)
72
+ rspec-mocks (~> 3.9.0)
73
+ rspec-core (3.9.1)
74
+ rspec-support (~> 3.9.1)
75
+ rspec-expectations (3.9.1)
76
76
  diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.8.0)
78
- rspec-mocks (3.8.1)
77
+ rspec-support (~> 3.9.0)
78
+ rspec-mocks (3.9.1)
79
79
  diff-lcs (>= 1.2.0, < 2.0)
80
- rspec-support (~> 3.8.0)
81
- rspec-rails (3.8.2)
82
- actionpack (>= 3.0)
83
- activesupport (>= 3.0)
84
- railties (>= 3.0)
85
- rspec-core (~> 3.8.0)
86
- rspec-expectations (~> 3.8.0)
87
- rspec-mocks (~> 3.8.0)
88
- rspec-support (~> 3.8.0)
89
- rspec-support (3.8.2)
80
+ rspec-support (~> 3.9.0)
81
+ rspec-rails (4.0.0)
82
+ actionpack (>= 4.2)
83
+ activesupport (>= 4.2)
84
+ railties (>= 4.2)
85
+ rspec-core (~> 3.9)
86
+ rspec-expectations (~> 3.9)
87
+ rspec-mocks (~> 3.9)
88
+ rspec-support (~> 3.9)
89
+ rspec-support (3.9.2)
90
90
  sqlite3 (1.3.13)
91
- thor (0.20.3)
91
+ thor (1.0.1)
92
92
  thread_safe (0.3.6)
93
- tzinfo (1.2.5)
93
+ tzinfo (1.2.6)
94
94
  thread_safe (~> 0.1)
95
95
 
96
96
  PLATFORMS
@@ -99,11 +99,11 @@ PLATFORMS
99
99
  DEPENDENCIES
100
100
  actionpack
101
101
  activesupport
102
- bundler (~> 1.16)
102
+ bundler (~> 1.17)
103
103
  byebug
104
104
  faker (~> 1.9.3)
105
105
  query_helper!
106
- rake (~> 10.0)
106
+ rake (~> 13.0)
107
107
  rspec (~> 3.0)
108
108
  rspec-rails
109
109
  sqlite3 (~> 1.3.6)
@@ -1,3 +1,3 @@
1
1
  class QueryHelper
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
data/lib/query_helper.rb CHANGED
@@ -36,8 +36,8 @@ class QueryHelper
36
36
  @bind_variables = bind_variables
37
37
  @sql_filter = sql_filter
38
38
  @sql_sort = sql_sort
39
- @page = page.to_i if page
40
- @per_page = per_page.to_i if per_page
39
+ @page = (page.to_i if page) || 1
40
+ @per_page = (per_page.to_i if per_page) || 100
41
41
  @single_record = single_record
42
42
  @associations = associations
43
43
  @as_json_options = as_json_options
data/query_helper.gemspec CHANGED
@@ -36,8 +36,8 @@ Gem::Specification.new do |spec|
36
36
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
37
  spec.require_paths = ["lib"]
38
38
 
39
- spec.add_development_dependency "bundler", "~> 1.16"
40
- spec.add_development_dependency "rake", "~> 10.0"
39
+ spec.add_development_dependency "bundler", "~> 1.17"
40
+ spec.add_development_dependency "rake", "~> 13.0"
41
41
  spec.add_development_dependency "rspec", "~> 3.0"
42
42
  spec.add_development_dependency "sqlite3", "~> 1.3.6"
43
43
  spec.add_development_dependency "faker", "~> 1.9.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan McDaniel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2020-03-30 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.16'
19
+ version: '1.17'
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.16'
26
+ version: '1.17'
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: '13.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: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement