table_sortable 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f24492d5149ae185d7a0cafc28d60b02f544115
4
- data.tar.gz: 7a53734f7978c6e6a50a9f3ef40cb0e460828840
3
+ metadata.gz: 0e8a1f36657059ba97400dfb9ec3836e4cf7a4ef
4
+ data.tar.gz: c10b4f4d6a963473a08f7617a66698feeb645117
5
5
  SHA512:
6
- metadata.gz: cabadd6e860b2c77fe859a32fd4ecedceefe1ec0ee817978cf0f5f4297a1f88942f6878360322baff2b00fb6a3fa54624c0317690366413fa7cc7b1e48f0196f
7
- data.tar.gz: 1852e2745920202d8b8e792caac7aee8297dee9ede9d54c3c93bce531c522e3beb568595c700504f3ea1011dd2dbf557525a6ff76f66d8fb934e5ddae0cbf70a
6
+ metadata.gz: af22dcc3764e356a3d354996d721849169385866cd547a93451b8c93b2cccc5cca1c88382e7cafcdbb33a46eb4b4d00e65de3fbbc6452589b451d57098552aca
7
+ data.tar.gz: fbd1eca1c2db9e5f57ec2703b1cb7a980940f35ad492bd34dee56fd37373f844740cd023d4cad9c1cb4cf55253a2811a3f798eadaaf3736fc15a66932968a627
@@ -60,7 +60,7 @@ module TableSortable
60
60
  end
61
61
  scope = filters.last.call(scope)
62
62
  if page
63
- scope = ::Kaminari::PaginatableArray.paginate_array(scope)
63
+ scope = Kaminari.paginate_array(scope)
64
64
  scope = scope.page(page.to_i + 1).per(page_size)
65
65
  end
66
66
  scope
@@ -1,3 +1,3 @@
1
1
  module TableSortable
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -50,11 +50,7 @@ describe TableSortable::Controller do
50
50
  end
51
51
 
52
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
53
+ it 'should filter a record_set based on its filters'
54
+ it 'should sort a record_set based on its filters'
59
55
  end
60
56
  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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Davidov