basic_table_sorter 0.0.1.beta → 0.0.2.beta
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 +7 -0
- data/Guardfile +2 -0
- data/basic_table_sorter.gemspec +14 -13
- data/lib/basic_table_sorter/controller_additions.rb +5 -5
- data/lib/basic_table_sorter/exceptions.rb +3 -0
- data/lib/basic_table_sorter/matchers.rb +2 -2
- data/lib/basic_table_sorter/{sort_params_permission_service_additions.rb → permission_service_additions.rb} +3 -3
- data/lib/basic_table_sorter/railtie.rb +3 -0
- data/lib/basic_table_sorter/version.rb +1 -1
- data/lib/basic_table_sorter/view_helpers.rb +23 -0
- data/lib/basic_table_sorter.rb +3 -1
- data/spec/basic_table_sorter/controller_additions_spec.rb +21 -20
- data/spec/basic_table_sorter/matchers_spec.rb +3 -3
- data/spec/basic_table_sorter/{sort_params_permission_service_additions_spec.rb → permission_service_additions_spec.rb} +16 -16
- data/spec/basic_table_sorter/view_helpers_spec.rb +86 -0
- data/spec/spec_helper.rb +3 -2
- metadata +22 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5d450654560793ee8c97eecee62988c0a3fdecf5
|
4
|
+
data.tar.gz: f3b7532e3634887b6d8ce3cab5c61707cac32e69
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f240ff897add0bb33a8bb3820b9dbb635cc43a88ae6ed87ea07ae72586368fdb1c1a00b737c760d16ec3344039d6220bed25cf68297ca43af3e5fcae1244ab5a
|
7
|
+
data.tar.gz: f47e149a85990db0991c1be32dbafad1a5b1e46a7bdb46cab62d40476e32cc5d2a7a064b23b63cc7a13fe3f38d64a062f52e38847c43aaa590f7b46275c98250
|
data/Guardfile
CHANGED
data/basic_table_sorter.gemspec
CHANGED
@@ -4,20 +4,21 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'basic_table_sorter/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
|
-
gem.name
|
8
|
-
gem.version
|
9
|
-
gem.authors
|
10
|
-
gem.email
|
11
|
-
gem.
|
12
|
-
gem.
|
13
|
-
gem.
|
7
|
+
gem.name = "basic_table_sorter"
|
8
|
+
gem.version = BasicTableSorter::VERSION
|
9
|
+
gem.authors = ["Daniel Grawunder, Christian Mierich"]
|
10
|
+
gem.email = ["gramie.sw@gmail.com"]
|
11
|
+
gem.homepage = "https://github.com/gramie-sw/basic_table_sorter"
|
12
|
+
gem.description = %q{A Ruby on Rails basic table sorter gem}
|
13
|
+
gem.summary = %q{An easy to use basic table sorter for Ruby on Rails.}
|
14
|
+
gem.license = "EPL 1.0"
|
14
15
|
|
15
|
-
gem.files
|
16
|
-
gem.executables
|
17
|
-
gem.test_files
|
16
|
+
gem.files = `git ls-files`.split($/)
|
17
|
+
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
19
|
gem.require_paths = ["lib"]
|
19
20
|
|
20
|
-
gem.add_development_dependency "rspec"
|
21
|
-
gem.add_development_dependency "
|
22
|
-
gem.add_development_dependency "guard-rspec", "~>
|
21
|
+
gem.add_development_dependency "rspec", "~>2.13.0"
|
22
|
+
gem.add_development_dependency "actionpack", "~>3.2"
|
23
|
+
gem.add_development_dependency "guard-rspec", "~>3.0.1"
|
23
24
|
end
|
@@ -14,15 +14,15 @@ module BasicTableSorter
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def table_sort_order
|
17
|
-
Array(params[:table_sort]).join(
|
17
|
+
custom_table_sort? ? "#{Array(params[:table_sort]).join(" #{table_sort_direction}, ")} #{table_sort_direction}" : nil
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
20
|
+
def authorize_table_sort_params
|
21
21
|
if params[:table_sort]
|
22
|
-
sort_params_permission_service =
|
22
|
+
sort_params_permission_service = BasicTableSorterPermissionService.create
|
23
23
|
Array(params[:table_sort]).each do |value|
|
24
|
-
unless sort_params_permission_service.
|
25
|
-
|
24
|
+
unless sort_params_permission_service.allowed_sort_param?(params[:controller], params[:action], value)
|
25
|
+
raise TableSortParamNotAuthorized, "param table_sort = '#{params[:table_sort]}' not allowed"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
RSpec::Matchers.define :
|
1
|
+
RSpec::Matchers.define :allow_sort_param do |controller, action, value|
|
2
2
|
match do |sort_params_permission_service|
|
3
|
-
sort_params_permission_service.
|
3
|
+
sort_params_permission_service.allowed_sort_param?(controller, action, value.to_s).should be_true
|
4
4
|
end
|
5
5
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module BasicTableSorter
|
2
|
-
module
|
2
|
+
module PermissionServiceAdditions
|
3
3
|
|
4
|
-
def
|
4
|
+
def allowed_sort_param? controller, action, value
|
5
5
|
allowed = @allowed_sort_values && @allowed_sort_values[[controller.to_s, action.to_s]]
|
6
6
|
allowed ? allowed.include?(value) : allowed
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def allow_sort_params controllers, actions, param_values
|
10
10
|
@allowed_sort_values ||= {}
|
11
11
|
Array(controllers).each do |controller|
|
12
12
|
Array(actions).each do |action|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module BasicTableSorter
|
2
|
+
module ViewHelpers
|
3
|
+
|
4
|
+
def sortable(columns, title, additional_params = {})
|
5
|
+
|
6
|
+
column_selected = Array(columns).map(&:to_s).eql? Array(params[:table_sort])
|
7
|
+
|
8
|
+
sort_direction = (column_selected && "asc" == table_sort_direction) ? "desc" : "asc"
|
9
|
+
icon_class = sort_direction == 'asc' ? 'icon-chevron-up' : 'icon-chevron-down'
|
10
|
+
|
11
|
+
link_params = {table_sort: columns, table_sort_direction: sort_direction}.merge(additional_params)
|
12
|
+
|
13
|
+
if column_selected
|
14
|
+
#link_to takes automatically current controller and action from params if missing in arguments
|
15
|
+
link_to link_params, class: 'selected-column' do
|
16
|
+
content_tag(:span, title) + tag(:i, class: icon_class)
|
17
|
+
end
|
18
|
+
else
|
19
|
+
link_to title, link_params
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/basic_table_sorter.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require "basic_table_sorter/version"
|
2
2
|
require "basic_table_sorter/controller_additions"
|
3
|
-
require "basic_table_sorter/
|
3
|
+
require "basic_table_sorter/view_helpers"
|
4
|
+
require "basic_table_sorter/permission_service_additions"
|
5
|
+
require "basic_table_sorter/exceptions"
|
4
6
|
require "basic_table_sorter/railtie" if defined? (Rails)
|
5
7
|
|
@@ -61,35 +61,36 @@ describe 'ControllerAdditions' do
|
|
61
61
|
@controller.stub(:params).and_return({table_sort: ['last_name', 'first_name'], table_sort_direction: 'desc'})
|
62
62
|
@controller.table_sort_order.should eq "last_name desc, first_name desc"
|
63
63
|
end
|
64
|
+
|
65
|
+
it 'should return nil when no param :table_sort present' do
|
66
|
+
@controller.stub(:params).and_return({})
|
67
|
+
@controller.table_sort_order.should be_nil
|
68
|
+
end
|
64
69
|
end
|
65
70
|
|
66
|
-
describe '#
|
71
|
+
describe '#authorize_table_sort_params' do
|
67
72
|
|
68
|
-
it 'should call
|
69
|
-
@controller.stub(:params).and_return(table_sort: 'last_name')
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
+
it 'should call allowed_sort_param? if param with value table_sort exits' do
|
74
|
+
@controller.stub(:params).and_return(controller: 'users', action: 'index', table_sort: 'last_name')
|
75
|
+
BasicTableSorterPermissionService.
|
76
|
+
any_instance.should_receive(:allowed_sort_param?).
|
77
|
+
with('users', 'index', 'last_name').
|
78
|
+
and_return(true)
|
79
|
+
@controller.authorize_table_sort_params
|
73
80
|
end
|
74
81
|
|
75
|
-
it 'should
|
82
|
+
it 'should raise BasicTableSorter::TableSortParamNotAuthorized if allowed_sort_param? returns false' do
|
76
83
|
@controller.stub(:params).and_return(table_sort: 'last_name')
|
77
|
-
|
78
|
-
|
79
|
-
|
84
|
+
BasicTableSorterPermissionService.any_instance.stub(:allowed_sort_param?).and_return false
|
85
|
+
expect {
|
86
|
+
@controller.authorize_table_sort_params
|
87
|
+
}.to raise_error BasicTableSorter::TableSortParamNotAuthorized, "param table_sort = 'last_name' not allowed"
|
80
88
|
end
|
81
89
|
|
82
|
-
it 'should not call
|
90
|
+
it 'should not call authorize_table_sort_params if params has no value table_sort' do
|
83
91
|
@controller.stub(:params).and_return({})
|
84
|
-
@controller.should_not_receive(:
|
85
|
-
@controller.
|
86
|
-
end
|
87
|
-
|
88
|
-
it 'should not call render_500 if allowed_sort_value? is true' do
|
89
|
-
@controller.stub(:params).and_return(table_sort: ['last_name', 'first_name'])
|
90
|
-
SortParamsPermissionService.any_instance.stub(:allowed_sort_value?).and_return true
|
91
|
-
@controller.should_not_receive(:render_500)
|
92
|
-
@controller.authorize_sort_params
|
92
|
+
@controller.should_not_receive(:allowed_sort_param?)
|
93
|
+
@controller.authorize_table_sort_params
|
93
94
|
end
|
94
95
|
end
|
95
96
|
end
|
@@ -2,9 +2,9 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe 'allow_sort_value' do
|
4
4
|
|
5
|
-
it 'should delegate to
|
5
|
+
it 'should delegate to allowed_sort_param?' do
|
6
6
|
object = Object.new
|
7
|
-
object.should_receive(:
|
8
|
-
object.should
|
7
|
+
object.should_receive(:allowed_sort_param?).once.with(:comments, :index, 'email').and_return(true)
|
8
|
+
object.should allow_sort_param(:comments, :index, :email)
|
9
9
|
end
|
10
10
|
end
|
@@ -1,68 +1,68 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe BasicTableSorter::PermissionServiceAdditions do
|
4
4
|
|
5
5
|
before :each do
|
6
|
-
@sort_params_permission_service =
|
6
|
+
@sort_params_permission_service = BasicTableSorterPermissionService.create
|
7
7
|
end
|
8
8
|
|
9
9
|
describe '::included' do
|
10
10
|
|
11
11
|
it 'should extend included class with module ClassMethods' do
|
12
12
|
clazz = Class.new
|
13
|
-
clazz.should_receive(:extend).with(BasicTableSorter::
|
14
|
-
clazz.send(:include, BasicTableSorter::
|
13
|
+
clazz.should_receive(:extend).with(BasicTableSorter::PermissionServiceAdditions::ClassMethods)
|
14
|
+
clazz.send(:include, BasicTableSorter::PermissionServiceAdditions)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
18
|
describe '::create' do
|
19
19
|
|
20
|
-
it 'should create a
|
21
|
-
@sort_params_permission_service.should be_an_instance_of(
|
20
|
+
it 'should create a BasicTableSorterPermissionService instance object' do
|
21
|
+
@sort_params_permission_service.should be_an_instance_of(BasicTableSorterPermissionService)
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'should call configure_permissions' do
|
25
|
-
|
26
|
-
|
25
|
+
BasicTableSorterPermissionService.any_instance.should_receive(:configure_permissions)
|
26
|
+
BasicTableSorterPermissionService.create
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
describe '#
|
30
|
+
describe '#allowed_sort_param?' do
|
31
31
|
|
32
32
|
it 'should return false if @allowed_sort_values is nil' do
|
33
33
|
@sort_params_permission_service.instance_variable_set(:@allowed_sort_values, nil)
|
34
|
-
@sort_params_permission_service.
|
34
|
+
@sort_params_permission_service.allowed_sort_param?(nil, nil, nil).should be_false
|
35
35
|
end
|
36
36
|
|
37
37
|
it 'should return false if @allowed_sort_value does not have given value' do
|
38
38
|
allowed_sort_values = {}
|
39
39
|
allowed_sort_values[['customer', 'index']] = ['last_name']
|
40
40
|
@sort_params_permission_service.instance_variable_set(:@allowed_sort_values, allowed_sort_values)
|
41
|
-
@sort_params_permission_service.
|
41
|
+
@sort_params_permission_service.allowed_sort_param?('customer', 'index', 'first_name').should be_false
|
42
42
|
end
|
43
43
|
|
44
44
|
it 'should return true if @allowed_sort_value does have given value' do
|
45
45
|
allowed_sort_values = {}
|
46
46
|
allowed_sort_values[['customer', 'index']] = ['first_name']
|
47
47
|
@sort_params_permission_service.instance_variable_set(:@allowed_sort_values, allowed_sort_values)
|
48
|
-
@sort_params_permission_service.
|
48
|
+
@sort_params_permission_service.allowed_sort_param?('customer', 'index', 'first_name').should be_true
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
describe '#
|
52
|
+
describe '#allow_sort_params' do
|
53
53
|
|
54
54
|
it 'should insert value into @allow sort values' do
|
55
|
-
@sort_params_permission_service.
|
55
|
+
@sort_params_permission_service.allow_sort_params('customer', 'index', 'last_name')
|
56
56
|
@sort_params_permission_service.instance_variable_get(:@allowed_sort_values)[['customer', 'index']].should eq ['last_name']
|
57
57
|
end
|
58
58
|
|
59
59
|
it 'should insert values into @allow sort values' do
|
60
|
-
@sort_params_permission_service.
|
60
|
+
@sort_params_permission_service.allow_sort_params('customer', 'index', ['first_name', 'last_name'])
|
61
61
|
@sort_params_permission_service.instance_variable_get(:@allowed_sort_values)[['customer', 'index']].should eq ['first_name', 'last_name']
|
62
62
|
end
|
63
63
|
|
64
64
|
it 'should insert value for two keys' do
|
65
|
-
@sort_params_permission_service.
|
65
|
+
@sort_params_permission_service.allow_sort_params(['customer', 'person'], ['index', 'edit'], 'first_name')
|
66
66
|
@sort_params_permission_service.instance_variable_get(:@allowed_sort_values)[['customer', 'index']].should eq ['first_name']
|
67
67
|
@sort_params_permission_service.instance_variable_get(:@allowed_sort_values)[['person', 'index']].should eq ['first_name']
|
68
68
|
@sort_params_permission_service.instance_variable_get(:@allowed_sort_values)[['customer', 'edit']].should eq ['first_name']
|
@@ -0,0 +1,86 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BasicTableSorter::ViewHelpers do
|
4
|
+
|
5
|
+
let(:helper) do
|
6
|
+
helper_class = Class.new
|
7
|
+
helper_class.send(:include, BasicTableSorter::ViewHelpers)
|
8
|
+
helper_class.send(:include, ActionView::Helpers::TagHelper)
|
9
|
+
helper_class.new
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '#sortable' do
|
13
|
+
|
14
|
+
context 'column selected' do
|
15
|
+
|
16
|
+
it 'should create link with title and icon' do
|
17
|
+
helper.stub(:params).and_return({table_sort: 'title'})
|
18
|
+
helper.stub(:table_sort_direction).and_return('asc')
|
19
|
+
|
20
|
+
expected_link_params = {table_sort: :title, table_sort_direction: 'desc'}
|
21
|
+
helper.should_receive(:link_to).with(expected_link_params, class: 'selected-column') do |&block|
|
22
|
+
block.call.should match /<span>Title<\/span><i class="icon-.*" \/>/
|
23
|
+
end
|
24
|
+
helper.sortable(:title, 'Title')
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'column sorted asc' do
|
28
|
+
|
29
|
+
before :each do
|
30
|
+
helper.stub(:table_sort_direction).and_return('asc')
|
31
|
+
helper.stub(:params).and_return({controller: 'users', action: 'index', table_sort: 'name'})
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should have link to sort desc' do
|
35
|
+
helper.should_receive(:link_to).with({:table_sort => :name, :table_sort_direction => "desc"}, {:class => "selected-column"})
|
36
|
+
helper.sortable(:name, 'Name')
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'should have icon-chevron-down' do
|
40
|
+
|
41
|
+
helper.should_receive(:link_to).with(any_args) do |&block|
|
42
|
+
block.call.should include('icon-chevron-down')
|
43
|
+
end.once
|
44
|
+
|
45
|
+
helper.sortable(:name, 'Name')
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
context 'column sorted desc' do
|
50
|
+
|
51
|
+
before :each do
|
52
|
+
helper.stub(:table_sort_direction).and_return('desc')
|
53
|
+
helper.stub(:params).and_return({controller: 'users', action: 'index', table_sort: 'name'})
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'should have link to sort asc' do
|
57
|
+
helper.should_receive(:link_to).with({:table_sort => :name, :table_sort_direction => "asc"}, {:class => "selected-column"})
|
58
|
+
helper.sortable(:name, 'Name')
|
59
|
+
end
|
60
|
+
|
61
|
+
it 'should have icon-arrow-up' do
|
62
|
+
helper.should_receive(:link_to).with(any_args) do |&block|
|
63
|
+
block.call.should include('icon-chevron-up')
|
64
|
+
end.once
|
65
|
+
|
66
|
+
helper.sortable(:name, 'Name')
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
context 'column not selected' do
|
72
|
+
|
73
|
+
it 'should return link with title' do
|
74
|
+
helper.stub(:params).and_return({table_sort: 'first_name'})
|
75
|
+
helper.should_receive(:link_to).with('Name', {table_sort: :last_name, table_sort_direction: 'asc'})
|
76
|
+
helper.sortable(:last_name, 'Name')
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
it 'should merge additional arguments' do
|
81
|
+
helper.stub(:params).and_return({table_sort: 'title'})
|
82
|
+
helper.should_receive(:link_to).with('Name', {table_sort: :last_name, table_sort_direction: 'asc', extra_param: 'extra_param'})
|
83
|
+
helper.sortable(:last_name, 'Name', extra_param: 'extra_param')
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
require 'action_view'
|
1
2
|
require 'basic_table_sorter'
|
2
3
|
require 'basic_table_sorter/matchers'
|
3
4
|
|
4
|
-
class
|
5
|
-
include BasicTableSorter::
|
5
|
+
class BasicTableSorterPermissionService
|
6
|
+
include BasicTableSorter::PermissionServiceAdditions
|
6
7
|
|
7
8
|
def configure_permissions
|
8
9
|
|
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basic_table_sorter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.0.2.beta
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel Grawunder, Christian Mierich
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 2.13.0
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
26
|
+
version: 2.13.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: actionpack
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,19 +41,17 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: guard-rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 3.0.1
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
54
|
+
version: 3.0.1
|
62
55
|
description: A Ruby on Rails basic table sorter gem
|
63
56
|
email:
|
64
57
|
- gramie.sw@gmail.com
|
@@ -77,41 +70,44 @@ files:
|
|
77
70
|
- epl-v10.html
|
78
71
|
- lib/basic_table_sorter.rb
|
79
72
|
- lib/basic_table_sorter/controller_additions.rb
|
73
|
+
- lib/basic_table_sorter/exceptions.rb
|
80
74
|
- lib/basic_table_sorter/matchers.rb
|
75
|
+
- lib/basic_table_sorter/permission_service_additions.rb
|
81
76
|
- lib/basic_table_sorter/railtie.rb
|
82
|
-
- lib/basic_table_sorter/sort_params_permission_service_additions.rb
|
83
77
|
- lib/basic_table_sorter/version.rb
|
78
|
+
- lib/basic_table_sorter/view_helpers.rb
|
84
79
|
- spec/basic_table_sorter/controller_additions_spec.rb
|
85
80
|
- spec/basic_table_sorter/matchers_spec.rb
|
86
|
-
- spec/basic_table_sorter/
|
81
|
+
- spec/basic_table_sorter/permission_service_additions_spec.rb
|
82
|
+
- spec/basic_table_sorter/view_helpers_spec.rb
|
87
83
|
- spec/spec_helper.rb
|
88
|
-
homepage:
|
84
|
+
homepage: https://github.com/gramie-sw/basic_table_sorter
|
89
85
|
licenses:
|
90
86
|
- EPL 1.0
|
87
|
+
metadata: {}
|
91
88
|
post_install_message:
|
92
89
|
rdoc_options: []
|
93
90
|
require_paths:
|
94
91
|
- lib
|
95
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
93
|
requirements:
|
98
|
-
- -
|
94
|
+
- - '>='
|
99
95
|
- !ruby/object:Gem::Version
|
100
96
|
version: '0'
|
101
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
98
|
requirements:
|
104
|
-
- -
|
99
|
+
- - '>'
|
105
100
|
- !ruby/object:Gem::Version
|
106
101
|
version: 1.3.1
|
107
102
|
requirements: []
|
108
103
|
rubyforge_project:
|
109
|
-
rubygems_version:
|
104
|
+
rubygems_version: 2.0.3
|
110
105
|
signing_key:
|
111
|
-
specification_version:
|
106
|
+
specification_version: 4
|
112
107
|
summary: An easy to use basic table sorter for Ruby on Rails.
|
113
108
|
test_files:
|
114
109
|
- spec/basic_table_sorter/controller_additions_spec.rb
|
115
110
|
- spec/basic_table_sorter/matchers_spec.rb
|
116
|
-
- spec/basic_table_sorter/
|
111
|
+
- spec/basic_table_sorter/permission_service_additions_spec.rb
|
112
|
+
- spec/basic_table_sorter/view_helpers_spec.rb
|
117
113
|
- spec/spec_helper.rb
|