sql_search_n_sort 2.1.8 → 2.1.9

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
  SHA1:
3
- metadata.gz: fd02dea13733d797b4dc7ddac04620aa2d260e54
4
- data.tar.gz: 90dc400d051c1a67aac9faa138729356b3715230
3
+ metadata.gz: 33d52f3bb422bf6efa38e61ad7d72b28de4634f5
4
+ data.tar.gz: b6394a6dbfaccbe1f6567b497cecc063fd304229
5
5
  SHA512:
6
- metadata.gz: 37ec5305672138669fe0940ef0673ad158ddb715e0b6ddc768e4af8883be84658a049872160efed13e321fd0ee460b3ccc5e33a3ccc0942e1c7b9ac23ecf9536
7
- data.tar.gz: 18cdd0c9100be731941d6b7f2456d9ff78681a2828b78efc2f5ff977f6868da4664da0632d0949b5fdd9b27f77c5e5772e557a875f830eadf6b143c53f7744f1
6
+ metadata.gz: 34f5b5ddbbe8a84ddb83b21fb34adc7711b87dbdf2623304fe03f40164d8db3840ce9b4969223fdd406cc9cf81585e8b93f32c788d9e90b42ea941027ee72b11
7
+ data.tar.gz: 7738293a7934e34f7104b5ef6e29dcda6e8d9c9b7da64e871da37b85a89948bb7736f541fe25c4027d53e80ac27fa8a0e4975cea622dfb43133e907fdf8ef580
@@ -11,7 +11,7 @@ module SqlSearchNSort
11
11
  class Engine < Rails::Engine
12
12
  end
13
13
 
14
- def self.config(&block)
14
+ def self.config(&block)
15
15
  yield Engine.config if block
16
16
  Engine.config
17
17
  end
@@ -23,7 +23,7 @@ module SqlSearchableSortable
23
23
  order(sort_config.get_order(scope_sort_col, scope_sort_dir, default_sort_col, self))
24
24
  end
25
25
  end
26
- end
26
+ end
27
27
 
28
28
  def search_clause(search_for)
29
29
  (sql_search_cols || []).inject(nil) do |query, col|
@@ -1,6 +1,6 @@
1
1
  module SqlSortSetup
2
2
 
3
- def setup_sql_sort(model_class=nil)
3
+ def setup_sql_sort(model_class=nil)
4
4
  #Get model class from class if passed in or by guessing at controller
5
5
  model = model_class || controller_name.classify.constantize
6
6
  if model.is_a? SqlSearchableSortable
@@ -22,7 +22,7 @@ module SqlSortSetup
22
22
  end
23
23
  @sort_dropdown_opts = model.sort_cols_for_dropdown
24
24
  @sort_dir ||= :asc
25
- end
25
+ end
26
26
  end
27
27
 
28
28
  private
@@ -1,3 +1,3 @@
1
1
  module SqlSearchNSort
2
- VERSION = "2.1.8"
2
+ VERSION = "2.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_search_n_sort
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - John O'Malley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-23 00:00:00.000000000 Z
11
+ date: 2018-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -81,13 +81,13 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.2.1
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec-rails
84
+ name: sprockets
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 3.7.2
90
- type: :development
90
+ type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
@@ -95,19 +95,47 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: 3.7.2
97
97
  - !ruby/object:Gem::Dependency
98
- name: factory_girl_rails
98
+ name: rubyzip
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.2.2
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.2.2
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-rails
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 4.9.0
117
+ version: 3.7.2
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: 4.9.0
124
+ version: 3.7.2
125
+ - !ruby/object:Gem::Dependency
126
+ name: factory_bot_rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: database_cleaner
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +198,14 @@ dependencies:
170
198
  requirements:
171
199
  - - "~>"
172
200
  - !ruby/object:Gem::Version
173
- version: 1.9.18
201
+ version: 1.9.24
174
202
  type: :development
175
203
  prerelease: false
176
204
  version_requirements: !ruby/object:Gem::Requirement
177
205
  requirements:
178
206
  - - "~>"
179
207
  - !ruby/object:Gem::Version
180
- version: 1.9.18
208
+ version: 1.9.24
181
209
  description: A gem that allows for simple SQL-based search and sort functionality
182
210
  email:
183
211
  - jom@nycap.rr.com