table_sortable 0.1.3 → 0.1.5

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: d90b90b79ac6f96428261dce9aa2e82903d11be0
4
- data.tar.gz: 24b08af07c78d9eada68f6353a4cb51a82438ae9
3
+ metadata.gz: 9f24492d5149ae185d7a0cafc28d60b02f544115
4
+ data.tar.gz: 7a53734f7978c6e6a50a9f3ef40cb0e460828840
5
5
  SHA512:
6
- metadata.gz: 139bd175a23db09d3145ab896a43cb538996da1f94b3bee1962c86d0928a1301b4bde8327c32f2fc8290fe98ab31776f91d8cb4e139adcb2d9ab75b927ba2f55
7
- data.tar.gz: 4f6578b3649c3cf18eb132bf173110b248074e298080002501f8cdba0c9eaacf6ba453e0b2a1408933df39d0140623170c340b291dcd56d584be1c5b260ad38e
6
+ metadata.gz: cabadd6e860b2c77fe859a32fd4ecedceefe1ec0ee817978cf0f5f4297a1f88942f6878360322baff2b00fb6a3fa54624c0317690366413fa7cc7b1e48f0196f
7
+ data.tar.gz: 1852e2745920202d8b8e792caac7aee8297dee9ede9d54c3c93bce531c522e3beb568595c700504f3ea1011dd2dbf557525a6ff76f66d8fb934e5ddae0cbf70a
@@ -1,6 +1,8 @@
1
1
  require 'rails/engine'
2
2
  require 'active_support/concern'
3
3
  require 'action_controller'
4
+ require 'kaminari'
5
+ require 'kaminari/models/array_extension'
4
6
 
5
7
  module TableSortable
6
8
 
@@ -1,3 +1,4 @@
1
+
1
2
  module TableSortable
2
3
  module Controller
3
4
 
@@ -1,3 +1,3 @@
1
1
  module TableSortable
2
- VERSION = "0.1.3"
3
- end
2
+ VERSION = "0.1.5"
3
+ end
@@ -48,4 +48,13 @@ describe TableSortable::Controller do
48
48
  expect(populated_controller.send(:sort_order)).to eq [:column_with_sql_procs_a, :column_with_sql_procs_b, :column_with_array_procs]
49
49
  end
50
50
  end
51
+
52
+ context 'filter_and_sort' do
53
+ it 'should run' do
54
+ controller.define_column :a
55
+ result = controller.send(:filter_and_sort, [{a: 3}, {a: 2}, {a: 1}])
56
+ p result
57
+ expect(1).to eq 2
58
+ end
59
+ end
51
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Davidov